Apache van slag na nieuw IP

Pagina: 1
Acties:

  • paradoXical
  • Registratie: Oktober 2000
  • Laatst online: 30-03 13:29
Vanmorgen kon ik mijn DKP voor WOW (world of warcraft) niet checken omdat ik zeg dat mijn server off stond. Mijn broer was echter online, dus even zijn IP nagegaan en jawel, @home heeft mijn IP veranderd.

Dus even de conf files checken:

Server version: Apache-AdvancedExtranetServer/2.0.53
Server built: Mar 30 2005 12:41:28
Server's Module Magic Number: 20020903:9
Architecture: 32-bit
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_FCNTL_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D HTTPD_ROOT="/etc/httpd/2.0"
-D SUEXEC_BIN="/usr/sbin/apache2-suexec"
-D DEFAULT_PIDLOG="/var/run/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="/var/run/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd2.conf"


Maar in de conf files kan ik nergens terugvinden waar ik mijn servername kan invoeren. Als ik phpinfo bekijk staat er:

Hostname:Port 84.30.249.123:0

Mijn html pagina's laden zonder probleem, mijn php files echter half en enorm traag.

mijn httpd2.conf uit /etc/httpd/2.0/conf/httpd2.conf

[root@CP245623-A conf]# vi httpd2.conf
###
### Global Configuration
###
# We now support multiple apache configurations on the same server. In
# common.conf, we put all directives that are common to all implementations
# (httpd, httpd-perl, etc.)
# For Apache2 we load all conf files in conf.d
Include /etc/httpd/conf.d/*.conf
Include conf/commonhttpd.conf
Include conf/fileprotector.conf

###
### IP Address/Port and Proxied configuration section
###
# The APACHEPROXIED setting can be set in /etc/rc.d/init.d/httpd if you
# are using a proxy or accelerator, like the Apache-SGI or khttpd, so that
# the fast web server serves static content while Apache handles the
# cgi or php files

#BindAddress *
<IfDefine APACHEPROXIED>
Listen 8080
</IfDefine>
<IfDefine !APACHEPROXIED>
Listen 80
</IfDefine>

# Likewise, we can set apache as the server by default and send perl
# requests via ProxyPass to apache-mod_perl. It increases performance
# since the perl interpreter is only used for perl and the standard apache
# does all the html and image files, with a smaller footprint.
#
# If you install apache and apache-mod_perl, this is the default config.
# If you don't want two web servers to use perl, uninstall apache, and
# apache-mod_perl will not be proxied.

<IfDefine PERLPROXIED>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^proxy:.* - [F]
RewriteRule ^(.*\/perl\/.*)$ http://%{HTTP_HOST}:8200$1 [P]
RewriteRule ^(.*\/cgi-perl\/.*)$ http://%{HTTP_HOST}:8200$1 [P]
</IfModule>


Ik heb echt alle configuration files bekeken maar kan nergens mijn servername instellen, dan nog dit:

httpd2 -d stop
httpd2: could not open document config file stop/conf/httpd2.conf


Heeft iemand een idee wat er aan de hand kan zijn?

She was beautiful. God I loved her. I just didn't know how to show it, that's all. I killed her, Red. I didn't pull the trigger, but I pushed her away. And that's why she died, because of me.


Verwijderd

Move PNS > SA

  • job
  • Registratie: Februari 2002
  • Laatst online: 12-04 13:34

job

Als het goed is staat je servernaam in section 2 bijna bovenaan.

[ Voor 168% gewijzigd door job op 25-01-2006 14:02 ]


  • paradoXical
  • Registratie: Oktober 2000
  • Laatst online: 30-03 13:29
job schreef op woensdag 25 januari 2006 @ 13:53:
Als het goed is staat je servernaam in section 2 bijna bovenaan.
Ja normaal wel ja, en dat stond hij ook. Ik kan het alleen in geen enkele van de conf files terugvinden. Nu staat servname / poort gewoon niet goed. Kan ik die er met de hand gewoon bij zetten, in /etc/httpd/2.0/conf/httdp2.conf ?

Dan nog, ik kan apache niet meer restarten wat erg vervelend is, iemand een idee?

She was beautiful. God I loved her. I just didn't know how to show it, that's all. I killed her, Red. I didn't pull the trigger, but I pushed her away. And that's why she died, because of me.


  • job
  • Registratie: Februari 2002
  • Laatst online: 12-04 13:34

job

Als hij niet meer in de config file staat, dan pak je toch de backup conf?
Maar het lijkt me sterk dat het niet meer in je conf staat. Gewoon rustig kijken, ik kijk ook wel ergens overheen in die config files, veels te onoverzichtelijk.

ohja, en apache stop je op de volgende wijze: /etc/init.d/apache2 stop

[ Voor 36% gewijzigd door job op 25-01-2006 14:04 ]


  • cavey
  • Registratie: Augustus 2000
  • Laatst online: 17-02 19:31
kijk ook eens naar apache2ctl (of was het apachectl2? hrmz). En dan met name de configtest.

Check ook je error.log van apache, om te achterhalen waarom je apache niet meer wilt opstarten (de basics dus).

En waar je je servernaam in moet stellen: Eh, bij mijn /etc/apache2/apache2.conf staat het echt helemaal bovenaan.

ServerRoot "/pad waar je config files enzo staan... kan best /etc/apach2 zijn zoals bij mij"
ServerName <insert your name here>

Of mis ik nu iets?

  • paradoXical
  • Registratie: Oktober 2000
  • Laatst online: 30-03 13:29
Ik ga er vanavond goed naar kijken.. Nu op mijn werk en ik zie al dat ik dit niet 123 kan oplossen. Servername is echt nergens te vinden, ik heb alle config files met telnet bekeken (vi) en hij staat er gewoon niet tussen.

Include /etc/httpd/conf.d/*.conf
Include conf/commonhttpd.conf
Include conf/fileprotector.conf

Dus alle conf files in bovenstaande dirs.

She was beautiful. God I loved her. I just didn't know how to show it, that's all. I killed her, Red. I didn't pull the trigger, but I pushed her away. And that's why she died, because of me.


  • paradoXical
  • Registratie: Oktober 2000
  • Laatst online: 30-03 13:29
job schreef op woensdag 25 januari 2006 @ 14:03:
Als hij niet meer in de config file staat, dan pak je toch de backup conf?
Maar het lijkt me sterk dat het niet meer in je conf staat. Gewoon rustig kijken, ik kijk ook wel ergens overheen in die config files, veels te onoverzichtelijk.

ohja, en apache stop je op de volgende wijze: /etc/init.d/apache2 stop
/etc/init.d/httpd2 stop werkt niet hier
/etc/init.d/httpd2 -k stop wel

Ik begrijp die conf files gewoon niet goed, waarom roept hij er zoveel aan? Mijn vorige apache installatie omvatte 1 enkele conf file. Ik heb zojuist alle conf bestanden nagelopen en nergens staat de Servername opgegeven.

Mijn webserver werkt verder weer prima overigens, ik kan alles wat ik eerst ook kon maar de configuratie klopt gewoon niet helemaal. Ik ga de apache help nog eens doorlezen, het is ook weer zo lang geleden :)

She was beautiful. God I loved her. I just didn't know how to show it, that's all. I killed her, Red. I didn't pull the trigger, but I pushed her away. And that's why she died, because of me.


  • Pwigle
  • Registratie: December 2000
  • Laatst online: 31-03 16:10
probeer in je apache config directory:
grep -R ServerName *
Misschien heb je het in een virtualhost config bestand aangegeven?

  • Rob
  • Registratie: Februari 2000
  • Niet online

Rob

En als het niet te vinden is in 1 van de config files, dan kan je het er ook zelf inzetten

In the beginning the Internet was a bunch of smart users with dumb terminals. Now...


  • paradoXical
  • Registratie: Oktober 2000
  • Laatst online: 30-03 13:29
DaPoztMaster schreef op woensdag 25 januari 2006 @ 18:15:
probeer in je apache config directory:

[...]


Misschien heb je het in een virtualhost config bestand aangegeven?
[root@CP245623-A conf]# grep -R ServerName *
commonhttpd.conf:# to the server the response is coming from) it will use ServerName and
httpd2-perl.conf:#ServerName 84.30.249.123
vhosts/Vhosts.conf:# create a /var/log/httpd/VLOG-YYYY-MM-<ServerName>.log instead of logging
vhosts/Vhosts.conf:#ServerName test2.com
vhosts/Vhosts.conf:#ServerName www.domain.tld
vhosts/Vhosts.conf:# ServerName domain.com

httpd2-perl.conf:# Daar heb ik zelf servername in opgegeven nu, gewoon mijn IP adres.

[ Voor 16% gewijzigd door paradoXical op 26-01-2006 11:23 ]

She was beautiful. God I loved her. I just didn't know how to show it, that's all. I killed her, Red. I didn't pull the trigger, but I pushed her away. And that's why she died, because of me.

Pagina: 1