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




49 posts

Geek


Topic # 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
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
6314 posts

Uber Geek
+1 received by user: 380

Moderator
Trusted
Lifetime subscriber

  Reply # 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



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Exhibition to showcase digital artwork from across the globe
Posted 23-May-2018 16:44


Auckland tops list of most vulnerable cities in a zombie apocalypse
Posted 23-May-2018 12:52


ASB first bank in New Zealand to step out with Garmin Pay
Posted 23-May-2018 00:10


Umbrellar becomes Microsoft Cloud Solution Provider
Posted 22-May-2018 15:43


Three New Zealand projects shortlisted in IDC Asia Pacific Smart Cities Awards
Posted 22-May-2018 15:14


UpStarters - the New Zealand tech and innovation story
Posted 21-May-2018 09:55


Lightbox updates platform with new streaming options
Posted 17-May-2018 13:09


Norton Core router launches with high-performance, IoT security in New Zealand
Posted 16-May-2018 02:00


D-Link ANZ launches new 4G LTE Dual SIM M2M VPN Router
Posted 15-May-2018 19:30


New Panasonic LUMIX FT7 ideal for outdoor: waterproof, dustproof
Posted 15-May-2018 19:17


Ryanair Goes All-In on AWS
Posted 15-May-2018 19:14


Te Papa and EQC Minecraft Mod shakes up earthquake education
Posted 15-May-2018 19:12


Framing Facebook: It’s not about technology
Posted 14-May-2018 16:02


Vocus works with NZ Police and telcos to stop scam calls
Posted 12-May-2018 11:12


Vista Group signs Aeon Entertainment, largest cinema chain in Japan
Posted 11-May-2018 21:41



Geekzone Live »

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



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.