New subdomains not added to Vhosts_ispconfig.conf?

Discussion in 'General' started by kuckus, Oct 26, 2006.

  1. meth

    meth New Member

    Errors still continue, i get:
    Code:
    # /root/ispconfig/php/php -q /root/ispconfig/scripts/writeconf.php
    start
    postmap: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
    postmap: warning: inet_protocols: configuring for IPv4 support only
    ende
    
    And my ispconfig.log get:
    Code:
    15.10.2008 - 22:31:19 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 137: cp -fr /etc/postfix/local-host-names /etc/postfix/local-host-names~
    15.10.2008 - 22:31:19 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 284: cp -fr /etc/postfix/virtusertable /etc/postfix/virtusertable~
    15.10.2008 - 22:31:19 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 289: postmap hash:/etc/postfix/virtusertable
    15.10.2008 - 22:31:19 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1265: cp -fr /etc/apache2/vhosts/Vhosts_ispconfig.conf /etc/apache2/vhosts/Vhosts_ispconfig.conf~
    15.10.2008 - 22:31:19 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2590: WARNING: could not . /etc/apache2/envvars && httpd -t  &> /dev/null
    15.10.2008 - 22:31:19 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2604: httpd syntax seems to contain errors, reloading with old configuration
    15.10.2008 - 22:31:19 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2605: mv -f /etc/apache2/vhosts/Vhosts_ispconfig.conf /etc/apache2/vhosts/Vhosts_ispconfig.conf_15-10-08_22-31-19
    15.10.2008 - 22:31:19 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2606: mv -f /etc/apache2/vhosts/Vhosts_ispconfig.conf~ /etc/apache2/vhosts/Vhosts_ispconfig.conf
    15.10.2008 - 22:31:19 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/init.d/apache2 reload &> /dev/null
    15.10.2008 - 22:31:19 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2056: cp -fr /etc/proftpd_ispconfig.conf /etc/proftpd_ispconfig.conf~
    
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Please disable IPv6 in /etc/postfix/main.cf.

    What's the output of
    Code:
    ls -la /etc/apache2/vhosts
    ?
     
  3. meth

    meth New Member

    i dont have ipv6 enabled in postfix.

    And ls -la /etc/apache2/vhosts output is:
    Code:
    ls -la /etc/apache2/vhosts
    total 1256
    drwxr-xr-x 2 root root  4096 2008-10-15 23:11 .
    drwxr-xr-x 8 root root  4096 2008-07-28 14:37 ..
    -rw-r--r-- 1 root root 26720 2008-10-15 23:11 Vhosts_ispconfig.conf
    -rw-r--r-- 1 root root 21906 2008-10-01 23:33 Vhosts_ispconfig.conf_01-10-08_23-33-18
    -rw-r--r-- 1 root root 21906 2008-10-03 13:37 Vhosts_ispconfig.conf_03-10-08_13-37-54
    -rw-r--r-- 1 root root 21613 2008-09-08 19:06 Vhosts_ispconfig.conf_08-09-08_19-06-50
    -rw-r--r-- 1 root root 21613 2008-09-08 19:07 Vhosts_ispconfig.conf_08-09-08_19-07-06
    -rw-r--r-- 1 root root 19894 2008-09-08 19:11 Vhosts_ispconfig.conf_08-09-08_19-11-10
    -rw-r--r-- 1 root root 19894 2008-09-08 19:52 Vhosts_ispconfig.conf_08-09-08_19-52-24
    -rw-r--r-- 1 root root 19894 2008-09-09 04:28 Vhosts_ispconfig.conf_09-09-08_04-28-14
    -rw-r--r-- 1 root root 19894 2008-09-09 11:53 Vhosts_ispconfig.conf_09-09-08_11-53-02
    -rw-r--r-- 1 root root 19894 2008-09-09 12:01 Vhosts_ispconfig.conf_09-09-08_12-01-36
    -rw-r--r-- 1 root root 21637 2008-09-09 12:05 Vhosts_ispconfig.conf_09-09-08_12-05-37
    -rw-r--r-- 1 root root 21637 2008-09-09 12:05 Vhosts_ispconfig.conf_09-09-08_12-05-52
    -rw-r--r-- 1 root root 21637 2008-09-09 12:21 Vhosts_ispconfig.conf_09-09-08_12-21-56
    -rw-r--r-- 1 root root 21637 2008-09-09 12:22 Vhosts_ispconfig.conf_09-09-08_12-22-08
    -rw-r--r-- 1 root root 21637 2008-09-09 12:23 Vhosts_ispconfig.conf_09-09-08_12-23-39
    -rw-r--r-- 1 root root 21637 2008-09-09 12:46 Vhosts_ispconfig.conf_09-09-08_12-46-59
    -rw-r--r-- 1 root root 21637 2008-09-10 12:10 Vhosts_ispconfig.conf_10-09-08_12-10-41
    -rw-r--r-- 1 root root 21637 2008-09-10 13:49 Vhosts_ispconfig.conf_10-09-08_13-49-27
    -rw-r--r-- 1 root root 21657 2008-09-12 19:16 Vhosts_ispconfig.conf_12-09-08_19-16-05
    -rw-r--r-- 1 root root 21657 2008-09-12 19:25 Vhosts_ispconfig.conf_12-09-08_19-25-58
    -rw-r--r-- 1 root root 21657 2008-09-12 19:27 Vhosts_ispconfig.conf_12-09-08_19-27-11
    -rw-r--r-- 1 root root 21637 2008-09-12 19:35 Vhosts_ispconfig.conf_12-09-08_19-35-43
    -rw-r--r-- 1 root root 23311 2008-10-15 18:34 Vhosts_ispconfig.conf_15-10-08_18-34-27
    -rw-r--r-- 1 root root 23311 2008-10-15 18:52 Vhosts_ispconfig.conf_15-10-08_18-52-37
    -rw-r--r-- 1 root root 23311 2008-10-15 22:30 Vhosts_ispconfig.conf_15-10-08_22-30-43
    -rw-r--r-- 1 root root 23311 2008-10-15 22:31 Vhosts_ispconfig.conf_15-10-08_22-31-19
    -rw-r--r-- 1 root root 23320 2008-10-15 23:11 Vhosts_ispconfig.conf_15-10-08_23-11-17
    -rw-r--r-- 1 root root 21637 2008-09-19 12:15 Vhosts_ispconfig.conf_19-09-08_12-15-05
    -rw-r--r-- 1 root root 21637 2008-09-19 12:51 Vhosts_ispconfig.conf_19-09-08_12-51-57
    -rw-r--r-- 1 root root 18195 2008-08-27 09:20 Vhosts_ispconfig.conf_27-08-08_09-20-23
    -rw-r--r-- 1 root root 18195 2008-08-27 09:21 Vhosts_ispconfig.conf_27-08-08_09-21-18
    -rw-r--r-- 1 root root 19914 2008-08-27 14:04 Vhosts_ispconfig.conf_27-08-08_14-04-06
    -rw-r--r-- 1 root root 19914 2008-08-27 14:13 Vhosts_ispconfig.conf_27-08-08_14-13-31
    -rw-r--r-- 1 root root 19914 2008-08-27 14:55 Vhosts_ispconfig.conf_27-08-08_14-55-43
    -rw-r--r-- 1 root root 19914 2008-08-27 15:00 Vhosts_ispconfig.conf_27-08-08_15-00-47
    -rw-r--r-- 1 root root 18195 2008-08-27 15:09 Vhosts_ispconfig.conf_27-08-08_15-09-11
    -rw-r--r-- 1 root root 19914 2008-08-27 15:16 Vhosts_ispconfig.conf_27-08-08_15-16-23
    -rw-r--r-- 1 root root 23360 2008-09-29 21:29 Vhosts_ispconfig.conf_29-09-08_21-29-47
    -rw-r--r-- 1 root root 23360 2008-09-29 21:31 Vhosts_ispconfig.conf_29-09-08_21-31-42
    -rw-r--r-- 1 root root 21900 2008-09-29 22:50 Vhosts_ispconfig.conf_29-09-08_22-50-56
    -rw-r--r-- 1 root root 21900 2008-09-29 22:51 Vhosts_ispconfig.conf_29-09-08_22-51-30
    -rw-r--r-- 1 root root 21901 2008-09-29 23:30 Vhosts_ispconfig.conf_29-09-08_23-30-44
    -rw-r--r-- 1 root root 20507 2008-09-29 23:54 Vhosts_ispconfig.conf_29-09-08_23-54-38
    -rw-r--r-- 1 root root 20507 2008-09-30 02:03 Vhosts_ispconfig.conf_30-09-08_02-03-32
    -rw-r--r-- 1 root root 20507 2008-09-30 02:05 Vhosts_ispconfig.conf_30-09-08_02-05-35
    -rw-r--r-- 1 root root 21900 2008-09-30 12:52 Vhosts_ispconfig.conf_30-09-08_12-52-37
    -rw-r--r-- 1 root root 21900 2008-09-30 12:52 Vhosts_ispconfig.conf_30-09-08_12-53-00
    -rw-r--r-- 1 root root 21901 2008-09-30 13:06 Vhosts_ispconfig.conf_30-09-08_13-06-11
    -rw-r--r-- 1 root root 20507 2008-09-30 13:14 Vhosts_ispconfig.conf_30-09-08_13-14-52
    -rw-r--r-- 1 root root 20507 2008-09-30 16:39 Vhosts_ispconfig.conf_30-09-08_16-39-18
    -rw-r--r-- 1 root root 21901 2008-09-30 17:03 Vhosts_ispconfig.conf_30-09-08_17-03-10
    -rw-r--r-- 1 root root 21901 2008-09-30 17:03 Vhosts_ispconfig.conf_30-09-08_17-03-32
    -rw-r--r-- 1 root root 20507 2008-09-30 17:07 Vhosts_ispconfig.conf_30-09-08_17-07-44
    -rw-r--r-- 1 root root 21901 2008-09-30 17:37 Vhosts_ispconfig.conf_30-09-08_17-37-46
     
  4. falko

    falko Super Moderator Howtoforge Staff

    http://www.howtoforge.com/forums/showpost.php?p=31772&postcount=3

    What are the outputs of
    Code:
    postconf -n | grep inet_protocols
    and
    Code:
    postconf -d | grep inet_protocols
    ?
     
  5. meth

    meth New Member

    I have executed:

    Code:
    mv Vhosts_ispconfig.conf Vhosts_ispconfig.conf.bak
    cp Vhosts_ispconfig.conf_15-10-08_23-11-17 Vhosts_ispconfig.conf
    httpd -t
    Syntax error on line 38 of /etc/apache2/vhosts/Vhosts_ispconfig.conf:
    Invalid command 'suPHP_Engine', perhaps misspelled or defined by a module not included in the server configuration
    Code:
    postconf -n | grep inet_protocols
    inet_protocols = all
    
    Code:
    postconf -d | grep inet_protocols
    inet_protocols = ipv4
    I have been looking for the suPHP module, i have installed suphp module, but still get error.

    With my actual Vhost_ispconfig.conf the httpd -t give me Syntax OK
     
  6. falko

    falko Super Moderator Howtoforge Staff

  7. freesqrt

    freesqrt New Member

    Hi,

    I have the same problem but with the deference that new virtual host entries never added to all of Vhosts_ispconfig.conf* files.
    when I take a look at ispconfig.log, I found that each time a have made the site, it make some changes in Vhosts_ispconfig.conf but can not use them ane change it back to old one:

    ###############
    03.11.2008 - 16:48:40 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1259: cp -fr /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf~
    03.11.2008 - 16:48:40 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2558: WARNING: could not httpd -t &> /dev/null
    03.11.2008 - 16:48:40 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2570: httpd syntax seems to contain errors, reloading with old configuration
    03.11.2008 - 16:48:40 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2571: mv -f /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf_03-11-08_16-48-40
    03.11.2008 - 16:48:40 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2572: mv -f /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf~ /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf
    ###############

    where may be the problem?
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Exactly and thats why I posted you the link above. Please do what I explained in the other thread to find the source of the problem.
     
  9. Unable to make subdomains - web server do not start

    I'm running the same problem. I tried backing up Vhosts_ispconfig.conf and rename the last Vhosts... file to Vhosts_ispconfig.conf and then wrote httpd -t and I get:
    Code:
    httpd: bad user name ${APACHE_RUN_USER}
    A few days ago I tried to install suPHP without any luck - It didn't compile. So I undo all the changes - enable php5 mod and edit /home/admispconfig/ispconfig/lib/config.inc.php changed the line:

    Code:
    $go_info["server"]["apache2_php"] = 'suphp';
    back to:

    Code:
    $go_info["server"]["apache2_php"] = 'suphp';
    Restarted ispconfig server ... ok
    Restarted apache2 server ((/ect/init.d/apache2 restart) and I got:

    Code:
     * Restarting web server apache2 
    Syntax error on line 50 of /etc/apache2/vhosts/Vhosts_ispconfig.conf:
    Invalid command 'suPHP_UserGroup', perhaps misspelled or defined by a module not included in the server configuration
    If I run httpd -t I get:

    Code:
    httpd: bad user name ${APACHE_RUN_USER}
    
    I restarted the web server using ISPConfig Admin page and I get it running.

    Created a new codomain socios.mydomain.com pointing to 'socios'
    If I hit http://socios.mydomain.com I get a page load error. I guess I'll have to wait a few to get the results propagated...

    Anyway, should I check "create DNS" when adding a new subdomain?
     
    Last edited: Nov 21, 2008
  10. I still couldn't get subdomains to work with ISPConfig.

    I noticed that Vhosts_ispconfig.conf has the subdomain rule:
    Code:
    ###################################
    #
    # ISPConfig vHost Configuration File
    #         Version 1.0
    #
    ###################################
    #
    NameVirtualHost 213.251.135.195:80
    <VirtualHost 213.251.135.195:80>
      ServerName localhost
      ServerAdmin root@localhost
      DocumentRoot /var/www/sharedip
      <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
        RewriteRule .* - [F]
      </IfModule>
    </VirtualHost>
    NameVirtualHost 87.98.230.87:80
    <VirtualHost 87.98.230.87:80>
      ServerName localhost
      ServerAdmin root@localhost
      DocumentRoot /var/www/sharedip
      <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
        RewriteRule .* - [F]
      </IfModule>
    </VirtualHost>
    #
    #
    ######################################
    # Vhost: www.mydomain.com:80
    ######################################
    #
    #
    <VirtualHost 213.251.135.195:80>
    ServerName www.mydomain.com:80
    ServerAdmin [email protected]
    DocumentRoot /var/www/web1/web
    ServerAlias mydomain.com socios.mydomain.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
    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 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 /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
    RewriteEngine on
    RewriteCond %{HTTP_HOST}   ^socios\.mydomain\.com [NC]
    RewriteRule   ^/(.*)$  http://www.mydomain.com/socios$1  [R]
    <IfModule mod_rewrite.c>
      RewriteEngine on
      RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
      RewriteRule .* - [F]
    </IfModule>
    </VirtualHost>
    #
    #
    
    However I just noticed there is no updated Vhosts_ispconfig.conf_<date> file created.

    I made the following:
    1) Make a backup of /etc/apache2/vhosts/Vhosts_ispconfig.conf
    2) Rename the latest file /etc/apache2/vhosts/Vhosts_ispconfig.conf_.... that has a date appended to /etc/apache2/vhosts/Vhosts_ispconfig.conf
    3) run

    httpd -t

    I got:
    Code:
    httpd: bad user name ${APACHE_RUN_USER}
    The result of ls -la /root/ispconfig:
    Code:
    drwxr-xr-x 10 root root  4096 2008-11-21 18:45 .
    drwxr-xr-x  9 root root  4096 2008-11-16 20:34 ..
    -rwxr-xr-x  1 root root 35143 2008-11-16 20:35 cronolog
    -rwxr-xr-x  1 root root  9673 2008-11-16 20:35 cronosplit
    drwxr-xr-x 12 root root  4096 2008-11-16 20:15 httpd
    drwxr-xr-x 16 root root  4096 2008-11-16 20:35 isp
    drwxr-xr-x  7 root root  4096 2008-11-16 20:16 libmcrypt
    -rw-r--r--  1 root root     8 2008-11-21 18:45 .old_path_httpd_root
    drwxr-xr-x  6 root root  4096 2008-11-16 20:11 openssl
    drwxr-xr-x  6 root root  4096 2008-11-16 20:27 php
    drwxr-xr-x  4 root root  4096 2008-11-16 20:35 scripts
    drwxr-xr-x  4 root root  4096 2008-11-16 20:35 standard_cgis
    drwxr-xr-x  2 root root  4096 2008-11-16 20:35 sv
    -rwx------  1 root root  9389 2008-11-16 20:35 uninstall
    
    The last lines of /home/admispconfig/ispconfig/ispconfig.log:

    Code:
    21.11.2008 - 14:05:06 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/init.d/apache2 reload &> /dev/null
    21.11.2008 - 14:05:07 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/init.d/postfix stop &> /dev/null
    21.11.2008 - 14:05:07 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/init.d/postfix start &> /dev/null
    21.11.2008 - 14:05:07 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2067: cp -fr /etc/proftpd_ispconfig.conf /etc/proftpd_ispconfig.conf~
    21.11.2008 - 18:44:48 => INFO - Signalfile Set: insert
    21.11.2008 - 18:44:58 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 259: setquota -g web1 0 0 0 0 -a &> /dev/null
    21.11.2008 - 18:44:58 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 260: setquota -T -g web1 604800 604800 -a &> /dev/null
    21.11.2008 - 18:44:58 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 279: Connected successfully
    21.11.2008 - 18:44:58 => INFO - USER: 
    web1_miguel:x:10001:10001:Miguel Pinheiro:/var/www/web1:/bin/bash
    21.11.2008 - 18:44:59 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 909: setquota -u web1_miguel 0 0 0 0 -a &> /dev/null
    21.11.2008 - 18:44:59 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 910: setquota -T -u web1_miguel 604800 604800 -a &> /dev/null
    21.11.2008 - 18:44:59 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 60: cp -f /root/ispconfig/isp/conf/forward.master /var/www/web1/.forward
    21.11.2008 - 18:44:59 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 117: symlink /var/www/web1/Maildir
    21.11.2008 - 18:44:59 => INFO - USER: 
    web1_cristina:x:10002:10001:Cristina Garrido:/var/www/web1/user/web1_cristina:/bin/false
    21.11.2008 - 18:44:59 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 909: setquota -u web1_cristina 0 0 0 0 -a &> /dev/null
    21.11.2008 - 18:44:59 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 910: setquota -T -u web1_cristina 604800 604800 -a &> /dev/null
    21.11.2008 - 18:44:59 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 60: cp -f /root/ispconfig/isp/conf/forward.master /var/www/web1/user/web1_cristina/.forward
    21.11.2008 - 18:44:59 => INFO - USER: 
    web1_pedro:x:10003:10001:Pedro No:/var/www/web1/user/web1_pedro:/bin/false
    21.11.2008 - 18:44:59 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 909: setquota -u web1_pedro 0 0 0 0 -a &> /dev/null
    21.11.2008 - 18:44:59 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 910: setquota -T -u web1_pedro 604800 604800 -a &> /dev/null
    21.11.2008 - 18:45:00 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 60: cp -f /root/ispconfig/isp/conf/forward.master /var/www/web1/user/web1_pedro/.forward
    21.11.2008 - 18:45:00 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 137: cp -fr /etc/postfix/local-host-names /etc/postfix/local-host-names~
    21.11.2008 - 18:45:00 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 284: cp -fr /etc/postfix/virtusertable /etc/postfix/virtusertable~
    21.11.2008 - 18:45:00 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 289: postmap hash:/etc/postfix/virtusertable
    21.11.2008 - 18:45:00 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1265: cp -fr /etc/apache2/vhosts/Vhosts_ispconfig.conf /etc/apache2/vhosts/Vhosts_ispconfig.conf~
    21.11.2008 - 18:45:00 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2601: . /etc/apache2/envvars && httpd -t  &> /dev/null
    21.11.2008 - 18:45:00 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2611: httpd syntax ok
    21.11.2008 - 18:45:00 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/init.d/apache2 reload &> /dev/null
    21.11.2008 - 18:45:01 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_bind.lib.php, Line 287: cp -fr /etc/bind/pri.saludterapia.com /etc/bind/pri.saludterapia.com~
    21.11.2008 - 18:45:04 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/init.d/bind9 restart &> /dev/null
    21.11.2008 - 18:45:04 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2067: cp -fr /etc/proftpd_ispconfig.conf /etc/proftpd_ispconfig.conf~
    21.11.2008 - 23:59:02 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/init.d/proftpd stop &> /dev/null
    21.11.2008 - 23:59:02 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/init.d/postfix stop &> /dev/null
    21.11.2008 - 23:59:02 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/init.d/proftpd start &> /dev/null
    21.11.2008 - 23:59:02 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 68: touch /var/log/mail.log.ispconfigsave
    21.11.2008 - 23:59:02 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 107: cat /dev/null > /var/log/xferlog.www.saludterapia.com
    21.11.2008 - 23:59:02 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 69: cat /var/log/mail.log.21-11-08_23-59-02 >> /var/log/mail.log.ispconfigsave
    21.11.2008 - 23:59:03 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 132: rm -f /var/log/xferlog.www.saludterapia.com
    21.11.2008 - 23:59:03 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 135: rm -f /var/log/xferlog.21-11-08_23-59-02
    21.11.2008 - 23:59:03 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/init.d/postfix start &> /dev/null
    21.11.2008 - 23:59:03 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 145: rm -f /var/log/mail.log.www.saludterapia.com
    21.11.2008 - 23:59:03 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 147: rm -f /var/log/mail.log.21-11-08_23-59-02
    root@ks32171:/etc/apache2/vhosts# 
    Content of file home/admispconfig/ispconfig/lib/config.inc.php:

    Code:
    */
    // Register Globals emulieren, falls notwendig
    if(get_cfg_var('register_globals') != 'On') {
    
        foreach($HTTP_GET_VARS as $getkey => $getval) {
            $$getkey = $getval;
        }
        unset($getkey);
        unset($getval);
    
        foreach($HTTP_POST_VARS as $postkey => $postval) {
            $$postkey = $postval;
        }
        unset($postkey);
        unset($postval);
    
        foreach($HTTP_COOKIE_VARS as $cookiekey => $cookieval) {
            $$cookiekey = $cookieval;
        }
        unset($cookiekey);
        unset($cookieval);
    }
    
    $go_info = array();
    
    $s = $HTTP_GET_VARS["s"];
    if(isset($HTTP_POST_VARS["s"])) $s = $HTTP_POST_VARS["s"];
    $s = addslashes($s);
    $session = "s=$s";
    $set_header = 1;
    @session_start();
    
    /**********************************************
    * System Settings
    **********************************************/
    
    $go_info["server"]["dir_trenner"] = "/";
    $go_info["server"]["server_root"] = "/home/admispconfig/ispconfig";
    
    define("DIR_TRENNER","/");
    define("SERVER_ROOT","/home/admispconfig/ispconfig");
    define("INCLUDE_ROOT",SERVER_ROOT.DIR_TRENNER."lib");
    define("CLASSES_ROOT",INCLUDE_ROOT.DIR_TRENNER."classes");
    define("DB_TYPE","mysql");
    
    if(isset($_SERVER['HTTP_HOST'])){
      $go_info["server"]["server_url"] = 'http://'.$_SERVER['HTTP_HOST'];
    } else {
      $go_info["server"]["server_url"] = "http://www.saludterapia.com:81";
    }
    $go_info["server"]["include_root"] = $go_info["server"]["server_root"] . $go_info["server"]["dir_trenner"] ."lib";
    $go_info["server"]["classes_root"] = $go_info["server"]["include_root"] . $go_info["server"]["dir_trenner"] ."classes";
    $go_info["server"]["temp_dir"] = $go_info["server"]["server_root"] . $go_info["server"]["dir_trenner"] ."temp";
    $go_info["server"]["files_dir"] = $go_info["server"]["server_root"] . $go_info["server"]["dir_trenner"] ."files";
    $go_info["server"]["backup_dir"] = $go_info["server"]["server_root"] . $go_info["server"]["dir_trenner"] ."backup";
    $go_info["server"]["version"] = "2.2.27";
    $go_info["server"]["os"] = "linux";
    $go_info["server"]["ort"] = "local";
    $go_info["server"]["banner"] = "0";
    $go_info["server"]["db_host"] = "localhost";
    $go_info["server"]["db_name"] = "db_ispconfig";
    $go_info["server"]["db_user"] = "root";
    $go_info["server"]["db_password"] = "ckelb9";
    $go_info["server"]["db_type"] = "mysql";
    $go_info["server"]["mail_server"] = "";
    $go_info["server"]["mail_user"] = "";
    $go_info["server"]["mail_password"] = "";
    $go_info["server"]["smtp_server"] = "localhost";
    $go_info["server"]["mode"] = "";
    $go_info["server"]["lang"] = "en";
    
    $go_info["server"]["postfix_config"] = 1; // 1 = SENDMAIL-STYLE, 2 = POSTFIX-STYLE
    $go_info["server"]["smtp_restart"] = 1; // 1 = stop/start, 2 = restart
    $go_info["server"]["network_config"] = 0; // 0 = none, 1 = automatic
    $go_info["server"]["sudo_du_enabled"] = 0; // enable sudo for gathering website file usage
    $go_info["server"]["apache2_php"] = 'addtype'; // 'filter' = set PHP filters, 'addtype' = Set PHP addtype or 'both' = Set Filter + Addtype, suphp = SuPHP wrapper enabled, 'addhandler' = Set PHP AddHandler (nescessary for SuSE 10.2)
    $go_info["server"]["password_hash"] = 'md5'; // 'crypt' = crypt; 'md5' = crypt-md5
    $go_info["server"]["do_automated_backups"] = 0; // 0 = no, 1 = yes; PLEASE NOTE: automated backups might fill up your HDD fast!
    $go_info["server"]["ssh_chroot"] = 0;
    $go_info["server"]["httpd_check"] = 1;
    $go_info["server"]["salutatory_email_charset"] = 'iso-8859-1'; // possible values are iso-8859-1, iso-8859-2, ..., us-ascii, koi8-r (Russian), ...; if no charset is specified, unknown-8bit is assumed.
    $go_info["server"]["webdav"] = 0;
    $go_info["server"]["force_user_quota"] = 0;
    $go_info["server"]["redirect_after_logout"] = ''; // URL to redirect to after logout from ISPConfig; leave empty for default location
    $go_info["server"]["redirect_mailuser_after_logout"] = ''; // URL to redirect to after logout from ISPConfig mailuser interface; leave empty for default location
    
    /**********************************************
    * Tools Settings
    **********************************************/
    
    $go_info["tools"]["zip"] = $go_info["server"]["server_root"] . $go_info["server"]["dir_trenner"] ."tools".$go_info["server"]["dir_trenner"]."zip".$go_info["server"]["dir_trenner"]."zip"; // nicht gzip !!
    $go_info["tools"]["unzip"] = $go_info["server"]["server_root"] . $go_info["server"]["dir_trenner"] ."tools".$go_info["server"]["dir_trenner"]."unzip".$go_info["server"]["dir_trenner"]."unzip";
    $go_info["tools"]["imagemagick"]["mogrify"] = "mogrify.exe";
    
    /**********************************************
    * Themes Settings
    **********************************************/
    
    // Themes Section
    $go_info["theme"]["sitename"] = "ISPConfig";
    $go_info["theme"]["page"]["box_color"] = "E4E4E4"; // z.B. E4E4E4 , angaben ohne #
    $go_info["theme"]["page"]["nav_color"] = "E0E0E0"; // z.B. 025CCA , angaben ohne #
    // Die Logo-Datei muss im Verzeichnis /home/admispconfig/ispconfig/web/design/default liegen!
    $go_info["theme"]["page"]["logo"] = ""; // z.B. meinlogo.gif
    $go_info["theme"]["charset"] = "iso-8859-1";
    
    /**********************************************
    * Logging
    **********************************************/
    
    $go_info["server"]["log_level"] = 0; // 0 = Debug, 1 = Info, 2 = Warning, 3 = Failure
    $go_info["server"]["log_file"] = $go_info["server"]["server_root"] . $go_info["server"]["dir_trenner"] ."ispconfig.log"; // Logdatei
    if(is_file("/home/admispconfig/ispconfig/adminmail.txt")){
      $go_info["server"]["log_mail"] = trim(shell_exec("cat /home/admispconfig/ispconfig/adminmail.txt")); // Log Emailadresse
    } else {
      $go_info["server"]["log_mail"] = "root@localhost";
    }
    $go_info["server"]["log_device"] = "FILE"; // FILE, SYSTEM, MAIL
    
    /**********************************************
    * Demo Mode Settings
    **********************************************/
    
    $go_info["demo"]["web_path"] = "";
    
    /**********************************************
    * Localisation Settings
    **********************************************/
    
    $go_info["localisation"]["dec_point"] = ",";
    $go_info["localisation"]["thousands_sep"] = ".";
    $go_info["localisation"]["currency"] = "EUR";
    
    define("CONFIG_LOADED",1);
    
    Running /root/ispconfig/php/php -q /root/ispconfig/scripts/writeconf.php I got:

    Code:
    start
    ende
    
    Can anyone please help me?
     
    Last edited: Nov 22, 2008
  11. falko

    falko Super Moderator Howtoforge Staff

    Try
    Code:
    . /etc/apache2/envvars && httpd -t
    instead of
    Code:
    httpd -t
     
  12.  
  13. I update my codomain configuration checking CREATE DNS option and it is now working.
    Anyway Falko, did you noticed anything strange in my configuration files?
     
  14. falko

    falko Super Moderator Howtoforge Staff

    Did you run the command as root?
     
  15. Yes I did. Here is how the file looks like:

    Code:
    root@ks32171:/etc/apache2# ls -la envvars
    
    -rw-r--r-- 1 root root 378 2008-06-25 15:49 envvars
    Code:
    root@ks32171:/etc/apache2# /etc/apache2/envvars && httpd -t
    
    bash: /etc/apache2/envvars: Permission denied
    
     
  16. falko

    falko Super Moderator Howtoforge Staff

    The correct command is
    Code:
    [B][COLOR="Red"].[/COLOR][/B] /etc/apache2/envvars && httpd -t
    not
    Code:
    /etc/apache2/envvars && httpd -t
     
  17. I get syntax ok.
    I guess everything is working fine..

    Thanks for your support Falko.
     
  18. Bikkies

    Bikkies New Member

    Same problem started happening to me so followed all instructions-

    cp /etc/apache2/vhosts/Vhosts_ispconfig.conf_25-04-09_03-23-03 /etc/apache2/vhosts/Vhosts_ispconfig.conf

    Output of . /etc/apache2/envvars && httpd -t
    Syntax error on line 298 of /etc/apache2/vhosts/Vhosts_ispconfig.conf:
    Invalid command 'blah', perhaps misspelled or defined by a module not included in the server configuration

    Found strange lines in conf file
    <VirtualHost 10.1.1.50:80>
    blah kasdfag
    dfk;kOASDF
    NDJJkksdglk

    ServerName www.militarysuperannuation2.for-our.info:80

    Don't know how those 3 lines got there but removed them & ran . /etc/apache2/envvars && httpd -t again which resulted in
    [Sat Apr 25 04:35:02 2009] [warn] NameVirtualHost 10.1.1.50:80 has no VirtualHosts
    Syntax OK


    Have plenty of virtual hosts
    ###################################
    #
    # ISPConfig vHost Configuration File
    # Version 1.0
    #
    ###################################
    #
    NameVirtualHost 10.1.1.50:80
    <VirtualHost 10.1.1.50:80>
    ServerName localhost
    ServerAdmin root@localhost
    DocumentRoot /var/www/sharedip
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    </IfModule>
    </VirtualHost>
    #
    #
    ######################################
    # Vhost: www.railscenes.com.au:80
    ######################################
    #
    #
    <VirtualHost 10.1.1.50:80>
    ServerName www.railscenes.com.au:80



    httpd -S results in
    [Sat Apr 25 04:48:06 2009] [warn] NameVirtualHost 10.1.1.50:80 has no VirtualHosts
    VirtualHost configuration:
    10.1.1.50:80 is a NameVirtualHost
    default server localhost (/etc/apache2/vhosts/Vhosts_ispconfig.conf:9)
    port 80 namevhost localhost (/etc/apache2/vhosts/Vhosts_ispconfig.conf:9)
    port 80 namevhost www.railscenes.com.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:26)
    port 80 namevhost www.webmail.sisbiz.com.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:73)
    port 80 namevhost www.sisbiz.com.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:120)
    port 80 namevhost www.prosepower.com.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:167)
    port 80 namevhost www.yourownserver.com.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:203)
    port 80 namevhost www.test.sisbiz.com.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:250)
    port 80 namevhost www.militarysuperannuation2.for-our.info (/etc/apache2/vhosts/Vhosts_ispconfig.conf:297)
    port 80 namevhost www.polls.motivepower.net.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:344)
    port 80 namevhost www.ocsportseaalumni.for-our.info (/etc/apache2/vhosts/Vhosts_ispconfig.conf:391)
    port 80 namevhost www.militarysuperannuation.for-our.info (/etc/apache2/vhosts/Vhosts_ispconfig.conf:438)
    port 80 namevhost www.railwayshop.com.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:485)
    port 80 namevhost localhost (/etc/apache2/vhosts/Vhosts_ispconfig.conf:9)
    port 80 namevhost www.railscenes.com.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:26)
    port 80 namevhost www.webmail.sisbiz.com.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:73)
    port 80 namevhost www.sisbiz.com.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:120)
    port 80 namevhost www.prosepower.com.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:167)
    port 80 namevhost www.yourownserver.com.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:203)
    port 80 namevhost www.test.sisbiz.com.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:250)
    port 80 namevhost www.militarysuperannuation2.for-our.info (/etc/apache2/vhosts/Vhosts_ispconfig.conf:297)
    port 80 namevhost www.polls.motivepower.net.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:344)
    port 80 namevhost www.ocsportseaalumni.for-our.info (/etc/apache2/vhosts/Vhosts_ispconfig.conf:391)
    port 80 namevhost www.militarysuperannuation.for-our.info (/etc/apache2/vhosts/Vhosts_ispconfig.conf:438)
    port 80 namevhost www.railwayshop.com.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:485)
    wildcard NameVirtualHosts and _default_ servers:
    *:80 is a NameVirtualHost
    default server sisbiz.com.au (/etc/apache2/sites-enabled/000-default:1)
    port 80 namevhost sisbiz.com.au (/etc/apache2/sites-enabled/000-default:1)
    Syntax OK




    Output of ls -la /root/ispconfig
    total 104
    drwxr-xr-x 10 root root 4096 2009-04-25 03:29 .
    drwxr-xr-x 6 root root 4096 2009-03-27 16:25 ..
    -rwxr-xr-x 1 root root 34530 2009-03-27 16:27 cronolog
    -rwxr-xr-x 1 root root 9673 2009-03-27 16:27 cronosplit
    drwxr-xr-x 12 root root 4096 2009-03-27 16:05 httpd
    drwxr-xr-x 16 root root 4096 2009-03-27 16:27 isp
    drwxr-xr-x 7 root root 4096 2009-03-27 16:06 libmcrypt
    -rw-r--r-- 1 root root 8 2009-04-25 03:29 .old_path_httpd_root
    drwxr-xr-x 6 root root 4096 2009-03-27 16:03 openssl
    drwxr-xr-x 6 root root 4096 2009-03-27 16:19 php
    drwxr-xr-x 4 root root 4096 2009-04-25 01:57 scripts
    drwxr-xr-x 4 root root 4096 2009-03-27 16:27 standard_cgis
    drwxr-xr-x 2 root root 4096 2009-03-27 16:27 sv
    -rwx------ 1 root root 9389 2009-03-27 16:27 uninstall




    Output of /home/admispconfig/ispconfig/ispconfig.log
    25.04.2009 - 03:29:18 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2658: WARNING: could not . /etc/apache2/envvars && httpd -t &> /dev/null
    25.04.2009 - 03:29:18 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2672: httpd syntax seems to contain errors, reloading with old configuration



    If someone might be able to point out where I have gone wrong.
     
  19. till

    till Super Moderator Staff Member ISPConfig Developer

    You entered the lines:

    blah kasdfag
    dfk;kOASDF
    NDJJkksdglk

    into the apache directives field of a website in ispconfig. This causes apache to fail and as soon as you remove them from the apache directives field in ispconfig, everything will work properly again. And never edit the vhosts file directly!
     
  20. Bikkies

    Bikkies New Member

    Thanks heaps for previous post Till. Had been doing some testing a few days back in response to another post in regards caching & it had been suggested to put some garbage in to see if .htaccess was working but forgot to take them out. Now working fine again.

    One other question. In trying to keep my servers as secure as possible I always like to limit who has access to port 22 & previously used iptables to restrict to IP address.
    I haven't found the location of the file I need to edit yet.
    Is there a sticky somewhere that has information re all the important configuration files in the one place? Like a site map perhaps, or a table of contents.

    Many thanks,
    Tony
     

Share This Page