Initial Slicehost configuration
(→Install WordPress) |
Current revision (02:01, 1 February 2010) (view source) |
||
| Line 12: | Line 12: | ||
# Install PHP5 with basic set of modules | # Install PHP5 with basic set of modules | ||
# Install MySQL | # Install MySQL | ||
| + | # Install Memcached and APC (for performance and caching) | ||
=== Setting up the account on the server === | === Setting up the account on the server === | ||
Current revision
This will develop as an overview to and continuing notes on the initial process of configuring a slice on Slicehost.
Our operating system of choice is the latest version of Ubuntu. Following the solid documentation on Slicehost, the steps for configuring a slice include:
- Create new account on the Slice for username "copress"
- Change SSH properties if applicable
- Set up IP firewall
- Set up alias
- Update all of the packages on the slice
- Build essentials
install build-essentials - Install Apache
- Install PHP5 with basic set of modules
- Install MySQL
- Install Memcached and APC (for performance and caching)
Setting up the account on the server
- Create a user for the client (i.e. "clientname")
- Create a public_html web directory and log directory
- Add a new record as a VirtualHost file. There are two steps to this process. One, create the VirtualHost file that points the domain to the correct directory. This VirtualHost file goes in /etc/apache2/sites-available. Two, use
sudo a2ensite domain.comto enable the domain. Lastly, restart Apache.
Install WordPress
- Create a MySQL database for the WordPress instance. If you've installed MySQL already, here is a code snippet for creating a new database, database user, and database password.
- Upload WordPress and install
- Confirm email notifications are functional. If they aren't, there are a couple of things you'll need to do:
- Install postfix using the "Internet site" configuration. The host domain will be the domain for the sandbox and will need to be changed after the primary domain is changed for the server.
- Install mailx using
sudo apt-get install mailx. mailx is useful for sending test emails from the command line. - More information here and here
- Confirm plugin installation and automatic upgrades are functional. If they aren't, which they most likely won't be, then there are a few steps you need to take:
- Disable PHP5
- Restart Apache
- Install suPHP
- Make sure suPHP is loaded in the apache.conf. For Ubuntu, all of the modules are loaded automatically.
- Check the suPHP conf file for appropriate settings.
- Set permissions of user directory files with
find . -type f -exec chmod 644 {} \;and directories withfind . -type d -exec chmod 755 {} \; - Set ownership of the files and directories to the user
- Restart Apache
- Enable pretty permalinks by making sure mod_rewrite is enabled and that your conf file is set up properly by following these instructions
This page is maintained by Daniel Bachhuber.
This page is maintained by Albert Sun.

