Couple issues with ispconfig 2.2.12 after Fiesty upgrade

Discussion in 'Installation/Configuration' started by pyropoptrt, Apr 28, 2007.

  1. pyropoptrt

    pyropoptrt Member

    I upgraded my server from Ubuntu 6.10 to Fiesty (7.xx). I utilized the perfect install instructions for fiesty on this site, here are some of the issues I am having after installing everything and reconfiguring my sites:

    1. I am currently running three sites. I noticed in my vhosts file that only the first site I added shows up. So, when trying to access the other two sites, all I get is the sharedip webpage.

    2. php does not work on the first site i set up (can't test on the other two sites). When pulling up any page with php it promptly downloads the page. :eek: In the past I have had the php lines in the mods-enabled conf not commented out because ispconfig wouldn't turn them on unless they were not commented out. Currently on my conf files I have them commented out per instructions from this thread http://www.howtoforge.com/forums/showthread.php?t=1098 but I still can't get php to work. Looking at the ispconfig.conf I noticed no mention of php so I added that line per another thread.

    so far, these are the only issues I am dealing with. When I first followed the perfect install instructions for Ubuntu 6.10 I didn't have any problems at all, except for the php issue. Just want to give a big thumbs up to the developers of this product, so far I have absolutely loved it and look forward to version 3.
     
  2. Hans

    Hans Moderator Moderator

    Do you have this line at the end within your /etc/apache2/apache2.conf:

    Include /etc/apache2/vhosts/Vhosts_ispconfig.conf

    After any modification restart Apache2:

    /etc/init.d/apache2 restart
     
  3. pyropoptrt

    pyropoptrt Member

    The include Vhosts line is there on apache2.conf. When restarting apache this error shows up:

    [warn] NameVirtualHost 192.168.0.104:80 has no VirtualHosts
     
  4. pyropoptrt

    pyropoptrt Member

    I have been doing some major searching through the forums. After reading through this thread (http://www.howtoforge.com/forums/showthread.php?t=7719) and trying the test that till suggested I get the following error message:

    Syntax error on line 58 of /etc/apache2/vhosts/Vhosts_ispconfig.conf:
    Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration

    and here's line 58:
    php_admin_flag safe_mode On
     
  5. pyropoptrt

    pyropoptrt Member

    and here's the output from ls -la /root/ispconfig as suggested by falko

    -rwxr-xr-x 1 root root 34550 2007-04-27 07:10 cronolog
    -rwxr-xr-x 1 root root 9673 2007-04-27 07:10 cronosplit
    drwxr-xr-x 12 root root 4096 2007-04-26 23:13 httpd
    drwxr-xr-x 14 root root 4096 2007-04-27 07:10 isp
    -rw-r--r-- 1 root root 8 2007-04-28 23:11 .old_path_httpd_root
    drwxr-xr-x 6 root root 4096 2007-04-26 23:10 openssl
    drwxr-xr-x 6 root root 4096 2007-04-27 07:09 php
    drwxr-xr-x 4 root root 4096 2007-04-27 07:10 scripts
    drwxr-xr-x 4 root root 4096 2007-04-27 07:10 standard_cgis
    drwxr-xr-x 2 root root 4096 2007-04-27 07:10 sv
    -rwx------ 1 root root 9389 2007-04-27 07:10 uninstall
     
  6. pyropoptrt

    pyropoptrt Member

  7. mxc

    mxc Member

    it seems like your /etc/apache2/httpd.conf (note not sure of the exact name in ubunut -- it might be apcahe.conf) file has had some changes. Also is seems that mod_php is not enabled

    Do a "a2enmod" as root and select the correct entry for mod_php
     
  8. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    ls -l /etc/apache2/vhosts
    ?
     
  9. pyropoptrt

    pyropoptrt Member

    I don't see any modules that mention php when executing

    Code:
    a2enmod
     
    Last edited: Apr 29, 2007
  10. pyropoptrt

    pyropoptrt Member

    total 364
    -rw-r--r-- 1 root root 1420 2007-04-29 00:19 Vhosts_ispconfig.conf
    -rw-r--r-- 1 root root 1805 2007-04-27 08:17 Vhosts_ispconfig.conf_27-04-07_08-17-08
    -rw-r--r-- 1 root root 1805 2007-04-27 08:18 Vhosts_ispconfig.conf_27-04-07_08-18-28
    -rw-r--r-- 1 root root 1805 2007-04-27 08:19 Vhosts_ispconfig.conf_27-04-07_08-19-05
    -rw-r--r-- 1 root root 1805 2007-04-27 08:19 Vhosts_ispconfig.conf_27-04-07_08-19-18
    -rw-r--r-- 1 root root 1805 2007-04-27 08:20 Vhosts_ispconfig.conf_27-04-07_08-20-11
    -rw-r--r-- 1 root root 1805 2007-04-27 08:24 Vhosts_ispconfig.conf_27-04-07_08-24-10
    -rw-r--r-- 1 root root 1805 2007-04-27 08:25 Vhosts_ispconfig.conf_27-04-07_08-25-02
    -rw-r--r-- 1 root root 1805 2007-04-27 08:32 Vhosts_ispconfig.conf_27-04-07_08-32-48
    -rw-r--r-- 1 root root 1805 2007-04-27 08:33 Vhosts_ispconfig.conf_27-04-07_08-33-15
    -rw-r--r-- 1 root root 1805 2007-04-27 08:34 Vhosts_ispconfig.conf_27-04-07_08-34-51
    -rw-r--r-- 1 root root 1805 2007-04-27 08:38 Vhosts_ispconfig.conf_27-04-07_08-38-07
    -rw-r--r-- 1 root root 1805 2007-04-27 08:38 Vhosts_ispconfig.conf_27-04-07_08-38-24
    -rw-r--r-- 1 root root 1969 2007-04-27 21:44 Vhosts_ispconfig.conf_27-04-07_21-44-32
    -rw-r--r-- 1 root root 3474 2007-04-27 21:48 Vhosts_ispconfig.conf_27-04-07_21-48-30
    -rw-r--r-- 1 root root 3474 2007-04-27 21:50 Vhosts_ispconfig.conf_27-04-07_21-50-16
    -rw-r--r-- 1 root root 3474 2007-04-27 21:56 Vhosts_ispconfig.conf_27-04-07_21-56-55
    -rw-r--r-- 1 root root 5011 2007-04-27 22:10 Vhosts_ispconfig.conf_27-04-07_22-10-51
    -rw-r--r-- 1 root root 5011 2007-04-27 22:12 Vhosts_ispconfig.conf_27-04-07_22-12-11
    -rw-r--r-- 1 root root 5142 2007-04-27 22:16 Vhosts_ispconfig.conf_27-04-07_22-16-06
    -rw-r--r-- 1 root root 5142 2007-04-27 22:20 Vhosts_ispconfig.conf_27-04-07_22-20-09
    -rw-r--r-- 1 root root 5142 2007-04-27 22:20 Vhosts_ispconfig.conf_27-04-07_22-20-46
    -rw-r--r-- 1 root root 5142 2007-04-27 22:21 Vhosts_ispconfig.conf_27-04-07_22-21-02
    -rw-r--r-- 1 root root 5142 2007-04-27 22:22 Vhosts_ispconfig.conf_27-04-07_22-22-19
    -rw-r--r-- 1 root root 5142 2007-04-27 22:22 Vhosts_ispconfig.conf_27-04-07_22-22-58
    -rw-r--r-- 1 root root 5142 2007-04-27 22:38 Vhosts_ispconfig.conf_27-04-07_22-38-51
    -rw-r--r-- 1 root root 5142 2007-04-27 22:40 Vhosts_ispconfig.conf_27-04-07_22-40-08
    -rw-r--r-- 1 root root 5306 2007-04-27 22:41 Vhosts_ispconfig.conf_27-04-07_22-41-36
    -rw-r--r-- 1 root root 5306 2007-04-27 22:42 Vhosts_ispconfig.conf_27-04-07_22-42-35
    -rw-r--r-- 1 root root 5306 2007-04-27 22:48 Vhosts_ispconfig.conf_27-04-07_22-48-01
    -rw-r--r-- 1 root root 5306 2007-04-27 22:50 Vhosts_ispconfig.conf_27-04-07_22-50-06
    -rw-r--r-- 1 root root 5306 2007-04-27 23:07 Vhosts_ispconfig.conf_27-04-07_23-07-11
    -rw-r--r-- 1 root root 5306 2007-04-27 23:07 Vhosts_ispconfig.conf_27-04-07_23-07-50
    -rw-r--r-- 1 root root 5306 2007-04-27 23:12 Vhosts_ispconfig.conf_27-04-07_23-12-36
    -rw-r--r-- 1 root root 5306 2007-04-27 23:34 Vhosts_ispconfig.conf_27-04-07_23-34-08
    -rw-r--r-- 1 root root 5306 2007-04-27 23:34 Vhosts_ispconfig.conf_27-04-07_23-34-25
    -rw-r--r-- 1 root root 5306 2007-04-27 23:34 Vhosts_ispconfig.conf_27-04-07_23-34-42
    -rw-r--r-- 1 root root 5306 2007-04-27 23:34 Vhosts_ispconfig.conf_27-04-07_23-34-57
    -rw-r--r-- 1 root root 5306 2007-04-28 22:40 Vhosts_ispconfig.conf_28-04-07_22-40-25
    -rw-r--r-- 1 root root 6656 2007-04-28 23:05 Vhosts_ispconfig.conf_28-04-07_23-05-01
    -rw-r--r-- 1 root root 6668 2007-04-28 23:05 Vhosts_ispconfig.conf_28-04-07_23-05-22
    -rw-r--r-- 1 root root 6668 2007-04-28 23:06 Vhosts_ispconfig.conf_28-04-07_23-06-00
    -rw-r--r-- 1 root root 6668 2007-04-28 23:08 Vhosts_ispconfig.conf_28-04-07_23-08-42
    -rw-r--r-- 1 root root 6668 2007-04-28 23:09 Vhosts_ispconfig.conf_28-04-07_23-09-28
    -rw-r--r-- 1 root root 6668 2007-04-28 23:09 Vhosts_ispconfig.conf_28-04-07_23-09-45
    -rw-r--r-- 1 root root 6668 2007-04-28 23:10 Vhosts_ispconfig.conf_28-04-07_23-10-29
    -rw-r--r-- 1 root root 5548 2007-04-29 00:16 Vhosts_ispconfig.conf_29-04-07_00-16-28
    -rw-r--r-- 1 root root 5548 2007-04-29 00:17 Vhosts_ispconfig.conf_29-04-07_00-17-37
    -rw-r--r-- 1 root root 5548 2007-04-29 00:17 Vhosts_ispconfig.conf_29-04-07_00-17-54
    -rw-r--r-- 1 root root 5548 2007-04-29 00:18 Vhosts_ispconfig.conf_29-04-07_00-18-41
    -rw-r--r-- 1 root root 5548 2007-04-29 00:18 Vhosts_ispconfig.conf_29-04-07_00-18-57
    -rw-r--r-- 1 root root 5548 2007-04-29 00:19 Vhosts_ispconfig.conf_29-04-07_00-19-13
    -rw-r--r-- 1 root root 5548 2007-04-29 00:19 Vhosts_ispconfig.conf_29-04-07_00-19-30
    -rw-r--r-- 1 root root 5545 2007-04-29 00:19 Vhosts_ispconfig.conf_29-04-07_00-19-58
     
  11. pyropoptrt

    pyropoptrt Member

    i just reinstalled php and php files seem to be working now. All that is left is figuring out why Virtual Hosts isn't working. Thanks for your help so far guys!
     
  12. falko

    falko Super Moderator Howtoforge Staff

    Please do this:
    Code:
    mv /etc/apache2/vhosts/Vhosts_ispconfig.conf_29-04-07_00-19-58 /etc/apache2/vhosts/Vhosts_ispconfig.conf
    Then run
    Code:
    httpd -t
    What's the output?
     
  13. pyropoptrt

    pyropoptrt Member

    here ya go:

    Code:
    [Mon Apr 30 09:25:58 2007] [warn] NameVirtualHost 192.168.0.104:80 has no VirtualHosts
    Syntax OK
    
     
  14. falko

    falko Super Moderator Howtoforge Staff

    That's strange...
    Please restart Apache. Do you get any error messages?
     
  15. pyropoptrt

    pyropoptrt Member

    Code:
    * Forcing reload of web server (apache2)...
    [Tue May 01 13:34:48 2007] [warn] NameVirtualHost 192.168.0.104:80 has no VirtualHosts
    [Tue May 01 13:34:59 2007] [warn] NameVirtualHost 192.168.0.104:80 has no VirtualHosts
       ...done.
    
     
  16. pyropoptrt

    pyropoptrt Member

    two out of three sites are working now. The site that isn't working is the second site I added, so I might just delete the site and reload it into ispconfig and see if it starts working after that.
     

Share This Page