I am a Blogger! (Installing WordPress)

 
As my very first blog, I thought others might benefit from my steps to install WordPress on my server. YMMV of course!

The steps below are based on the 9-page WordPress “Famous 5-Minute Install” document:
http://codex.wordpress.org/Installing_WordPress

Step# Description
1: Download and Extract cd /var/www/html
wget http://wordpress.org/latest.tar.gz
tar -xzvf latest.tar.gz
(this extracts into a new wordpress folder)
mv wordpress blog
2: Create the Database and a User mysql -u root -p
<<enter password>>
create database blog;
grant all privileges on blog.* to “username”@”localhost” identified by “<<password>>”;
flush privileges;
3: Setup wp-config.php cd blog
cp -p wp-config-sample.php wp-config.php
vi wp-config.php
<<edit the three lines for DB_NAME, DB_USER, DB_PASSWORD >>
4: Upload the Files (skipped this step, all files already on the server, in the correct directory)
5: Run the Install Script http://www.your-domain-name.com/blog/wp-admin/install.php
<< fill in the four fields for site title, username, password, and email address >>
6: Step 6: click to Login to WordPress Receive 403 Forbidden error message:
Forbidden — You don’t have permission to access /blog/wp-admin/ on this server.
7: Change Apache Web Server Configuation vi /etc/httpd/conf/httpd.conf<Directory “/var/www/html/blog”>
AllowOverride None
Allow from all
Order allow,deny
Options All ExecCGI FollowSymLinks Includes
DirectoryIndex index.php
</Directory>

/etc/init.d/httpd restart

8:View the WordPress Blog! http://www.glassblower.info/blog/ now works!
9: Add my header graphic The default theme is “twentyten” (the current year 2010) and the header graphic is a driveway flanked by two long rows of trees. I would prefer to have the logo from my website, so I overwrite the file at
/blog/wp-content/themese/twentyten/images/headers/path.jpg
but the logo is stretched, so I modify the PHP at
/blog/wp-content/themes/twentyten/
specifically to change the two lines

from:
define( ‘HEADER_IMAGE_WIDTH’, apply_filters( ‘twentyten_header_image_width’, 940 ) );
define( ‘HEADER_IMAGE_HEIGHT’, apply_filters( ‘twentyten_header_image_height’, 198 ) );

to:
define( ‘HEADER_IMAGE_WIDTH’, apply_filters( ‘twentyten_header_image_width’, 647 ) );
define( ‘HEADER_IMAGE_HEIGHT’, apply_filters( ‘twentyten_header_image_height’, 75 ) );

And then I’ve got my logo at the top!

But I also know now that I could have done this thru the link
/blog/wp-admin/themes.php?page=custom-header

This entry was posted in Dell PowerEdge 2650, Linux Apache MySQL PHP (LAMP), WordPress. Bookmark the permalink.