Toon posts:

Apache: connection refused

Pagina: 1
Acties:

Verwijderd

Topicstarter
Ik heb net Apache 1.3.26 geinstalleerd en geconfigureerd met php 4.2.2.
Alleen wanneer ik hem start en probeer te benaderen krijg ik connection refused. Iemand enig idee waar dit aan kan liggen? Als ik "apachctl status" doe krijg ik de volgende melding:

code:
1
2
3
4
5
6
7
8
9
10
root@Urridium:/# /usr/local/apache/bin/apachectl start
/usr/local/apache/bin/apachectl start: httpd started
root@Urridium:/# /usr/local/apache/bin/apachectl status

Looking up localhost
Making HTTP connection to localhost
Alert!: Unable to connect to remote host.

lynx: Can't access startfile http://localhost/server-status
root@Urridium:/#

  • Solarsparc
  • Registratie: Juli 2001
  • Laatst online: 03:05
Wat staat er in je apache error_log?

  • intoxicated
  • Registratie: Januari 2001
  • Niet online

intoxicated

Haaaai :w | ALT-S

Heb je verder zelf nog wat geconfigureerd? Staat je port in feite wel open? cq, Wat zegt nmap als je jezelf scanned?

Grappig, mijn server heet iridium, hoe kom je nou weer bij 'urridium'? :P

"Anyone who does not agree with me is mentally sick, and should be shot I'm afraid to say."
- Pastor Richards @ VCPR


Verwijderd

Topicstarter
Daar word je ook niet veel wijzer uit :/

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
[Sun Sep  1 21:04:34 2002] [notice] Apache/1.3.26 (Unix) configured -- resuming normal operations                                               
[Sun Sep  1 21:04:34 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)                                                                    
[Sun Sep  1 21:52:42 2002] [notice] caught SIGTERM, shutting down                                                                               
[Sun Sep  1 21:53:42 2002] [notice] Apache/1.3.26 (Unix) configured -- resuming normal operations                                               
[Sun Sep  1 21:53:42 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)                                                                    
[Sun Sep  1 22:25:52 2002] [notice] caught SIGTERM, shutting down                                                                               
[Sun Sep  1 22:26:51 2002] [notice] Apache/1.3.26 (Unix) configured -- resuming normal operations                                               
[Sun Sep  1 22:26:51 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)                                                                    
[Sun Sep  1 22:27:48 2002] [notice] caught SIGTERM, shutting down                                                                               
[Sun Sep  1 22:43:40 2002] [notice] Apache/1.3.26 (Unix) configured -- resuming normal operations                                               
[Sun Sep  1 22:43:40 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)                                                                    
[Sun Sep  1 23:27:08 2002] [error] [client 127.0.0.1] File does not exist: /var/www/htdocs/server-status                                        
[Sun Sep  1 23:52:27 2002] [notice] caught SIGTERM, shutting down

Verwijderd

Topicstarter
intoxicated schreef op 01 september 2002 @ 16:27:
Heb je verder zelf nog wat geconfigureerd? Staat je port in feite wel open? cq, Wat zegt nmap als je jezelf scanned?

Grappig, mijn server heet iridium, hoe kom je nou weer bij 'urridium'? :P
Poort staat open en nmap zegt het volgende:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
bash-2.05a$ nmap 192.168.0.100

Starting nmap V. 2.54BETA34 ( www.insecure.org/nmap/ )
Interesting ports on  (192.168.0.100):
(The 1551 ports scanned but not shown below are in state: closed)
Port       State       Service
111/tcp    open        sunrpc                  
113/tcp    open        auth                    
515/tcp    open        printer                 
915/tcp    open        unknown                 
8080/tcp   open        http-proxy              

Nmap run completed -- 1 IP address (1 host up) scanned in 2 seconds
bash-2.05a$


Betekend dus dat hij op poort 8080 zit, maar dat heb ik helemaal nergens ingesteld :?


Urridium is een oud spel op de msx :-) Dast heb ik tot vervelens toe gespeeld.

  • Solarsparc
  • Registratie: Juli 2001
  • Laatst online: 03:05
Hum aan de logs te zien wordt apache steeds weer uitgeschakeld?
En 8080 is wat anders, da's een proxy - draai je squid ofzo?

  • intoxicated
  • Registratie: Januari 2001
  • Niet online

intoxicated

Haaaai :w | ALT-S

8080 is een proxypoort, en da's niet de default instelling van Apache. Apache hoort namelijk op poort 80 te zitten. Maar dat kan je natuurlijk even checken door in je httpd.conf te kijken. Zoek daar even naar 'port'.

"Anyone who does not agree with me is mentally sick, and should be shot I'm afraid to say."
- Pastor Richards @ VCPR


  • Super_ik
  • Registratie: Maart 2001
  • Laatst online: 20-05 17:44

Super_ik

haklust!

en draai anders ff die config check

8<------------------------------------------------------------------------------------
Als ik zo door ga haal ik m'n dood niet. | ik hou van goeie muziek


Verwijderd

Topicstarter
Stond al op 80, had ik al nagekeken.

code:
1
2
3
4
5
#                                                                                                                                               
# Port: The port to which the standalone server listens. For                                                                                    
# ports < 1023, you will need httpd to be run as root initially.                                                                                
#                                                                                                                                               
Port 80

Verwijderd

Topicstarter
Super_ik schreef op 01 september 2002 @ 16:36:
en draai anders ff die config check
code:
1
2
3
root@Urridium:/etc/apache# /usr/local/apache/bin/apachectl configtest
Syntax OK
root@Urridium:/etc/apache#

Verwijderd

Topicstarter
Ik heb de fout al gevonden.
Hij laad /usr/local/apache/conf/httpd.conf in plaats van /etc/apache/httpd.conf
iemand enig idee hoe ik dit verander?

  • Solarsparc
  • Registratie: Juli 2001
  • Laatst online: 03:05
Volgens mij beslist apache dat tijdens ./configure - dan had je hem een prefix mee moeten geven. Je kunt ook ff een symlinkje maken van /etc/apache/httpd.conf naar /usr/local/apache/conf/httpd.conf (zorg er dan wel voor dat de dir /usr/local/apache/conf bestaat en maak daar de symlink).
Pagina: 1