cbunting99
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WordPress ruining nginxI run an optimized setup simuar to yours, a pretty graphic intensive site also using WooCommerce but your load times should be much better.
worker_processes 4;
– That should be worker_processes auto;user username;
– Unless that is what you are using for the name, generally it’s nginx or www-data..chown -R www-data:www-data /var/www/sitename.com/public_html chmod -R 755 /var/www/sitename.com/public_htmlHonestly, You don’t even need varnish. And I’d remove all of the w3 total cache code from the sites-available as w3 total cache will write it’s own nginx.conf to your root directory.
I’d run Nginx, Percona and PHP-FPM.
I’d get rid of varnish as it’s not needed at all.
For plugins, I use the following,
W3 Total Cache, Disk Enhanced for page cache, and I use xcache 4 for db and object cache. Get rid of bwp minify, and install autoptimize plugin, just use the basic settings tab and only choose css and js minification.
If you install google xml sitemaps, you can also install warm cache which you can generate all of your static pages. You just clear the aotoptimize cache, then switch to warm cache, past the link in a new browser and the crawler will write all of your static content.
If you want a fast Nginx server, you can use my build that I run on zionwp.com and boi-infinity.com, https://github.com/zionwp/zionX or you can use the original engine I based mine on @ http://tengine.taobao.org/index.html
The zionx engine has built in features to make clean code. You can view the static source of zionwp.com if you’d like to see.
If you are interested, I can post all of the configs that I use along with the compile settings for the custom nginx server if you’d like to try my setup that I run on my sites.
Chris
Forum: Plugins
In reply to: [WooCommerce] Item will not be removed from cart with Expires Headers onI’ve never had this issue but I don’t use apache through either.
In the Database Cache settings, do you have _wc_session_ in the Ignore query strings box?
Generally, I add all my code to my nginx virtual host, which is the same as how you set them in Apache’s .htaccess.
<FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css|swf)$"> ExpiresDefault "access plus 2 hours" </FilesMatch>It may just be a conflict because I never enable any of the tick boxes for expire headers, etag ect as I do it all from the server itself!
Then, I added the code recommended by our hosting company, in .htaccess:
Try removing that block your hosting company said to add, then in w3 total cache, click the install link near the bottom, it will give you the code for the .htaccess.
Hope this helps.. I don’t remember much about apache anymore.
ChrisForum: Plugins
In reply to: [W3 Total Cache] Fixing PageSpeed Insight IssuesUse disk cache for pages, on the general settings, turn off minify altogether..
Then install this plugin, https://wordpress.org/plugins/autoptimize/
On the basic settings tab, only tick the box for minify css and js..
Purge your w3tc cache, and try again..
BTW: on BJ Lazy Load, turn the first 6 options off, then turn on Apply to content, and lazy load images only and try.
Hope this helps,
ChrisJust deactivate it! if you are left with stuff in the .htaccess file, just delete it, enter the wordpress addmin, go to permalinks, and hit save to re-generate the htacess.
Forum: Plugins
In reply to: [W3 Total Cache] Page Cache not working with php 5.4I have no idea what godaddy uses these days, but you can try disabling the plugin, and if you have ftp or a file manager, delete the .htaccess file.
Then you can re-enable the plugin, and let it generate a new .htaccess.
Not sure if thats your problem, but I haven’t used apache server in years so thats all I can think of.
Chris
There has been one for almost forever.. With no ads also!
https://wordpress.org/plugins/google-analytics-dashboard-for-wp/
Forum: Plugins
In reply to: [NGINX Cache Optimizer] Enable button doesn't work..My bad.. So used to installing pecl memcached, it needed memcache..
opps..
Forum: Plugins
In reply to: [W3 Total Cache] CSS MinificationYou can use Page, Database and Object Cache, but turn off Minify and use the Autoptimize plug-in for minification!
Thats what I am using at the moment,
ChrisHello,
If you want to use APC, Use this plugin, http://wordpress.org/extend/plugins/apc/ Don’t install it like a plugin though. Unzip the file and upload object_cache.php to your /wp_content/ directory.Currently, Out of testing a zillion configurations with Debian 6, Nginx, Php-Fpm and Percona DB, Quickcache with APC caching is currently the fastest combination.
Have your web host set your directory permissions for you!
They need to issue a “chown -R” on on the root path to the directory that your site files are in. And then check the permissions with FTP.
Apache Example: (I don’t use apache so I’m guessing)
chown -R apache:apache /var/www/yourdomain.com/public_htmlNginx Example:
chown -R www-data:www-data /var/www/yourdomain.comYou host should know how to do this and it should fix the problem.
Chris
What you are wanting to do, if you require help will be costly. What I would do in a similar situation would be..
Put WordPress in the root directory where you want. Import your existing database. Install http://wordpress.org/extend/plugins/redirection/ and then create a free account with https://www.attracta.com/ to submit your new .XML sitemap to google, yahoo, bing ect.. The plugin will handle the redirects for you and the search engines will update themselves as needed.
Just a thought,
ChrisHello,
You have to upload the object-cache.php to your /wp-content/ content directory. It tries to install like a plugin but it’s not a standard plugin. Or you can try this one, it’s automatic. Tribe Object CacheWould also be nice if you could include a URL scanner for the admin and plugins directory. A recursive search checking for any external urls outside of our own. http://www.*
While I understand why many plugin authors add links, like options or paypal donate buttons, The wordpress admin should never be allowed to connect to 3rd party sites in my opinion.
Just a thought,
ChrisForum: Plugins
In reply to: [ckeditor] Javascript left in 2 spots on created page.After checking into the issue with the editor, I was having issues with PHP 5.3. I just made another post outlining that as I think a lot of the upgrade issues people are having are related to something with php 5.3.
I’m back on php 5.2 now. Since everything else is now running correctly, I will see if that happens to fix the editor as well.
Thanks for the reply.
ChrisActually, Part of the problem may be your settings.
On the General Settings Tab, Make sure Auto is selected, Since you are using Disk, Use Default, JSMin (Default) and Default settings.
Then click on the minify tab…
For xhtml and html, Just check the first 4 boxes, don’t check line break removal.. This will allow you to view your source to make sure things are working.
For JS and CSS Settings, Make sure only the Enable box is checked. Don’t use combine, preserved or line break removal.
Once you save your settings and clear the caches, you should now be able to view your source in a nice clean format and all your js and css files should appear as just one file.
I think I remembered all that correctly, Hope it helps,
Chris