Support » Installing WordPress » I lost my hope :( Getting apache, MySQL, PHP working on Windows 7

  • This is the fourth day I’m trying to get wordpress work on windows. When I upload to Linux server everything works just fine, but I want to make a theme for blog, so the best way to do it is to have wordpress running on PC. The problem is, that install.php index.php any file loads loads and then… nothing… blank page. I’ve tried everything, I read all topics regarding this problem, as well as other websites via google, but problem still exists. Latest Apache, latest MySql, latest PHP, latest wordpress, everything is configured just fine. I am using Windows 7 if that has anything to do with this problem.

Viewing 9 replies - 16 through 24 (of 24 total)
  • CodePoet

    (@design_dolphin)

    @claytonjames,
    I agree.

    However it is still my bad for misinterpreting the post in the first place.

    @squirrel-lt

    I got the idea that you were using Xampp after your reply to my post.

    MichealH is of no blame here.

    My apologies.

    You will have to go through the documentation on the web to see if anyone else is setting up Apache, Mysql and PHP from scratch on Windows 7. And see if there any errors on Windows 7. Maybe Windows Vista documentation can also be of some help. But I am not sure about this.

    A Windows 7, Apache, Mysql and PHP forum might be a better place to start. I don’t know many people that run from scratch on Windows for building websites, mainly because Xampp is available, and this does all the difficult setting up part automatically, usually. There have been cases of problems before when a new Windows version is released. After awhile this is usually sorted.

    Okay I have just tried to install phpbb3 and after filling all db info and clicking proceed same thing happens

    Based on that, it would seem the advice from design_dolphin and ClaytonJames to approach another forum specializing in Apache, Mysql and PHP, is appropriate.

    [Title moderated again]

    then this is the website for you 😉

    he has a whole section about running WP on windows.

    http://www.iisadmin.co.uk/

    doogle

    (@doogle)

    I’m seeing the same behavior with Apache2.2 / MySQL / PHP / WordPress. It appears PHP has been installed correctly. Oddly php.ini needs to be in C:/windows, which is different type set-up from all previous windows OS set-ups (pre Windows 7). I get a plain blank white screen of death on step-2 of the install.php file.

    Measures taken
    -Installed Apache 2.2
    -Installed PHP 5.3.1 MSVC6 (non-msi)
    -Installed MySQL (localhost creating user password and dummy table)

    Other notes: phpinfo.php works and shows extensions and mysql allows me to create a table via command line. It just seems the wordpress installer does not fly. Not sure… Sorry I did not mess with the php.ini error settings and have not looked at the error.log in apache.

    -Best,
    Doug

    Hmmm… next step would be to look in the apache log and see if it says the page loaded OK. Suspect it will as it’s a blank page but you never know for sure until you look.

    If you’re using WordPress locally with Windows 7/Apache/MySQL and getting a blank hanging screen on install, the problem may be due to using “localhost” as the host name.

    I had the same problem — very frustrating, because there’s no feedback at all for a problem, no error messages, logs not showing anything unusual, no way to figure out what’s going on.

    So I put my programmer hat on, wrote some test PHP code and did some digging. Apparently there’s a bug in Windows 7 that causes MySQL connection requests to time out when using “localhost” as a host name. (details here — also affects Vista.)

    So here’s how I finally got the install to work:

    • Edit the file C:\Windows\System32\drivers\etc\hosts. Note: You will need to run your editor with admin privileges.
    • Select a new host name (e.g. “myserver”) and add a new line to your hosts file:
      127.0.0.1 myserver
    • In your wp-config.php file (or when prompted running install.php with the sample config) use “myserver” as your host name.
    • After installing, access your blog using http://myserver/

    There’s another benefit to using a custom server name in the hosts file: if you, like me, want to work on multiple websites locally, you can use Apache’s named virtual host capability by adding a new name to the Windows hosts file and using the VirtualHost directive in the Apache httpd.conf file. Now you can have a second test blog on your local machine (e.g. http://angrycustomer/). Repeat as necessary.

    To anyone reading this: Please reply if this fixes your problem. I’d like to know my effort helped someone else out there. WordPress is too good to let isolated problems like this stop you from using it.

    Hello Everyone,

    I am having exactly the same issue as the OP.

    I have tried every fix, including the one above by bohica61.

    I have installed the latest WAMP onto Winows 7, Apache is running, MYSQL is fine, allowing database creation, and phpmyadmin works perfectly. However I still get the blank page after hitting install for WordPress.

    This is beginning to really annoy me, been attempting to fix this all day nearly. I just can not fathom why it will not work.

    Hello – i too have been having this very problem. Sadly I do not yet have a fix for it either. It worked fine in XP, just wont work in Windows 7.

    > Based on that, it would seem the advice from design_dolphin and
    > ClaytonJames to approach another forum specializing in Apache, Mysql
    > and PHP, is appropriate.

    These are all installed and working together perfectly well, the same Apache instance I want wordpress on is serving a PHP application that is using a MySQL database (on server “localhost” btw). Nothing to do with the installation of these three things I suspect the other posters are the same. The WP user is set up and has all privileges – i can’t work this one out either…

    Ah…

    yes – checking my PHP application that was working I notice the database connection code uses 127.0.0.1 instead of localhost.

    So bohica61 was pretty much right it seems with :
    >Apparently there’s a bug in Windows 7 that causes MySQL connection >requests to time out when using “localhost” as a host name. (details >here — also affects Vista.)

    My fix was to change “localhost” to “127.0.0.1” when asked for the database host in wp-config. What a pain in the ass ! Let me know if this fixed it for you as well.

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘I lost my hope :( Getting apache, MySQL, PHP working on Windows 7’ is closed to new replies.