Geekzone: technology news, blogs, forums
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.

49 posts


#26477 23-Sep-2008 22:34
Send private message

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

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:
a. extension=php_mysql.dll
b. extension=php_mysqli.dll
c. extension=php_gd2.dll
d. extension=php_gettext.dll
e. extension=php_mbstring.dll
f. extension=php_sockets.dll
g. extension=php_xmlrpc.dll
h. extension=php_zip.dll

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)

Create new topic
6389 posts

Uber Geek

Lifetime subscriber

  #166896 24-Sep-2008 21:09
Send private message

Remove the Virtual Directory, you should be able to browse to http://localhost/blog if localhost is setup correctly.

From your description something is very wrong, even with php not working, you should still get a file listing, or if directory browsing is turned off, a "cannot view this directory" error.

Create new topic

News »

Freeview On Demand app launches on Sony Android TVs
Posted 6-Aug-2020 13:35

UFB hits more than one million connections
Posted 6-Aug-2020 09:42

D-Link A/NZ extends COVR Wi-Fi EasyMesh System series with new three-pack
Posted 4-Aug-2020 15:01

New Zealand software Rfider tracks coffee from Colombia all the way to New Zealand businesses
Posted 3-Aug-2020 10:35

Logitech G launches Pro X Wireless gaming headset
Posted 3-Aug-2020 10:21

Sony Alpha 7S III provides supreme imaging performance
Posted 3-Aug-2020 10:11

Sony introduces first CFexpress Type A memory card
Posted 3-Aug-2020 10:05

Marsello acquires Goody consolidating online and in-store marketing position
Posted 30-Jul-2020 16:26

Fonterra first major customer for Microsoft's New Zealand datacentre
Posted 30-Jul-2020 08:07

Everything we learnt at the IBM Cloud Forum 2020
Posted 29-Jul-2020 14:45

Dropbox launches native HelloSign workflow and data residency in Australia
Posted 29-Jul-2020 12:48

Spark launches 5G in Palmerston North
Posted 29-Jul-2020 09:50

Lenovo brings speed and smarter features to new 5G mobile gaming phone
Posted 28-Jul-2020 22:00

Withings raises $60 million to enable bridge between patients and healthcare
Posted 28-Jul-2020 21:51

QNAP integrates Catalyst Cloud Object Storage into Hybrid Backup solution
Posted 28-Jul-2020 21:40

Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.

Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron

Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.