Restoring my server

Discussion in 'ISPConfig 3 Priority Support' started by lobius, Apr 4, 2015.

  1. lobius

    lobius Member

    When I took a snapshot, everything was humming along nicely.

    When I restored from the same snapshot, my sites were not loading.

    It seems that the data was intact. I could FTP and SSH and access ISPconfig3.

    The settings and the database seem to be in working order so I think something went wrong with ISPconfig3.

    I tried re-syncing and that did not work. I tried to manually look at the virtual hosts. No effect.

    Do you have any kind of experience with this? The worst problem to have is when everything look like it's okay.
     
  2. lobius

    lobius Member

    I've narrowed it down to the virtual host file of my man site in /var/www/clients/client5/web11/web

    All of the other sites are working well.

    http://ellatinodigital.com/ appears to be going to the Apache default page in /var/www despite the fact that the host file look like:

    Code:
    <Directory /var/www/ellatinodigital.com>
         AllowOverride None
         Order Deny,Allow
         Deny from all
    </Directory>
    
    <VirtualHost *:80>
               DocumentRoot /var/www/ellatinodigital.com/web
           
         ServerName ellatinodigital.com
         ServerAlias www.ellatinodigital.com
      ServerAlias *.ellatinosemanal.net ellatinosemanal.net
      ServerAlias *.ellatinosemanal.com ellatinosemanal.com
      ServerAlias *.ellatinoenlinea.com ellatinoenlinea.com
         ServerAdmin [email protected]
    
         ErrorLog /var/log/ispconfig/httpd/ellatinodigital.com/error.log
    
         Alias /error/ "/var/www/ellatinodigital.com/web/error/"
         ErrorDocument 400 /error/400.html
         ErrorDocument 401 /error/401.html
         ErrorDocument 403 /error/403.html
         ErrorDocument 404 /error/404.html
         ErrorDocument 405 /error/405.html
         ErrorDocument 500 /error/500.html
         ErrorDocument 502 /error/502.html
         ErrorDocument 503 /error/503.html
    
         <IfModule mod_ssl.c>
         </IfModule>
    
         <Directory /var/www/ellatinodigital.com/web>
             Options FollowSymLinks
             AllowOverride All
             Order allow,deny
             Allow from all
         </Directory>
         <Directory /var/www/clients/client5/web11/web>
             Options FollowSymLinks
             AllowOverride All
             Order allow,deny
             Allow from all
         </Directory>
    
    
    
         <IfModule mod_python.c>
           <Directory /var/www/ellatinodigital.com/web>
             AddHandler mod_python .py
             PythonHandler mod_python.publisher
             PythonDebug On
           </Directory>
         </IfModule>
    
         # suexec enabled
         <IfModule mod_suexec.c>
           SuexecUserGroup web11 client5
         </IfModule>
         # Clear PHP settings of this website
         <FilesMatch "\.ph(p3?|tml)$">
             SetHandler None
         </FilesMatch>
         # mod_php enabled
         AddType application/x-httpd-php .php .php3 .php4 .php5
         php_admin_value sendmail_path "/usr/sbin/sendmail -t -i [email protected]"
         php_admin_value upload_tmp_dir /var/www/clients/client5/web11/tmp
         php_admin_value session.save_path /var/www/clients/client5/web11/tmp
       # PHPIniDir /var/www/conf/web11
         php_admin_value open_basedir /var/www/clients/client5/web11/web:/var/www/clients/client5/web11/private:/var/www/clients/client5/web11/tmp:/var/www/ellatinodigital.com/web:/srv/www/ellatinodigital.com/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin
    
    
         # add support for apache mpm_itk
         <IfModule mpm_itk_module>
           AssignUserId web11 client5
         </IfModule>
    
         <IfModule mod_dav_fs.c>
         # Do not execute PHP files in webdav directory
           <Directory /var/www/clients/client5/web11/webdav>
             <ifModule mod_security2.c>
               SecRuleRemoveById 960015
               SecRuleRemoveById 960032
             </ifModule>
             <FilesMatch "\.ph(p3?|tml)$">
               SetHandler None
             </FilesMatch>
           </Directory>
           DavLockDB /var/www/clients/client5/web11/tmp/DavLock
           # DO NOT REMOVE THE COMMENTS!
           # IF YOU REMOVE THEM, WEBDAV WILL NOT WORK ANYMORE!
      # WEBDAV BEGIN
           # WEBDAV END
         </IfModule>
    
    
    </VirtualHost>
    
    
    Is there something wrong with this?

    Is there anything else I can do share to get light on this issue?
     
  3. lobius

    lobius Member

    It is definitely sending traffic to the web root.

    How do I fix this through ISPconfig3?
     
  4. lobius

    lobius Member

    Figured it out. It was a problem with the hostname. The hostname was identical to the domain I wanted so we force the domain to the root.
    Everything was set up correctly so the solution came down to reflecting on the differences between the 2 snapshots.
    Stare at a problem long enough and you'll figure it out.
     

Share This Page