Archive for ‘Scripts and Programming’ category

WordPress 3.0 – Internal Server Error 500

21 June, 2010 | Athan | No Comment

Don’t Panic!

But I did.

I was like saying “Sheeks! I didn’t backed up my blog!” when I got my last WordPress version upgraded to the lastest WordPress 3.0. Who wouldn’t if you’ll get an error 500 to your admin page and to your blog?

Error 500 – Internal server error
An internal server error has occured!
Please try again later.

Good to know that my brain was working and made some changes to the .htaccess file.

I was checking what PHP version I was using with the WordPress Version 2.9.x I had, and found out that it’s still PHP4. I thought on parsing it to PHP5 and to hopefully work. It did!

On my wordpress folder in my webspace, I added a one line script to parse PHP4 to PHP5. This can be done through your .htaccess file like this as highlighted in line 02.

Line 01, # BEGIN WordPress
Line 02, AddType x-mapp-php5 .php
Line 03, <IfModule mod_rewrite.c>
Line 04, RewriteEngine On
Line 05, RewriteBase /
Line 06, RewriteCond %{REQUEST_FILENAME} !-f
Line 07, RewriteCond %{REQUEST_FILENAME} !-d
Line 08, RewriteRule . /index.php [L]
Line 09, </IfModule>
Line 10, # END WordPress

And that should do the trick to run your WordPress 3.0!

A Quick Guide to Download and Install WAMPServer and Install WordPress through localhost

6 June, 2010 | Athan | 1 Comment

I am writing this brief guide to help a friend. He’d like to test wordpress by himself.

He downloaded wordpress already and told him that it’ll not work if he don’t have Apache, MySQL and PHP installed in his PC.

Below is a simple step by step, enumerated instructions to set this up.

1. Download WAMPServer (Apache, PHP, MySQL on Windows).

2. Save and Run to Install the WAMPServer to your computer.

For intermediate and advance users, they preferably had partitioned their drive and installs the WAMPServer to a dedicated partitioned.

3. Basically, the WAMPServer will be installed as a default to C:/wamp.

4. After the installation, you can type in to your browser http://localhost to browser your local site’s root.

How to install WordPress to your localhost?

1. Download and Unzip the WordPress files.

2. Copy the unzipped files which is the wordpress folder now to C:\wamp\www

3. Browse http://localhost/phpmyadmin/ and create a database named wordpress.

4. Browse http://localhost/wordpress/ and follow the simple steps until you will be asked for the database information, to wit;

Database Name : wordpress (the database name you created through phpmyadmin)

User Name : root (default)

Password : (leave this blank)

Database Host : localhost

Table Prefix : wp_ (just leave as default)

5. Just go Submit and follow the next few instructions and your good to go.

I hope this ain’t hard to deal with. Good luck Ernest!