الان درس مهم جدا لمستخدمى Suphp وطبعا اللى متابع معايا الدوره هيكمل عادى جدا وشكرا خاص لاخوى صهيب الفهـداوى للدرس المتميز نذهب لاعدادات ملف suphp pico /home/cpeasyapache/src/suphp.conf
نعدل جميع القيم بالملف كالتالى Security options allow_file_group_writeable=true allow_file_others_writeable=false allow_directory_group_writeable=true allow_directory_others_writeable=false check_vhost_docroot=true userdir_overrides_usergroup=false full_php_process_display=true
[handlers]
;Handler for php-scripts
application/x-httpd-php="php:/usr/bin/php"
application/x-httpd-php4="php:/usr/php4/bin/php"
application/x-httpd-php5="php:/usr/bin/php"
;Handler for CGI-scripts ;
x-suphp-cgi="execute:!self"
[phprc_paths]
Uncommenting these will force all requests to that handler to use the php.ini ;
.in the specified directory regardless of suPHP_ConfigPath settings ;
application/x-httpd-php=/usr/local/lib/ ;
application/x-httpd-php4=/usr/local/php4/lib/
application/x-httpd-php5=/usr/local/lib/ حذفت علامة ; بعد ذلك
pico /etc/httpd/conf/php.conf
ابحث عن
suPHP_Engine on
نضع تحتها
SuPHP_ConfigPath /usr/local/lib/php.ini
ونقوم بالحفظ والخروج ومن ثم ندخل
pico /etc/my.cnf
[mysqld]set-variable=local-infile=0local-infile=0datadir=/var/lib/mysqlskip-lockingskip-innodbskip-networkingsafe-show-databasequery_cache_limit=1Mquery_cache_size=64M ## 32MB for every 1GB of RAMquery_cache_type=1max_user_connections=300max_connections=500interactive_timeout=300wait_timeout=300connect_timeout=20thread_cache_size=40key_buffer=128M ## 128MB for every 1GB of RAMjoin_buffer=1Mmax_connect_errors=20max_allowed_packet=45Mtable_cache=1024record_buffer=1Msort_buffer_size=1M ## 1MB for every 1GB of RAMread_buffer_size=1M ## 1MB for every 1GB of RAMread_rnd_buffer_size=4M ## 1MB for every 1GB of RAMthread_concurrency=8 ## Number of CPUs x 2myisam_sort_buffer_size=64Mserver-id=1collation-server=latin1_general_ci[mysql.server]user=mysql[safe_mysqld]err-log=/var/log/mysqld.logpid-file=/var/lib/mysql/mysql.pidopen_files_limit=8192[mysqldump]quickmax_allowed_packet=45M[mysql]no-auto-rehash#safe-updates[isamchk]key_buffer=94Msort_buffer=94Mread_buffer=16Mwrite_buffer=16M[myisamchk]key_buffer=64Msort_buffer=64Mread_buffer=16Mwrite_buffer=16M[mysqlhotcopy]interactive-timeout[mysqldump]quickmax_allowed_packet = 16M[mysql]no-auto-rehash[isamchk]key_buffer = 96Msort_buffer_size = 64Mread_buffer = 2Mwrite_buffer = 2M[myisamchk]key_buffer = 96Msort_buffer_size = 64Mread_buffer = 2Mwrite_buffer = 2M
الان مع درس تغيير بورت الشل طريقة تغيير بورت الشل 22 الى اى بورت اخر ندخل
pico /etc/ssh/sshd_config
نبحث عن
#Port 22
ونغير 22 الى رقم مكون من 4 ارقام وليكن 123 ونعدل على اعدادات الـ CSF كما بالصوره

ثم

نلاحظ هنا وضعنا البورت الجديد 1234وفصلنا بينه وبين اللى قبله بـ "," الا نعمل ريستارت SHH
/etc/init.d/sshd restart