Hot answers tagged server
20
You could install WordPress on Nginx. There are a number of resources to help:
nginx Compatibility plugin
HOWTO: Install WordPress On
Nginx-
Slicehost discussion
How To Speed Up WordPress With Nginx And WP Super Cache
WordPress on nginx + lighttpd + FastCGI + php
Nginx as a front-end proxy cache for WordPress
Some performance information from that last ...
18
Set client-side expiries for things like css, images, JavaScript etc which don't need to be redownloaded for each page view. This, by far, made the biggest difference to my site loading times. The fastest download is the download that never happened ...
# BEGIN Expire headers
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus ...
17
Minimize the number of plugins you run to only what you really need. Especially be aware of plugins that add javascript and CSS code on every page load, even when that code isn't being used on the page.
If you are creating your own theme from scratch, break your CSS down so that features that are only need for particular page templates or view types ...
17
I gave this some more thought and given size of WP code base (including bundled libraries) it doesn't seem very realistic to compile such list by hand (and repeat it for every new version - meh).
I looked up appropriate static code analysis tool - PHP_CompatInfo and after some tinkering generated following report of extensions used by core (version scanned ...
14
The answer for this might be complicated and very long, as far as I know, there will also be some differences between servers & OS (IIS, Apache).. I can not say that the following list is a FULL list, but it includes some of those I know that are required :
Curl and CurlSSL – Not sure it is REQUIRED but but much of the WordPress code will use it if it ...
9
Run memcached and use an object cache to reduce the number of database queries. This caches data from the database, rather than pages. Not sure if w3-total-cache already does this.
Make sure you are running an opcode cache like APC. (There are several more available.)
7
A few answers off the top of my head:
1) Minimize the number of HTTP requests the browser has to make to your host by concatenating JavaScript and CSS where possible/practical.
2) Offload as much of your image/media serving to 3rd party CDNs as possible, particularly if you're using shared hosting.
3) Try reducing the number of posts you're displaying on ...
6
You explicitly mention three services in your question title: EC2, RDS and EBS.
If they're the three services you're interested in, then yes, very easily.
EC2 + EBS are pretty much the same thing, EBS is simply a persistent storage extension to EC2, and RDS is a full MySQL database - you should be able to get those three services running together very ...
6
In addition to using a disk caching plugin like wp-cache, put your blog on a host volume that has the "noatime" property set on it. Otherwise, SSH into your host (if your webhost provides that) and routinely run this command on your files every few days:
chattr -R +A ~/*
The ~/* means "my files under my home directory". You can change that path as you ...
6
WordPress local development environment:
Local development environments could apply to developing any type of application but there are some specific WordPress gotchas that could hinder your transition from local to dev.
The goal of a local development environment is to mimic as close as possible the production environment and allow seamless transition.
...
5
Use a database class that is trimmed for optimization. We made good experiences with own code to reduce memory usage and database access speed. Next to that, you can optimize the database structure itself by some small changes that do a lot as well.
Part of the database class code can be found in the wordpress trac, it did not made it into core (Ticket ...
5
Styles and scripts are always set up by the functions wp_enqueue_script() and wp_enqueue_style(), which have to be tied to a particular action hook in order to function. I took a peek inside Contact Form 7, and it looks like it's using action tags of wpcf7_enqueue_scripts and wpcf7_enqueue_styles to add them to the wp_print_scripts and wp_print_styles ...
5
Souljacker,
I would first take a look at your plugins. Star Ratings for Reviews hasn't been updated for over 3 years and looks like its real heavy on the db. I saw some raw sql with some INNER JOINS that look troublesome.
On the server side you should implement some object caching. APC is the defacto standard and will give you the best results.
Once ...
5
WebSockets use the websockets protocol: WS:/example.com/yourscript.js and open a synchronous connection - meaning the connection is held open and dedicated to the browser.
httpd servers, like apache2 (used by most shared hosting providers) use the http protocol: http://example.com/yourscript.js and open an asynchronous connection - meaning that no ...
4
WAMP is an acronym that means: Windows, Apache, Mysql, Php.
There are different WAMP "distribution" such as XAMPP, WampServer (what some people just call "WAMP"), Wamp-Developer Pro (commercial software), and others...
The big list of WAMPs is here:
http://en.wikipedia.org/wiki/Comparison_of_WAMPs
XAMPP for Windows is just another WAMP distribution, ...
4
The default favicon location on your server gives a 404:
http://www.steve.doig.com.au/favicon.ico
Your blogs homepage source-code related to linking to another location is:
<link rel="icon" type="image/png" href="http://www.steve.doig.com.au/wordpress/wp-content/themes/grid-focus-public-10/images/favicon.ico">
Note: The file suffix is .ico ...
4
Without looking at your box to see exactly what's going on, here are some potential avenues of slowness:
Potential Causes
Apache
Apache is usually configured in such a way that a single httpd process is always running in the background. When a request comes in over the wire, it spins up a new httpd process to handle the request. Once the request closes, ...
3
Thomas McDonald is pretty much right on track. Just wanted to add that if you're going to use EC2 to scale your sites as you need more servers, then you will need to contend with the fact that you will have multiple instances of your site out there with no common shared volumes.
In other words, let's say you have 2 EC2 instances up -- each one is ...
3
Even though static files and directories do work with a mod_rewrite'd wordpress installation in the servers root you might need to exclude your CodeIgniter subdirectory from that mod_rewrite lineup.
You can do so by placing an additional .htaccess file into the CodeIgniter directory and disable mod_rewrite in there:
<IfModule mod_rewrite.c>
...
3
Not exactly answering the question, but if you are interested in learning how the packages work together, I suggest installing and configuring them manually. I've been using this tutorial as a guideline, it is detailed and helps you get everything running and talking to each other. It's a bit more work, but provides you much more flexibility, and you ...
3
The objection that XAMPP is bloated--because it has a mail server, FTP server, etc.--might be answered by asking what you need. If you need most or all of those items, it's the full XAMPP for you. For just developing web pages, including PHP and MySQL, use XAMPP Lite. At different times I've found both to be very useful. I especially like that I can run ...
3
XAMPP is NOT cross-platform. There is XAMPP for Windows, XAMPP for Linux, for Mac and for Solaris, but each pack contains different pieces of software, runs differently with different performance, etc. (cross-platform means that you take the exact same piece of software and it runs the same way on different platforms ... like Azureus used to be: a jar that ...
3
For a highly trafficked site, you should tune all MySQL buffers for the content that is in place now. Regardless of the version of WordPress, the MySQL layer can have its configuration computed.
In fact, if you have InnoDB data without enabling innodb_file_per_table, you need to cleanup InnoDB by segmenting each table into its own physical tablespace. It is ...
3
I recently spoke about this subject at WordCamp Houston. All of the above recommendations are great and the important thing is to make sure all the front end stuff is fully optimized then you can start working on the caching and server performance issues.
Progressive rendering will make your pages feel faster because the user will see the page content ...
3
I asked this question over a year ago, and during that time we've added more people to our team and developed a much larger number of sites in WordPress. I wanted to walk through our process in case it might help anyone else.
Everything in Git
This was something I was doing even as I asked the question, but it's good to call this point out. Using Git has ...
3
Yes cou can change it by accessing the database of your wordpress. It's located in the wp_options table of your wp' database. You'll have to change two values; the siteurl (line 1) and the home (line 37).
You can access it through the admin panel of your host and/or sometimes directly by typing in your browser the DB_HOST value you entered for the ...
3
Even when Wordpress is running version 3.1, sites are still being defaced.
Even? There had been one major and five security releases since that version. If you are implying that 3.1 should be reasonably secure - it is not.
but the only answer seems to be outdated Wordpress sites
What had you done to exclude themes, plugins and hosting used to jump ...
3
Imo it's your server or your host. Hosts that are known for not really caring about security on their shared services are dh and mt (and some others out of the big players). Both had been successfully attacked and infected multiple times last year. As i use one of those myself (contract running) and had the same problem as you (different installs, no ...
3
Depends on your business needs. If you're running it for a personal blog or a small site then stay away from suspicious plugins and hosting providers and you'll be fine. There are some good security/backup plugins which tend to sometimes work. The best advice though is "stay updated" ;)
If you're doing something bigger then go for VaultPress (not free). If ...
3
Links:
http://codex.wordpress.org/Hardening_WordPress
http://perishablepress.com/press/tag/security/ (lots of great
articles)
http://www.wpsecure.net/secure-wordpress/
Only top voted, non community-wiki answers of a minimum length are eligible