Showing posts with label wordpress. Show all posts
Showing posts with label wordpress. Show all posts

if wordpress is slow, you must change these


first of all you must backup these ;
cp /etc/my.cnf /etc/my.cnf   backup
cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf backup
cp /usr/local/lib/php.ini /usr/local/lib/php.ini backup

after that
/etc/my.cnf ---- inside that and restart
service mysql restart
you must make this command ;
Code:
query_cache_type = 1 
query_cache_size = 26214400 
/usr/local/apache/conf/httpd.conf ---- inside that and restart
Code:
Timeout 30
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 6
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 512
MaxClients 512
MaxRequestsPerChild 4000
</IfModule>
/usr/local/lib/php.ini ---- inside that and restart
service httpd restart
you must make this command ;
Code:

expose_php = Off
register_globals = Off
register_long_arrays = Off
register_argc_argv = Off
magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
Serdar KILICASLAN
PROGRAMMER
info@ekomoni.com - last.turkwolf@gmail.com