Jump to content


Photo

localhost question


  • Please log in to reply
3 replies to this topic

#1 trevi

trevi

    Newbie

  • New Members
  • Pip
  • 3 posts

Posted 27 August 2013 - 09:00 AM

hi,

I installed wamp server last night and set up a folder under wamp/www folder.  I put a simple php file and html file in that directory.  When I try to get to that folder from localhost from wampserver, I either get a 404 or nothing.  what am I doing wrong?  Thank you for your help.



#2 Irate

Irate

    Advanced Member

  • Members
  • PipPipPip
  • 358 posts
  • LocationHamburg, Germany
  • Age:17

Posted 27 August 2013 - 09:18 AM

Your files should be located in the htdocs folder, otherwise localhost won't respond to them.
Quod placet mihi non placeat tibi. - What I think to be good must not always equal your perception of it.

I am not perfect. I try a lot with the code I provide and I don't guarantee for it to work as I have mostly no option to test it on my mobile phone. I do apologize for any inconvenience I caused, but if I do happen to have helped, liking my posts or marking them as to have solved or answered your question would be nice.

#3 trevi

trevi

    Newbie

  • New Members
  • Pip
  • 3 posts

Posted 28 August 2013 - 10:57 PM

Hi,
I created this folder, but I think my problem is that warp server never turned green. When I check the port 8, it says it is being used by IIS 7.5. I tried uninstalling it, but nothing works. Any ideas? Thanks

#4 Irate

Irate

    Advanced Member

  • Members
  • PipPipPip
  • 358 posts
  • LocationHamburg, Germany
  • Age:17

Posted 29 August 2013 - 01:25 AM

Check your httpd.conf or your apache.conf file, find the line named "Listen" and change it to "Listen 1234", where you can change 1234 to whatever port you want.

You must also then type in, if your line was 1234, "localhost:1234" or "127.0.0.1:1234" and then your file URL.


Quod placet mihi non placeat tibi. - What I think to be good must not always equal your perception of it.

I am not perfect. I try a lot with the code I provide and I don't guarantee for it to work as I have mostly no option to test it on my mobile phone. I do apologize for any inconvenience I caused, but if I do happen to have helped, liking my posts or marking them as to have solved or answered your question would be nice.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com