Elazığlı168 adlı üyeden alıntı: mesajı görüntüle
Htaccess içeriğini buraya eklersen yorumlayabiliriz. Php yapılandırmasıyla çakışan bir betik olabilir.
aresSonic adlı üyeden alıntı: mesajı görüntüle
söyledigim gibi birde sunucu güncelleme yapın update + upgrade. http sayfa sisteminiz nedir? apache lighttpd litespeed nginx.. gibi
Simdi arkadaslar, ben siteme W3c Total Cache yi kurduktan sonra, bir iki ayari aktif ettikten sonra karsima bu uyalarilar geldi.

Alıntı
  1. Set the permissions of wp-content/ back to 755, e.g.: # chmod 755 /var/www/vhosts/domain.com/httpdocs/wp-content/
  2. On the "General" tab and select your caching methods for page, database and minify. In most cases, "disk enhanced" mode for page cache, "disk" mode for minify and "disk" mode for database caching are "good" settings.
  3. 1. The "Compatibility Mode" option found in the advanced section of the "Page Cache Settings" tab will enable functionality that optimizes the interoperablity of caching with WordPress, is disabled by default, but highly recommended. Years of testing in hundreds of thousands of installations have helped us learn how to make caching behave well with WordPress. The tradeoff is that disk enhanced page cache performance under load tests will be decreased by ~20% at scale.
  4. Recommended: On the "Minify" tab all of the recommended settings are preset. Use the help button to simplify discovery of your CSS and JS files and groups. Pay close attention to the method and location of your JS group embeddings. See the plugin's FAQ for more information on usage.
  5. Recommended: On the "Browser Cache" tab, HTTP compression is enabled by default. Make sure to enable other options to suit your goals.
  6. Recommended: If you already have a content delivery network (CDN) provider, proceed to the "Content Delivery Network" tab and populate the fields and set your preferences. If you do not use the Media Library, you will need to import your images etc into the default locations. Use the Media Library Import Tool on the "Content Delivery Network" tab to perform this task. If you do not have a CDN provider, you can still improve your site's performance using the "Self-hosted" method. On your own server, create a subdomain and matching DNS Zone record; e.g. static.domain.com and configure FTP options on the "Content Delivery Network" tab accordingly. Be sure to FTP upload the appropriate files, using the available upload buttons.
  7. Optional: On the "Database Cache" tab the recommended settings are preset. If using a shared hosting account use the "disk" method with caution; in either of these cases the response time of the disk may not be fast enough, so this option is disabled by default.
  8. Optional: On the "Object Cache" tab the recommended settings are preset. If using a shared hosting account use the "disk" method with caution, the response time of the disk may not be fast enough, so this option is disabled by default. Test this option with and without database cache to ensure that it provides a performance increase.
  9. Optional: On the "User Agent Groups" tab, specify any user agents, like mobile phones if a mobile theme is used.
Check out the FAQ for more details on usage.




Rewrite rules

/var/www/vhosts/domainname.com/httpdocs/.htaccess:

# BEGIN W3TC Browser Cache
<IfModule mod_deflate.c>
    <IfModule mod_headers.c>
        Header append Vary User-Agent env=!dont-vary
    </IfModule>
        AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
    <IfModule mod_mime.c>
        # DEFLATE by extension
        AddOutputFilter DEFLATE js css htm html xml
    </IfModule>
</IfModule>
# END W3TC Browser Cache
# BEGIN W3TC Page Cache core
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^(.*\/)?w3tc_rewrite_test/?$ $1?w3tc_rewrite_test=1 [L]
    RewriteCond %{HTTP:Accept-Encoding} gzip
    RewriteRule .* - [E=W3TC_ENC:_gzip]
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} =""
    RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC]
    RewriteCond "%{DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index.html%{ENV:W3TC_ENC}" -f
    RewriteRule .* "/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index.html%{ENV:W3TC_ENC}" [L]
</IfModule>
# END W3TC Page Cache core

/var/www/vhosts/domainname.com/httpdocs/wp-content/cache/minify/.htaccess:

# BEGIN W3TC Minify cache
Options -MultiViews
<IfModule mod_mime.c>
    AddEncoding gzip .gzip
    <Files *.css.gzip>
        ForceType text/css
    </Files>
    <Files *.js.gzip>
        ForceType application/x-javascript
    </Files>
</IfModule>
<IfModule mod_deflate.c>
    <IfModule mod_setenvif.c>
        SetEnvIfNoCase Request_URI \.gzip$ no-gzip
    </IfModule>
</IfModule>
<IfModule mod_headers.c>
    Header set Vary "Accept-Encoding"
</IfModule>
# END W3TC Minify cache
# BEGIN W3TC Minify core
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /wp-content/cache/minify/
    RewriteRule /w3tc_rewrite_test$ ../../plugins/w3-total-cache/pub/minify.php?w3tc_rewrite_test=1 [L]
    RewriteCond %{HTTP:Accept-Encoding} gzip
    RewriteRule .* - [E=APPEND_EXT:.gzip]
    RewriteCond %{REQUEST_FILENAME}%{ENV:APPEND_EXT} -f
    RewriteRule (.*) $1%{ENV:APPEND_EXT} [L]
    RewriteRule ^(.+/[X]+\.css)$ ../../plugins/w3-total-cache/pub/minify.php?test_file=$1 [L]
    RewriteRule ^(.+\.(css|js))$ ../../plugins/w3-total-cache/pub/minify.php?file=$1 [L]
</IfModule>
# END W3TC Minify core

/var/www/vhosts/domainname.com/httpdocs/wp-content/cache/page_enhanced/.htaccess:

# BEGIN W3TC Page Cache cache
AddDefaultCharset UTF-8
<IfModule mod_mime.c>
    AddType text/html .html_gzip
    AddEncoding gzip .html_gzip
    AddType text/xml .xml_gzip
    AddEncoding gzip .xml_gzip
</IfModule>
<IfModule mod_setenvif.c>
    SetEnvIfNoCase Request_URI \.html_gzip$ no-gzip
    SetEnvIfNoCase Request_URI \.xml_gzip$ no-gzip
</IfModule>
<IfModule mod_headers.c>
    Header set Vary "Accept-Encoding, Cookie"
</IfModule>
# END W3TC Page Cache cache
Suraya dikkat cekmek istiyorum.

Software Installation for Dedicated / Virtual Dedicated / Multiple Servers (Optional)


Server Preparation:
Time required: ~1 minute
  1. Install yum if you don't already have it. Then, if you like, you can update all of your installed software, but do so only if you have the experience and time to double check configurations afterwards: # yum update
  2. Install PECL: # yum install php-pear
  3. Install the PHP Development package: # yum install php-devel
  4. Install apxs with the following command: # yum install httpd-devel
  5. Make sure GCC is up-to-date: # yum install gcc make
  6. Make sure ZLIB is fully installed: # yum install zlib-devel
  7. Make sure PCRE is fully installed: # yum install pcre-devel
Memcached (Daemon) Installation:
Time required: 2 minutes
  1. Try to install with yum: # yum install libevent libevent-devel If this succeeds skip to #5. If this fails, then let's compile. Download and extract the latest stable version: # cd /usr/local/src && wget http://monkey.org/~provos/libevent-2.0.14-stable.tar.gz && tar -xzf libevent-2.0.12-stable.tar.gz && cd libevent-2.0.12-stable
  2. Let's compile: # ./configure && make && make install
  3. In the output you should see: Libraries have been installed in: /usr/local/lib If so you can: # echo "/usr/local/lib/" > /etc/ld.so.conf.d/libevent.conf
  4. Configure your server for the new install: # ldconfig -v
  5. Now find the latest stable memcached, download and extract: # cd /usr/local/src && wget http://memcached.googlecode.com/file...d-1.4.6.tar.gz && tar -xzf memcached-1.4.6.tar.gz && cd memcached-1.4.6
  6. Let's compile: # ./configure && make && make install
  7. Make sure memcached is starts automatically on server boot: # touch /etc/init.d/memcached # echo '#!/bin/sh -e' >> /etc/init.d/memcached # echo '/usr/local/bin/memcached -d -m 128 -p 11211 -u nobody -l localhost' >> /etc/init.d/memcached # chmod u+x /etc/init.d/memcached # echo '/etc/init.d/memcached' >> /etc/rc.local
  8. And finally, let's start memcached: # /etc/init.d/memcached
PECL Memcache Module Installation:
Time required: 1 minute
  1. Either use PECL (and skip to #4 if successful): # pecl install memcache
  2. Or via compilation. Download the latest stable version and extract: # cd /usr/local/src/ && wget http://pecl.php.net/get/memcache-2.2.6.tgz && tar -xzf memcache-2.2.6.tgz && cd memcache-2.2.6
  3. Now we start to compile: # phpize && ./configure && make && make install
  4. You can also use the memcache.ini file we prepared for you: # cp /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/w3-total-cache/ini/memcache.ini /etc/php.d/
  5. Finally restart apache: # /etc/init.d/httpd restart
  6. You're done! Memcache should now be available. If the following command retuns anything, you're all set: # php -r 'phpinfo();' | grep 'memcache'
PECL Alternative PHP Cache (APC) Installation (Recommended):
Time required: 1 minute
  1. Install APC using the PECL command (and skip to #5 if successful): # pecl install apc
  2. Or via compilation. Download the latest stable version and extract: # cd /usr/local/src && wget http://pecl.php.net/get/APC-3.1.9.tgz && tar -xzf APC-3.1.9.tgz && cd APC-3.1.9
  3. Note the paths returned for the following commands: # whereis php-config # whereis apxs
  4. Use the output from #2 to modify the --with-apxs and --with-php-config flags in the following compile command: # phpize && ./configure --enable-apc --enable-apc-mmap --with-apxs=/usr/sbin/apxs --with-php-config=/usr/bin/php-config && make && make install The result should be similar to: Installing shared extensions: /usr/lib/php/modules/
  5. You can also use the apc.ini file we prepared for you: # cp /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/w3-total-cache/ini/apc.ini /etc/php.d/
  6. Restart apache when ready: # /etc/init.d/httpd restart
  7. You're done! APC should now be available. If the following command retuns anything, you're all set: # php -r 'phpinfo();' | grep 'apc'
XCache Installation:
Time required: 1 minute
  1. Download the latest compatible version and extract: # cd /usr/local/src && wget http://xcache.lighttpd.net/pub/Relea...e-1.3.2.tar.gz && tar -xzf xcache-1.3.2.tar.gz && cd xcache-1.3.2
  2. Note the path returned for the following command: # whereis php-config
  3. Use the output from #2 to modify the --with-php-config flag in the following compile command: # phpize && ./configure --with-php-config=/usr/bin/php-config --enable-xcache --enable-xcache-optimizer --enable-xcache-coverager && make && make install The result should be similar to: Installing shared extensions: /usr/lib/php/modules/
  4. You can also use the eaccelerator.ini file we prepared for you: # cp /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/w3-total-cache/ini/xcache.ini /etc/php.d/
  5. Restart apache when ready: # /etc/init.d/httpd restart
  6. You're done! XCache should now be available. If the following command retuns anything, you're all set: # php -r 'phpinfo();' | grep 'xcache'
eAccelerator Installation:
Time required: 1 minute
  1. If using PHP v5+, download the lastest compatible version and extract. Remember v0.9.5.3 is the last version that supports user objects, later versions only support opcode caching. # cd /usr/local/src && wget http://autosetup1.googlecode.com/fil....9.5.3.tar.bz2 && tar -xjf eaccelerator-0.9.5.3.tar.bz2 && cd eaccelerator-0.9.5.3
  2. Note the path returned for the following command: # whereis php-config
  3. Use the output from #2 to modify the --with-php-config flag in the following compile command: # phpize && ./configure --with-eaccelerator-shared-memory --with-php-config=/usr/bin/php-config && make && make install The result should be similar to: Installing shared extensions: /usr/lib/php/modules/
  4. You can also use the eaccelerator.ini file we prepared for you: # cp /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/w3-total-cache/ini/eaccelerator.ini /etc/php.d/
  5. Restart apache when ready: # /etc/init.d/httpd restart
  6. You're done! eAccelerator should now be available. If the following command retuns anything, you're all set: # php -r 'phpinfo();' | grep 'eaccelerator'