fruzzgle Posted July 1, 2006 Share Posted July 1, 2006 I type localhost in the adress bar and get nothing. How do I get localhost? Quote Link to comment https://forums.phpfreaks.com/topic/13407-localhost/ Share on other sites More sharing options...
sanfly Posted July 1, 2006 Share Posted July 1, 2006 Assuming everything is set up correctlyhttp://localhost/ Quote Link to comment https://forums.phpfreaks.com/topic/13407-localhost/#findComment-51755 Share on other sites More sharing options...
fruzzgle Posted July 1, 2006 Author Share Posted July 1, 2006 Yah, http://localhost doesn't work either. What do I need to set up? Quote Link to comment https://forums.phpfreaks.com/topic/13407-localhost/#findComment-51758 Share on other sites More sharing options...
Guest PaulyboyUK Posted July 1, 2006 Share Posted July 1, 2006 What web server have you installed? Quote Link to comment https://forums.phpfreaks.com/topic/13407-localhost/#findComment-51759 Share on other sites More sharing options...
fruzzgle Posted July 1, 2006 Author Share Posted July 1, 2006 I downloaded apache but I can't install it. The install file doesn't know how to run itself (I think that's what it means when the file looks like this).[img]http://img206.imageshack.us/img206/3913/installerror2ik.png[/img] Quote Link to comment https://forums.phpfreaks.com/topic/13407-localhost/#findComment-51761 Share on other sites More sharing options...
Guest PaulyboyUK Posted July 1, 2006 Share Posted July 1, 2006 http://apache.rmplc.co.uk/httpd/binaries/win32/apache_2.2.2-win32-x86-no_ssl.msiTry DL this and run - It def worksLet me know how you get onPaul Quote Link to comment https://forums.phpfreaks.com/topic/13407-localhost/#findComment-51762 Share on other sites More sharing options...
Koobi Posted July 1, 2006 Share Posted July 1, 2006 windows judges file types by extensions and if it doesn't recognize the extension or if the extension is missing, it would display that icon (default).what you're seeing it probably the installation instruction file minus the extension. it's probably a few KB's big and you can probably view it in notepad. Quote Link to comment https://forums.phpfreaks.com/topic/13407-localhost/#findComment-51763 Share on other sites More sharing options...
fruzzgle Posted July 1, 2006 Author Share Posted July 1, 2006 Sure thing :Dbtw: is there a web hosting site I can test my php scripts for free? Or will I be able to do that already with localhots/whatever.php?Edit: After installing it, it didn't work. Do I have to be on IE or can I do it on firefox? Quote Link to comment https://forums.phpfreaks.com/topic/13407-localhost/#findComment-51765 Share on other sites More sharing options...
Koobi Posted July 1, 2006 Share Posted July 1, 2006 localhost should work...but you seem to be on a windows machine and hosts are generally on a *nix base. some things may vary in between a linux and windows based host depending on your coding practices.for example (this is the only one i can think of right now), if you're loading an extension, it's best to do this:[code=php:0]dl(myExtension.' . PHP_SHLIB_SUFFIX);[/code]but most people might do this:[code=php:0]//for windl(myExtension.dll');[/code]or this:[code=php:0]//for *nixdl(myExtension.so');[/code]but using PHP_SHLIB_SUFFIX, PHP will determine the extension's file extension dynamically.so just make sure you practice good coding methods and you should be fine if you test it locally on your win or remotely (it would be a *nix machine in most cases) Quote Link to comment https://forums.phpfreaks.com/topic/13407-localhost/#findComment-51767 Share on other sites More sharing options...
Koobi Posted July 1, 2006 Share Posted July 1, 2006 [quote author=fruzzgle link=topic=99130.msg390244#msg390244 date=1151787910]Edit: After installing it, it didn't work. Do I have to be on IE or can I do it on firefox?[/quote]i believe on win, you have to either start apache manually or add it as a service. did you try that? and are you positive you followed the installation instructions word for word?and just to let you know, I'll move this to the [url=http://www.phpfreaks.com/forums/index.php/board,2.0.html]Apache Server[/url] after your next post because this really doesn't belong in the PHP Help section :) Quote Link to comment https://forums.phpfreaks.com/topic/13407-localhost/#findComment-51769 Share on other sites More sharing options...
Guest PaulyboyUK Posted July 1, 2006 Share Posted July 1, 2006 Have you rebooted? - has the server started>?Sounds like it has not - just follow the apache faq and you should be good to goHeres a good link to a tut for complete set uphttp://www.developertutorials.com/tutorials/php/apache-php-mysql/page1.html Quote Link to comment https://forums.phpfreaks.com/topic/13407-localhost/#findComment-51770 Share on other sites More sharing options...
fruzzgle Posted July 1, 2006 Author Share Posted July 1, 2006 Ok, I'll restart. Durring the installation it asked for my site, I don't have one right now and am just learning the php so will it affect the installation or localhost if I didn't put anything in there.Edit:Ok I restarted and In my tasks bar I see the apache logo and when I click on it I get- apache 2.2 - start. When I try to start it, it says- "The requested Operation has Failed!". And my localhost still doesn't work. What do I do? Quote Link to comment https://forums.phpfreaks.com/topic/13407-localhost/#findComment-51774 Share on other sites More sharing options...
fruzzgle Posted July 1, 2006 Author Share Posted July 1, 2006 Screenshot[img]http://img287.imageshack.us/img287/1527/apacheerror6db.png[/img] Quote Link to comment https://forums.phpfreaks.com/topic/13407-localhost/#findComment-51778 Share on other sites More sharing options...
king arthur Posted July 1, 2006 Share Posted July 1, 2006 One of the books I've read warns that there are issues using Apache 2.2 with PHP and advises using 1.3 instead, maybe give that a try? Quote Link to comment https://forums.phpfreaks.com/topic/13407-localhost/#findComment-51785 Share on other sites More sharing options...
fruzzgle Posted July 1, 2006 Author Share Posted July 1, 2006 Oh that's ok. I found this program that a friend advised and it hooks up my apache and mysql for me. It's called EasyPHP. My localhost works great and everything works![img]http://img208.imageshack.us/img208/4883/easyphp9fz.png[/img]There is one thing though, when ever I turn this program off and try to view the localhost it isn't accessible. When ever it's on I can, so if I turn it off will databases from my site (when I make a site) be able to connect to mysql through localhost? This may be a problem for me. Does this happen with apache too? Quote Link to comment https://forums.phpfreaks.com/topic/13407-localhost/#findComment-51788 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.