Apache does not work

Discussion in 'Installation/Configuration' started by antonini, Jan 6, 2010.

  1. antonini

    antonini New Member

    I installed ISPConfig 2.2.35 and the Apache does not work. Does not give any mistake message, but to do not acess the sites using the domain name. It only works using IP of the server and falls on the page ISPConfig's Standard (Shared IP). When I type the domain (former. Meusite.com.br) gives a message of "Restarted connection" "The connection for the server was restarted during the page shipment".
    Does it anybody have some ideia that it can be wrong or of some nonsense that can I have committed?
    I installed in a Debian Lenny 5 without graphic environment, following all the tutorial steps of HowToForge.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the output of:

    httpd -t
     
  3. antonini

    antonini New Member

    Apache don't work

    caduceu:~# httpd -t
    httpd: bad user name ${APACHE_RUN_USER}
    caduceu:~#
     
  4. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    . /etc/apache2/envvars && httpd -t
    ?
     
  5. antonini

    antonini New Member

    Apache don't work

    caduceu:~# . /etc/apache2/envvars && httpd -t
    Syntax OK
    caduceu:~#
     
  6. antonini

    antonini New Member

    Apache don't work

    I discovered who the Apache only answers by the domain that was registered in ISPConfig's Installation, but does not answer by the virtual domains maids in the administration interface
     
  7. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    ifconfig
    , and what's in Vhosts_ispconfig.conf?
     
  8. antonini

    antonini New Member

    Not all the apache does not work, but the ServerAlias. When I type www.mydomain.com, apache works and open the homepage of the site, but only when I type mydomain.com, it gives the message connection refused. I checked in and Vhosts_ispconfig.conf for ServerAlias mydomain.com is configured, but does not work. Any ideas?
     
  9. falko

    falko Super Moderator ISPConfig Developer

    Can you post the info that I requested in my previous post?
     
  10. antonini

    antonini New Member

    ifconfig e Vhosts_ispconfig

    Dear Falko:
    Sorry the delay in answer, but did not have time in the last days. It follows ifconfig and Vhosts_ispconfig.conf how you asked.
    Thanks
    Vladimir Antonini
    Federal university of Paraná

    caduceu:~# ifconfig
    eth0 Link encap:Ethernet Endereço de HW 00:14:85:9d:45:e0
    inet end.: 10.1.1.2 Bcast:10.1.1.255 Masc:255.255.255.0
    endereço inet6: fe80::214:85ff:fe9d:45e0/64 Escopo:Link
    UP BROADCASTRUNNING MULTICAST MTU:1500 Métrica:1
    RX packets:15743 errors:0 dropped:0 overruns:0 frame:0
    TX packets:12685 errors:0 dropped:0 overruns:0 carrier:0
    colisões:0 txqueuelen:1000
    RX bytes:16525673 (15.7 MiB) TX bytes:4071886 (3.8 MiB)
    IRQ:11 Endereço de E/S:0xd800

    lo Link encap:Loopback Local
    inet end.: 127.0.0.1 Masc:255.0.0.0
    endereço inet6: ::1/128 Escopo:Máquina
    UP LOOPBACKRUNNING MTU:16436 Métrica:1
    RX packets:14820 errors:0 dropped:0 overruns:0 frame:0
    TX packets:14820 errors:0 dropped:0 overruns:0 carrier:0
    colisões:0 txqueuelen:0
    RX bytes:9306924 (8.8 MiB) TX bytes:9306924 (8.8 MiB)




    php_admin_flag safe_mode Off
    <IfModule mod_ruby.c>
    <Directory /var/www/web1/web>
    Options +ExecCGI
    </Directory>
    RubyRequire apache/ruby-run
    #RubySafeLevel 0
    <Files *.rb>
    SetHandler ruby-object
    RubyHandler Apache::RubyRun.instance
    </Files>
    <Files *.rbx>
    SetHandler ruby-object
    RubyHandler Apache::RubyRun.instance
    </Files>
    </IfModule>
    <IfModule mod_python.c>
    <Directory /var/www/web1/web>
    #Options +Indexes +FollowSymLinks +MultiViews
    #AllowOverride Indexes AuthConfig Limit FileInfo
    #Order allow,deny
    #allow from all
    AddHandler mod_python .py
    PythonHandler mod_python.publisher
    PythonDebug On
    </Directory>
    </IfModule>
    AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
    AddType text/vnd.wap.wml .wml
    AddType text/vnd.wap.wmlscript .ws .wmlscript
    AddType image/vnd.wap.wbmp .wbmp
    Alias /stats "/var/www/web1/web/webalizer"
    Alias /error/ "/var/www/web1/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    </IfModule>
    </VirtualHost>
    #
    #
    #
     
  11. antonini

    antonini New Member

    Apache does not work with domain registered in the server

    Other thing that I discovered: The domain registered in the server installation is what the Apache does not work. If register other domain, proceeds thence working.
     
  12. falko

    falko Super Moderator ISPConfig Developer

    Please post the full Vhosts_ispconfig.conf. This is only part of it.
     
  13. antonini

    antonini New Member

    Vhosts_ispconfig.conf

    ###################################
    #
    # ISPConfig vHost Configuration File
    # Version 1.0
    #
    ###################################
    #
    NameVirtualHost 10.1.1.2:80
    <VirtualHost 10.1.1.2:80>
    ServerName localhost
    ServerAdmin [email protected]
    DocumentRoot /var/www/sharedip
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    </IfModule>
    </VirtualHost>
    #
    #
    ######################################
    # Vhost: www.antonini.psc.br:80
    ######################################
    #
    #
    <VirtualHost 10.1.1.2:80>
    ServerName www.antonini.psc.br:80
    ServerAdmin [email protected]
    DocumentRoot /var/www/web1/web
    ServerAlias antonini.psc.br
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    Alias /cgi-bin/ /var/www/web1/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    ErrorLog /var/www/web1/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    php_admin_flag safe_mode Off
    <IfModule mod_ruby.c>
    <Directory /var/www/web1/web>
    Options +ExecCGI
    </Directory>
    RubyRequire apache/ruby-run
    #RubySafeLevel 0
    <Files *.rb>
    SetHandler ruby-object
    RubyHandler Apache::RubyRun.instance
    </Files>
    <Files *.rbx>
    SetHandler ruby-object
    RubyHandler Apache::RubyRun.instance
    </Files>
    </IfModule>
    <IfModule mod_python.c>
    <Directory /var/www/web1/web>
    #Options +Indexes +FollowSymLinks +MultiViews
    #AllowOverride Indexes AuthConfig Limit FileInfo
    #Order allow,deny
    #allow from all
    AddHandler mod_python .py
    PythonHandler mod_python.publisher
    PythonDebug On
    </Directory>
    </IfModule>
    AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
    AddType text/vnd.wap.wml .wml
    AddType text/vnd.wap.wmlscript .ws .wmlscript
    AddType image/vnd.wap.wbmp .wbmp
    Alias /stats "/var/www/web1/web/webalizer"
    Alias /error/ "/var/www/web1/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    </IfModule>
    </VirtualHost>
    #
    #
    #
    ######################################
    # Vhost: www.heinzpechner.org:80
    ######################################
    #
    #
    <VirtualHost 10.1.1.2:80>
    ServerName www.heinzpechner.org:80
    ServerAdmin [email protected]
    DocumentRoot /var/www/web3/web
    ServerAlias heinzpechner.org
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    Alias /cgi-bin/ /var/www/web3/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    ErrorLog /var/www/web3/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    php_admin_flag safe_mode Off
    <IfModule mod_ruby.c>
    <Directory /var/www/web3/web>
    Options +ExecCGI
    </Directory>
    RubyRequire apache/ruby-run
    #RubySafeLevel 0
    <Files *.rb>
    SetHandler ruby-object
    RubyHandler Apache::RubyRun.instance
    </Files>
    <Files *.rbx>
    SetHandler ruby-object
    RubyHandler Apache::RubyRun.instance
    </Files>
    </IfModule>
    <IfModule mod_python.c>
    <Directory /var/www/web3/web>
    #Options +Indexes +FollowSymLinks +MultiViews
    #AllowOverride Indexes AuthConfig Limit FileInfo
    #Order allow,deny
    #allow from all
    AddHandler mod_python .py
    PythonHandler mod_python.publisher
    PythonDebug On
    </Directory>
    </IfModule>
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
    AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
    AddType text/vnd.wap.wml .wml
    AddType text/vnd.wap.wmlscript .ws .wmlscript
    AddType image/vnd.wap.wbmp .wbmp
    Alias /stats "/var/www/web3/web/webalizer"
    Alias /error/ "/var/www/web3/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /var/www/web3/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web3/user/$1/web/$3
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    </IfModule>
    </VirtualHost>
    #
    #
    #
     
  14. falko

    falko Super Moderator ISPConfig Developer

    The second vhost is working for me, but I get a timeout for www.antonini.psc.br. Please make sure that the DNS record points to the correct server. You can check that with
    Code:
    dig www.antonini.psc.br
     
  15. antonini

    antonini New Member

    comand dig

    caduceu:~# dig www.antonini.psc.br

    ; <<>> DiG 9.5.1-P3 <<>> www.antonini.psc.br
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62903
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;www.antonini.psc.br. IN A

    ;; ANSWER SECTION:
    www.antonini.psc.br. 86400 IN A 10.1.1.2

    ;; Query time: 25 msec
    ;; SERVER: 10.1.1.1#53(10.1.1.1)
    ;; WHEN: Sun Jan 24 00:53:27 2010
    ;; MSG SIZE rcvd: 53

    caduceu:~#
     
  16. falko

    falko Super Moderator ISPConfig Developer

    10.1.1.2 is a private IP address. The DNS record must point to a public IP address.
     
  17. antonini

    antonini New Member

    What file that should I move?

    Relamente, but where do I repair this line? In which configuration file, because already I opened both pri.domanin.com and are both identical.
    Thanks by the help.
     
  18. falko

    falko Super Moderator ISPConfig Developer

    Code:
    mh1:~# dig ns antonini.psc.br
    
    ; <<>> DiG 9.3.4 <<>> ns antonini.psc.br
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32363
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;antonini.psc.br.               IN      NS
    
    ;; ANSWER SECTION:
    [B]antonini.psc.br.        86400   IN      NS      ns5.no-ip.com.
    antonini.psc.br.        86400   IN      NS      ns2.no-ip.com.
    antonini.psc.br.        86400   IN      NS      ns1.no-ip.com.
    antonini.psc.br.        86400   IN      NS      ns4.no-ip.com.
    antonini.psc.br.        86400   IN      NS      ns3.no-ip.com.[/B]
    
    ;; Query time: 295 msec
    ;; SERVER: 213.133.98.98#53(213.133.98.98)
    ;; WHEN: Tue Jan 26 15:09:21 2010
    ;; MSG SIZE  rcvd: 132
    
    mh1:~#
    You must change this on the no-ip.com nameservers.
     

Share This Page