We install and set up Wordpresses not because it’s necessarily difficult for some people, but because it seems like it is for most. So if you think you have the muster to follow these simple steps on a computer, then you might be able to work here at iDotMind
For a new install for a new domain
mkdir /var/www/example.com
cd /var/www/example.com
wget http://wordpress.org/latest.zip
tar -xvf latest.zip
mv wordpress httpdocs
chown -R www:www httpdocs
rm latest.zip
Open up the wp-config.php file and edit the database settings. Choose a random username and a random password at least 8 digits long.
Make a connection to the database server:
mysql -h mysqlserver -u yourusername -p
CREATE database nameofdatabase;
GRANT ALL on nameofdatabase.* to ‘wpusername’@'IP of your webserver’ identified by ‘wppassword’;
Then you should append the following to the end of the apache virtual hosts file which is located here:
/usr/local/etc/apache22/extra/httpd-vhosts.conf
#### EXAMPLE.COM ####
ServerAdmin you@example.com
DocumentRoot /var/www/example.com/httpdocs
ServerName example.com
ServerAlias example.com
ErrorLog /var/log/web/example.com-error_log
CustomLog /var/log/web/example.com-access_log combined
AllowOverride None
Order allow,deny
Allow from all
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
Close and save then restart the Apache webserver
apachectl restart
Install as a blog add-on for an existing domain
cd /var/www/example.com/httpdocs
wget http://wordpress.org/latest.zip
tar -xvf latest.zip
mv wordpress blog
chown -R www:www blog
rm latest.zip
Open up the wp-config.php file and edit the database settings. Choose a random username and a random password at least 8 digits long.
Make a connection to the database server:
mysql -h mysqlserver -u yourusername -p
CREATE database nameofdatabase;
GRANT ALL on nameofdatabase.* to ‘wpusername’@'IP of your webserver’ identified by ‘wppassword’;
Then you should append the following to the end of the apache virtual hosts file which is located here:
/usr/local/etc/apache22/extra/httpd-vhosts.conf
Find the domain name’s virtual host container that you are working on and insert the following between the
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
Close and save then restart the Apache webserver:
apachectl restart
Post-Install Setup
Here at iDotMind we do a lot of the initial setup, installing themes, customizing css styles sheets, making artwork, applying modules, optimizing the site for search engines (SEO), and adding content, etc… Maybe in another article I’ll get into some of my other ways of setting things up. I might even include some of my secret automation shell scripts that are real time savers. Until then, happy installing!
Written By Nestor Wheelock
Systems Architect and Client Support Guru
http://www.iDotMind.com
This article be freely shared non-commercially under the Creative Commons

How To Install A Basic Wordpress In A Snap by iDotMind is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.


