5 Mar 2014

Troubleshooting "Index of" Message - Wordpress

On In

Share your thoughts!

wordpress by anjana@anjanadesigns
I'm a Blogger user since last year. However, last week I tried to install Wordpress. WordPress is web software you can use to create a beautiful website or blog. I went to Wordpress.org and downloaded the Zip file. After doing a little search on Google I came to know that Wordpress can be installed locally on our computer for testing and development purpose.

Easy Steps to Install Wordpress locally on Your Computer:

Download and install WampServerDownload from this link. Install WampServer by double clicking on the Setup file. The default install location would be C:\wamp. Be sure to create a Desktop icon. During the installation you will be prompted to make Firefox as your default browser. If you are not okay with that, select your desired browser from Program Files in order to complete the installation of WampServer. Please specify the SMTP server and the address mail to be used by PHP when using the function mail (). If you are not sure just leave the default values: SMTP: localhost and Email: you@yourdomain. Now double click on the WampServer icon on your Desktop. The icon will appear on your Taskbar's notification area.

Single mouse click on the icon gives you the option to put Wamp Server online. Once more click on the icon and select phpMyAdmin. You will get a page with address http://localhost/phpmyadmin. Type 'root' as username and leave the password blank. Click Go. Click on Databases and create a database.

After downloading Wordpress unzip it. You will get a folder named Wordpress. Copy the Wordpress folder to C:\wamp\www. Now open your browser and go to http://localhost/wordpress. You will get a Wordpress Error message like this: "There doesn't seem to be a wp-config.php file. I need this before we can get started..." Click on 'Create a Configuration File'. 

wordpress configuration

Let’s go! Create a configuration file by entering the database name, user name (root) and password (leave the field as blank). Click Submit.

All right, sparky! You’ve made it through this part of the installation. WordPress can now communicate with your database. Now Run the install. Provide the Site Title, User Name, Password, E-mail Address and install Wordpress.

Congrats! You have successfully installed Wordpress on your computer. Now login to your Blog's Dashboard (http://localhost/wordpress/wp-admin) and customize your Site.

Easy Steps to Install Wordpress on Webhost:

You can use an FTP client to upload files to the server. I'm using Filezilla. Download FilezillaDownload from this link.

Uploading files with Filezilla:

After finishing the installation, open Filezilla. Click on File and select Site Manager. Click New Site and give a name. Fill out the below details and click Connect:
Enter your FTP Hostname. It should be like ftp.yoursite's url.
Change the Logon Type to Normal.
Enter your FTP Username and Password.

What I have done to resolve the "Index of" error message:

Files must be uploaded to 'public_html' folder. Like you, I also searched on Google regarding the file transfer and learned that it is recommended to upload files to a sub directory under the 'public_html' folder. Firstly I tried that. So I created a folder named 'Blog' inside the 'public_html' folder and uploaded the folder Wordpress to it. Unfortunately, when I tried to access my site I got 'Index of' error message. When I clicked on 'Index of' it took me to Index of  /Wordpress /Blog. Again I did a detailed search on the internet but none of the solutions were worked for me. The second time I did upload the Wordpress folder directly to the 'public_html' folder. This time it took me to Index of  /Wordpress. The third and last time it worked when I uploaded the contents of the Wordpress folder to the 'public_html'.

Come back to Filezilla: You can see the server files on the right pane and the drives on your computer on the left pane. On the right pane you can see the 'public_html' folder. Click on it. You can see the contents of the folder in the bottom pane. There would be two 'dots' next to the folder which is currently opened. On the left pane navigate to the Wordpress folder and click on it. You can see the contents of the folder on the bottom pane. Press Ctrl+A to select the contents. Now right click and select upload. 

Create a MySQL Database:

Go to your Host's cPanel and select MySQL. Now create a new database and user name. Make a note of the below details: $mysql_host, $mysql_database, $mysql_user and $mysql_password.

Now open a browser and go to http://yourdomain.com. Create a configuration file. Enter the MySQL details and click Submit. Click Run the Install to proceed. On the Welcome screen, enter Site Title, User Name, Password and your E-mail Address. Put a check mark for Allow search engines to index this site. Click Install Wordpress. Done!

No comments: