Blank Pages

Discussion in 'Installation/Configuration' started by Glorfindel, Feb 24, 2006.

  1. Glorfindel

    Glorfindel New Member

    I got everything set up correctly finally, and it worked great... for about a day. Now every page I try to load simply gives a white page when I connect from my domain (glorf.com) or any subdomain thereof... any ideas what could have caused this?
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Are they HTML pages, or PHP, or something else?
    What's in your Apache error log?
     
  3. Glorfindel

    Glorfindel New Member

    index.php and some other php files. The pages are most definately there according to FTP.

    I just got home and noticed that the pages are no longer blank... now everything points to the shared IP page except for a test.glorf.com that I added while I was trying to figure out why the pages were blank... the test.glorf.com page shows the default "This is the standard index of your website." page.

    I just looked in the Vhosts_ispconfig.conf file and noticed that the only <VirtualHost> thing is for test.glorf.com aside from the main server one... none of the other sites I set up before are there... I never looked there before, but I assume they were there while they were working... 0_0

    The only error since I noticed the problem that I can see is a "File does not exist: /var/www/sharedip/web15"

    Going to the panel opening the existing sites and saving them doesn't seem to add them to the vhosts either :(


    hmm... come to think of it and my small linux experiance... could this be related to permissions? I installed most of this stuff under root, and i've been running it under another user account now for security... the folder permissions are to root... is that a problem?
     
    Last edited: Feb 24, 2006
  4. falko

    falko Super Moderator Howtoforge Staff

    What do you mean with that?

    What's in Vhosts_ispconfig.conf?
     
  5. Glorfindel

    Glorfindel New Member

    I mean that when I installed LAMP and ISPConfig, I was logging into the linux box as root. Now that I have completed the installation, I am having it log into "Glorfindel" when it boots because i've always been told never to use root cept when you need to. The permissions on the Vhosts file is root:root -rw-r-r- (644). Would this cause ISPConfig to not be able to write to the file properly? I'm very new to linux :p

    I assume that there should also be entries there for www and tsl... as I have two sites I've setup: tsl.glorf.com and www.glorf.com... and those both have aliases as plain glorf.com and jpl.glorf.com should go to tsl.glorf.com/jpl/
     
    Last edited: Feb 24, 2006
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    No, thats OK. ISPConfig uses a process that runs with root priveliges to write the config files.

    You mean you have setup more then one website in ISPConfig, these other websites show up in the ISPConfig interface but they are not in the Vhost_ispconfig.conf file?

    Please have a look at the directory of Vhost_ispconfig.conf, are there other copies of the file Vhost_ispconfig.conf with the date appended to the name?
     
  7. Glorfindel

    Glorfindel New Member

    Yep :eek:


    Nope :(
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Please check the ISPConfig logfile for errors:

    /home/admispconfig/ispconfig/ispconfig,log
     
  9. Glorfindel

    Glorfindel New Member

    Nothing in that log is tagged ERROR, but there are several "INFO" messages.
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the last 10 - 20 lines.
     
  11. Glorfindel

    Glorfindel New Member

    HTML:
    25.02.2006 - 04:12:59 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 136: cp -fr /etc/postfix/local-host-names /etc/postfix/local-host-names~
    25.02.2006 - 04:12:59 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 283: cp -fr /etc/postfix/virtusertable /etc/postfix/virtusertable~
    25.02.2006 - 04:12:59 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 288: postmap hash:/etc/postfix/virtusertable
    25.02.2006 - 04:12:59 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1191: cp -fr /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf~
    25.02.2006 - 04:13:00 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 696: /etc/rc.d/init.d/postfix stop &> /dev/null
    25.02.2006 - 04:13:01 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 696: /etc/rc.d/init.d/postfix start &> /dev/null
    25.02.2006 - 04:13:01 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1825: cp -fr /etc/proftpd_ispconfig.conf /etc/proftpd_ispconfig.conf~
    25.02.2006 - 04:13:09 => DEBUG - The name  www.glorf.com  is already in use by another site or domain.<br>The Domain belongs to another client.<br><br> <a href='../../isp_manager/frame_start.php?'>Next &gt;&gt;</a>
    25.02.2006 - 23:59:02 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 696: /etc/rc.d/init.d/postfix stop &> /dev/null
    25.02.2006 - 23:59:02 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 53: cp -f /var/log/maillog /var/log/maillog.25-02-06_23-59-02
    25.02.2006 - 23:59:02 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 696: /etc/rc.d/init.d/proftpd stop &> /dev/null
    25.02.2006 - 23:59:02 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 58: cp -f /var/log/xferlog /var/log/xferlog.25-02-06_23-59-02
    25.02.2006 - 23:59:02 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 696: /etc/rc.d/init.d/proftpd start &> /dev/null
    25.02.2006 - 23:59:02 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 96: cat /dev/null > /var/log/xferlog.test.glorf.com
    25.02.2006 - 23:59:02 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 121: rm -f /var/log/xferlog.test.glorf.com
    25.02.2006 - 23:59:02 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 96: cat /dev/null > /var/log/xferlog.t2.glorf.com
    25.02.2006 - 23:59:02 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 121: rm -f /var/log/xferlog.t2.glorf.com
    25.02.2006 - 23:59:02 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 124: rm -f /var/log/xferlog.25-02-06_23-59-02
    25.02.2006 - 23:59:03 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 696: /etc/rc.d/init.d/postfix start &> /dev/null
    25.02.2006 - 23:59:03 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 132: rm -f /var/log/maillog.test.glorf.com
    25.02.2006 - 23:59:03 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 132: rm -f /var/log/maillog.t2.glorf.com
    25.02.2006 - 23:59:03 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 134: rm -f /var/log/maillog.25-02-06_23-59-02
     
  12. falko

    falko Super Moderator Howtoforge Staff

    Please post the output of
    Code:
    ls -la /root/ispconfig
     
  13. Glorfindel

    Glorfindel New Member

    Code:
    [root@localhost ~]# ls -la /root/ispconfig
    total 124
    drwxr-xr-x   9 root root  4096 Feb 25 04:13 .
    drwxr-x---  21 root root  4096 Feb 24 06:41 ..
    -rwxr-xr-x   1 root root 55866 Feb 22 05:44 cronolog
    -rwxr-xr-x   1 root root  9673 Feb 22 05:44 cronosplit
    drwxr-xr-x  12 root root  4096 Feb 22 05:26 httpd
    drwxr-xr-x  12 root root  4096 Feb 22 05:44 isp
    -rw-r--r--   1 root root     8 Feb 25 04:13 .old_path_httpd_root
    drwxr-xr-x   6 root root  4096 Feb 22 05:22 openssl
    drwxr-xr-x   6 root root  4096 Feb 23 02:30 php
    drwxr-xr-x   4 root root  4096 Feb 22 05:44 scripts
    drwxr-xr-x   4 root root  4096 Feb 22 05:44 standard_cgis
    drwxr-xr-x   2 root root  4096 Feb 22 05:44 sv
    -rwx------   1 root root  8190 Feb 22 05:44 uninstall
    
     
  14. falko

    falko Super Moderator Howtoforge Staff

    Looks ok, too. Can you check again if there are web sites missing in Vhosts_ispconfig.conf?
     
  15. Glorfindel

    Glorfindel New Member

    The Vhosts_ispconfig.conf file looks the same as when I posted, cept it has a t2.glorf.com that I added later on. The two original sites before the problem started are still missing.
     
  16. falko

    falko Super Moderator Howtoforge Staff

    And you can see these two sites in ISPConfig, and they're not in the recycle bin?
    Did you change anything manually in the ISPConfig database?
     
  17. Glorfindel

    Glorfindel New Member

    yes

    yes

    no
     
  18. falko

    falko Super Moderator Howtoforge Staff

    What about this line from the ISPConfig log:

    Code:
    25.02.2006 - 04:13:09 => DEBUG - The name  www.glorf.com  is already in use by another site or domain.<br>The Domain belongs to another client.<br><br> <a href='../../isp_manager/frame_start.php?'>Next &gt;&gt;</a>
    It seems there's already another site using www.glorf.com (maybe on the Co-Domains tab or in the recycle bin).
     
  19. Glorfindel

    Glorfindel New Member

    I am not sure, but I think that error was from an attempt to create another www.glorf.com in the admin panel just to see if it would let me since the original doesn't seem to work :(
     
  20. Glorfindel

    Glorfindel New Member

    Although I really want to know the cause of this problem so that it doesn't happen again, I really need to get these websites back up quick. I finally decided to try deleting them and adding them once again. I find that they will not remove from the recycle bin though, even after I restart the server machine.

    If I were to delete the sites, would it delete all the http files and folders and the MySQL databases or would those remain so that I could transfer between them?

    Oh, and the two new test sites I added were able to be deleted just fine by the way.


    EDIT:
    I have been able to fix one of my pages, and I think I can use the same method to fix the other... but I am a little worried that this same random error may occur again since I never was able to figure out what caused it in the first place, and I obviously can't go thru the SQL to remove parts and setup all the SQL databases by hand every time it does... I guess i'll let it go until it happens again (hopefully it doesn't!)
     
    Last edited: Feb 28, 2006

Share This Page