locked
Installing wordppress - issue with IIS RRS feed

  • Question

  • Install php by using the below information and copy wp to c:/inetpub/blog and created a virtual directory in IIS call blog.  Also use the mysql command to create a database call blog, without ant issues.

     

    When I open localhost/blog or localhost/blog/wp-admin/install.php it come back with

     

    The page cannot be found

    The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.


    Please try the following:

    ·         Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.

    ·         If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted.

    ·         Click the Back button to try another link.

    HTTP Error 404 - File or directory not found.
    Internet Information Services (IIS)

     

     

    Same message is I try to open localhost/phpinfo.php which contain <?php phpinfo()?>

     

    Anybody got ideas what causing this.  I can open my website, which is under the public directory without any problems

     

    Install PHP

    1.      Extract the files from the PHP zip and place the files in "C:\php". Extract the PECL modules to "C:\php\ext".

    2.      Rename C:\php\php.ini-recommended to "C:\php\php.ini".

    3.      Open the php.ini file you have now and uncomment cgi.force_redirect in php.ini and set it to 0

    4.      Find and change 'upload_tmp_dir = ' and set it to 'upload_tmp_dir = "C:\php\upload" ' and make the directory

    5.      Find and change 'session.save_path' to 'session.save_path= "C:\php\sessions" ' and make the directory

    6.      Set the line 'extension_dir' as 'extension_dir = "C:\PHP\ext" '.

    7.      Find the line that says ';error_log = filename' and change it to look like this: 'error_log = "C:\php\errors.log" '

    8.      This part isn't necessary but may make it easier to diagnios errors that may occur. If you feel absolutely confident about what you are doing, skip this step. Else absolutely do this part!

    9.      Uncomment all the extensions that you will need. Recommended Extensions

    10.  Go to "C:\PHP" and right click on it, then select on "Properties". Go to the Security Tab, and click on the "Advanced Button". Click "Add..." and add the user "IUSR_MACHINENAME" where "MACHINENAME is your server's name. Give it Full control, and click Okay. Now enable "Replace permission entries on all child objects with entries shown here that apply to child objects", and click okay.

    11.  Note: The machine name is the name of the server originally. This may be SERVER, or in the case of the MediaSmart Server will be HPSERVER, making the account "IUSR_SERVER" or "IUSR_HPSERVER". If it is not one of these two look for any account starting with "IUSR_" as this will be the correct account.

    12.  Note: This will reset permissions on the files, and will revert back to being unchecked when it is done.

    13.  Go to Control panel > System Properties > Advanced Tab > Click "Environment Variables".

    14.  Select Path and press Edit. Now add "C:\PHP;" to it, preferably to the beginning

    15.  Now run "regedit.exe" or Start Registry Editor (same program)

    16.  Add HKEY_LOCAL_MACHINE\SOFTWARE\PHP to the registry, and under that add the string "IniFilePath" and set it to"C:\php"

    17.  Open Internet Services Manager which is in your Administrative Tools.

    18.  Right Click on Web Service Extensions located on the left hand side and choose Add a new web service extension. Enter in php and click add. Browse to C:\php\php5isapi.dll. Also set extension status to allow. Click "Okay".

    19.  Right Click on websites and choose properties. Go to the Documents tab and add index.php as a start document. Go to the Home Directory Tab and click on Configuration. Now go to the mappings tab and click on add. Enter .php for the extension and enter "C:\php\php5isapi.dll" in the executable textbox. Make sure all verbs is checked and click ok, click ok, click ok. You are done installing it. Now you need to test it.

    20.  It may prompt you about applying changes to home, remote, and UPnP DO NOT apply changes to "Remote", "Home", or "upnp" directories.

    21.  If you come up with any errors on one of those three directories, right click on the one that isn't working, choose properties. Got to the Home Directory tab and make sure

    Recommended Extensions

    22.  Uncomment all of the following items:

      1. extension=php_mysql.dll
      2. extension=php_mysqli.dll
      3. extension=php_gd2.dll
      4. extension=php_gettext.dll
      5. extension=php_mbstring.dll
      6. extension=php_sockets.dll
      7. extension=php_xmlrpc.dll
      8. extension=php_zip.dll

     

     

    MYSQL

    mysql> create database wordpress;

    Query OK, 1 row affected (0.01 sec)

    mysql> use wordpress;

    Database changed

    mysql> GRANT ALL PRIVILEGES ON wordpress.* to wpadmin@localhost IDENTIFIED BY 'wppassword';

    Query OK, 0 rows affected (0.01 sec)

     

     

    Tuesday, September 23, 2008 10:37 AM

All replies

  •  I will try and refrain myself from commenting about PHP and mysql on any windows server but I do think one is better of running those on a *NIX box (linux/unix) – perhaps consider installing Virtual PC 2007 on the WHS or even Virtual Server 2005 R2 and then run something like UBUNTU virtually on WHS; Ubuntu has LAMP (linux apache mysql and php) – anyways here is a guide:  http://www.wegotserved.co.uk/2008/03/04/installing-php-for-iis-on-windows-home-server/

    also try doing an IISRESET (cmd shell type iisreset)
     
    Saturday, September 27, 2008 2:27 AM
    Moderator