HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=15)
-   -   ISPConfig httpd (http://www.howtoforge.com/forums/showthread.php?t=6010)

brightshadow 5th August 2006 02:02

ISPConfig httpd
 
Alright, I got everything working now, I can access my server, but when I go to view the services on ISPConfig, it shows httpd is offline. I check on the server and it's running and I've tried restarting ispconfig and the whole server, but still shows the same thing.

Also, I am getting the error that says that it's currently updating the feature or whatever when trying to restart httpd and other things on ISPConfig.

brightshadow 6th August 2006 07:56

Whew, I was messing around with the settings and almost killed my ISPConfig installation, it wouldn't even start anymore for a while, but set it back to normal but the problem still remains. I still can't get httpd to show up online and instead of ISPConfig handling the domain i have pointed to it, my fedora default page shows up.

falko 6th August 2006 14:14

Please make sure APache is listening als on 127.0.0.1 because that's the IP address that ISPConfig checks to see if APache is up. What's the output of
Code:

netstat -tap
?
What's in Vhosts_ispconfig.conf?

brightshadow 7th August 2006 07:59

netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:mysql *:* LISTEN 2538/mysqld
tcp 0 0 *:47279 *:* LISTEN 2181/rpc.statd
tcp 0 0 *:sunrpc *:* LISTEN 2162/portmap
tcp 0 0 75.27.81.221:http *:* LISTEN 2944/httpd
tcp 0 0 localhost:50000 *:* LISTEN 2405/hpiod
tcp 0 0 *:hosts2-ns *:* LISTEN 2922/ispconfig_http
tcp 0 0 localhost:50002 *:* LISTEN 2410/python
tcp 0 0 192.168.1.79:domain *:* LISTEN 3039/named
tcp 0 0 75.27.81.221:domain *:* LISTEN 3039/named
tcp 0 0 localhost:domain *:* LISTEN 3039/named
tcp 0 0 localhost:ipp *:* LISTEN 22794/cupsd
tcp 0 0 localhost:rndc *:* LISTEN 3039/named
tcp 0 0 *:smtp *:* LISTEN 3013/master
tcp 0 0 *:imaps *:* LISTEN 2561/dovecot
tcp 0 0 *:pop3s *:* LISTEN 2561/dovecot
tcp 0 0 *:pop3 *:* LISTEN 2561/dovecot
tcp 0 0 *:imap *:* LISTEN 2561/dovecot
tcp 0 0 *:ftp *:* LISTEN 3057/proftpd: (acce
tcp 0 0 *:ssh *:* LISTEN 2429/sshd
tcp 0 0 ::1:rndc *:* LISTEN 3039/named
tcp 0 0 *:https *:* LISTEN 2944/httpd
tcp 0 2780 ::ffff:75.27.81.221:ssh c-71-57-112-173.hs:datusorb ESTABLISHED 5833/1

Ok, the status was the 127.0.0.1 on apache. Got that working. But I am still getting the error that it's updating. I'll post that contents of the file tomorrow

falko 7th August 2006 14:00

Quote:

Originally Posted by brightshadow
But I am still getting the error that it's updating. I'll post that contents of the file tomorrow

Also post the output of
Code:

ls -la /root/ispconfig
These threads might be interesting for you: http://www.howtoforge.com/forums/sho...d_zonefile_dir
http://www.howtoforge.com/forums/sho...d_zonefile_dir

brightshadow 7th August 2006 15:34

Code:

ls -la /root/ispconfig
total 108
drwxr-xr-x  9 root root  4096 Aug  4 17:27 .
drwxr-x--- 18 root root  4096 Aug  7 07:22 ..
-rwxr-xr-x  1 root root 40157 Jul 21 12:02 cronolog
-rwxr-xr-x  1 root root  9673 Jul 21 12:02 cronosplit
drwxr-xr-x 12 root root  4096 Jul 21 11:25 httpd
drwxr-xr-x 12 root root  4096 Jul 21 12:02 isp
-rw-r--r--  1 root root    0 Aug  7 00:16 .ispconfig_lock
-rw-r--r--  1 root root    8 Aug  7 00:16 .old_path_httpd_root
drwxr-xr-x  6 root root  4096 Jul 21 11:21 openssl
drwxr-xr-x  6 root root  4096 Jul 21 11:30 php
drwxr-xr-x  4 root root  4096 Jul 21 12:02 scripts
drwxr-xr-x  4 root root  4096 Jul 21 12:02 standard_cgis
drwxr-xr-x  2 root root  4096 Jul 21 12:02 sv
-rwx------  1 root root  9389 Jul 21 12:02 uninstall

Vhosts_ispconfig.conf:
Code:

###################################
#
# ISPConfig vHost Configuration File
#        Version 1.0
#
###################################
#
NameVirtualHost 75.27.81.221:80
<VirtualHost 75.27.81.221:80>
  ServerName localhost
  ServerAdmin root@localhost
  DocumentRoot /var/www/sharedip
</VirtualHost>
NameVirtualHost 75.27.81.221:80
<VirtualHost 75.27.81.221:80>
  ServerName localhost
  ServerAdmin root@localhost
  DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: db.er-center.com:80
######################################
#
#
<VirtualHost 75.27.81.221:80>
ServerName db.er-center.com:80
ServerAdmin webmaster@er-center.com
DocumentRoot /var/www/web8/web
ServerAlias er-center.com
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
ScriptAlias  /cgi-bin/ /var/www/web8/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web8/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
</Files>
<Files *.php3>
    SetOutputFilter PHP
    SetInputFilter PHP
</Files>
<Files *.php4>
    SetOutputFilter PHP
    SetInputFilter PHP
</Files>
<Files *.php5>
    SetOutputFilter PHP
    SetInputFilter PHP
</Files>
php_admin_flag safe_mode On
php_admin_value open_basedir /var/www/web8/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /var/www/web8/phptmp/
php_admin_value session.save_path /var/www/web8/phptmp/
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Alias /error/ "/var/www/web8/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/web8/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web8/user/$1/web/$3
</VirtualHost>
#
#
#


till 8th August 2006 11:07

Your httpd is not listening on localhost, thats why ISPConfig shows the httpd offline.

falko 8th August 2006 18:33

Please run
Code:

rm -f /root/ispconfig/.ispconfig_lock
/root/ispconfig/php/php /root/ispconfig/scripts/writeconf.php

What's the output?
Also, what's the output of
Code:

ifconfig
?

brightshadow 8th August 2006 22:01

Yeah, I solved the 127.0.0.1 listen problem.

here is if config
Code:

ifconfig
eth0      Link encap:Ethernet  HWaddr 00:17:31:C4:4F:33
          inet addr:75.27.81.221  Bcast:75.27.81.255  Mask:255.255.255.0
          inet6 addr: fe80::217:31ff:fec4:4f33/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:303716 errors:0 dropped:0 overruns:0 frame:0
          TX packets:45889 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:20209947 (19.2 MiB)  TX bytes:17768809 (16.9 MiB)
          Interrupt:10 Base address:0xa000

eth1      Link encap:Ethernet  HWaddr 00:17:31:C4:56:74
          inet addr:192.168.1.79  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::217:31ff:fec4:5674/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:499790 errors:0 dropped:0 overruns:0 frame:0
          TX packets:138634 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:246756385 (235.3 MiB)  TX bytes:14051134 (13.4 MiB)
          Interrupt:11 Base address:0xe000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8072 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8072 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2693366 (2.5 MiB)  TX bytes:2693366 (2.5 MiB)


falko 9th August 2006 16:58

What about this?
Quote:

Originally Posted by falko
Please run
Code:

rm -f /root/ispconfig/.ispconfig_lock
/root/ispconfig/php/php /root/ispconfig/scripts/writeconf.php

What's the output?



All times are GMT +2. The time now is 10:53.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.