Apache

Malikman

[H]ard|Gawd
Joined
Sep 1, 2004
Messages
1,045
Hello,
I was trying to setup apache on os x earlier but i wasn't able to. I'm now trying again. I know on mac you should just be able to click allow personal web sharing. But now when i do that instead of showing the welcome screen or the index.html in the sites folder it says "Firefox can't establish a connection to the server at 192.168.2.101." I was wondering maybe did i delete soething important for apache and how would i reinstall it, manually i guess?
 
are you accessing this locally? (IE a web browser on the machine that apache is running on?)

Or across your LAN?

Check the OS X firewall to make sure it's allowing access to the http port (80) (I think in the firewall its called Web Sharing)
 
Hello,
I was trying to setup apache on os x earlier but i wasn't able to. I'm now trying again. I know on mac you should just be able to click allow personal web sharing. But now when i do that instead of showing the welcome screen or the index.html in the sites folder it says "Firefox can't establish a connection to the server at 192.168.2.101." I was wondering maybe did i delete soething important for apache and how would i reinstall it, manually i guess?

Have you configured apache and the httpd conf files?
 
i don't think i have configured the apache and httpd files i left htem standard and they were working locally. And i'm trying this locally.
 
what about typing in 127.0.0.1? clean install of apache no config done and 127.0.0.1 directs me to the apache test page and says installation successful
 
but, for apple apache is already there, so how do i do a clean install of apache on mac?
 
first login as root makes life simple
su
enter root password
nano /etc/apache2/httpd.conf
change the following:
Listen yourip:6882 (uncomment by removing #)
ServerName yourip:6882

save

once finished you can restart apache by typing
apachectl restart

and you should be able to test, its best to check from another IP. by default the above should be
#Listen 12.34.56.78:80
#ServerName mydomain.com:80

try that
 
i changed that in apache and all and it did not seem to work.

i just had someone ping my ip address too... so it should work if it's set up right i believe right?
 
i actualy realizedi changed the port so i ahve to put in :6882 to get it to go to my page... and i got it to work like this...

http://localhost:6882/~kamron/

but when i put in http://71.242.133.145:6882/~kamron/ it doesnt work... does that have to do with my router being set up wrong?
yes, that would mean your router is not forwarding port 6882 to you OS X box. You also likely won;t be able to hit your external IP from inside your network. (this depends on your router)
 
well in my router under port forwarding i havve port 80 opened and in virtual server i have private port 6882 and public port 80 set up... not sure if this is the right way or anything i was just trying but it doesn'rt seem to work.
 
here is a port scan of the IP above 71.242.133.145 from my BSD box

network# nmap -T4 71.242.133.145

Starting Nmap 4.62 ( http://nmap.org ) at 2008-08-11 23:09 EDT
Interesting ports on pool-71-242-133-145.phlapa.east.verizon.net (71.242.133.145):
Not shown: 1701 closed ports
PORT STATE SERVICE
53/tcp filtered domain
80/tcp filtered http
135/tcp filtered msrpc
137/tcp filtered netbios-ns
138/tcp filtered netbios-dgm
139/tcp filtered netbios-ssn
445/tcp filtered microsoft-ds
515/tcp filtered printer
631/tcp filtered ipp
9100/tcp filtered jetdirect
9101/tcp filtered jetdirect
9102/tcp filtered jetdirect
9111/tcp filtered DragonIDSConsole
9152/tcp filtered ms-sql2000

Nmap done: 1 IP address (1 host up) scanned in 78.188 seconds


Your indicated port of 6682 is not open.
 
network# nmap -T4 71.242.133.145

Starting Nmap 4.62 ( http://nmap.org ) at 2008-08-12 01:11 EDT
All 1715 scanned ports on pool-71-242-133-145.phlapa.east.verizon.net (71.242.133.145) are filtered

Nmap done: 1 IP address (1 host up) scanned in 9.772 seconds

I got nothing, what type of router do you have?
 
intellinet it's a weird brand but it seems to work fine... and i had it working before i believe with this router just wheni moved it something hapepned maybe i reset it by accident now i can't get it back to normal.
 
have you tried setting the port back to 80 just to see if it an issue with the port number? i would just setup a BSD or linux box either one lol
 
lol i'll try settiung the port bafck to 80, but i'm pretty sure that isn't the problem.
 
Back
Top