Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress How to Make a Website with WordPress Customizing WordPress Themes Customizing WordPress Theme Files

Error: Apache/2.4.9 (Win32) PHP/5.5.12 Server at localhost Port 80

After clicking on the sample page the page does not load, instead an error 404 shows: Not Found

The requested URL /wordpress/blog/2015/07/27/hello-world/ was not found on this server.

Apache/2.4.9 (Win32) PHP/5.5.12 Server at localhost Port 80

How can I get it to work?

Jeremy Castanza
Jeremy Castanza
12,081 Points

Without knowing for sure what you're accessing, I'm going to assume that you're trying to load WP locally without having a server installed, configured, or loaded. Check out the video series on Local WordPress Development. You'll want to install WAMP or XAMPP on your computer to run a local version of WordPress.

3 Answers

Jeremy Castanza
Jeremy Castanza
12,081 Points

A couple things that come to mind are your Permalinks and the directory where you saved the WordPress installation. Usually, local servers have a directory that is configured for localhost. For Xampp, this is htdocs. Also, you will need to append the Url in your browse. I.e. localhost/wordpress/...

@Jeremy Castanza Hi, I am running this on a local wamp server. The server is running, but still this error shows. I have tried to run some php files to chech if the local server was working fine. And all php files are running but not the pages in wordpress.

Jeremy Castanza
Jeremy Castanza
12,081 Points

Hi Shantanu,

The only other thing that I can think of may be your local server configuration. Depending upon how your server's root directory is setup will depend upon whether you get 404 errors or not. I use XAMPP, so the configuration may be different for WAMP.

Generally speaking though, once your configuration is correct, you should be able to access your site through the following URL (based upon what you provided): http://localhost/wordpress/blog/2015/07/27/hello-world/. This assumes that WordPress was installed in a folder call "wordpress" within your root directory.

I would also check your Settings page in the back end of WordPress. Resetting permalinks can help as well and making sure that the Home and Posts pages are properly setup.

Thanks, Jeremy