500 error squirellmail and phpmyadmin

Discussion in 'Installation/Configuration' started by papokergod, Dec 22, 2009.

  1. papokergod

    papokergod New Member

    First of all I would like to say it has been a while since my last visit here, but I am back again working on some stuff.

    I followed the tutorial for Fedora 12 and ISPCONFIG 3.

    after some fooling around trying to get the system to work the way I wanted to with ssl and such, I find out my webmail and phpmyadmin is not working the way I want.

    When I access via IP webmail and phpmyadmin load fine without any errors except the crt warning.

    When I load both domains that are set in ispconf that's when i get the 500 errors after the crt warning. This is only over https. Which I know is working correctly as I can access the html via both http and https without problems.

    Examining the error log i find this:
    Code:
    [Tue Dec 22 12:49:16 2009] [error] [client 192.168.80.1] SoftException in Application.cpp:221: File "/usr/share/squirrelmail/index.php" is not in document root of Vhost "/var/www/clients/client1/web3/web"
    [Tue Dec 22 12:49:16 2009] [error] [client 192.168.80.1] Premature end of script headers: index.php
    [Tue Dec 22 12:49:16 2009] [error] [client 192.168.80.1] File does not exist: /var/www/error/500.html
    [Tue Dec 22 13:05:48 2009] [error] [client 192.168.80.1] SoftException in Application.cpp:221: File "/usr/share/phpMyAdmin/index.php" is not in document root of Vhost "/var/www/clients/client1/web3/web"
    [Tue Dec 22 13:05:48 2009] [error] [client 192.168.80.1] Premature end of script headers: index.php
    [Tue Dec 22 13:05:48 2009] [error] [client 192.168.80.1] File does not exist: /var/www/error/500.html
    I have ISPCONFIG set to control the website info for the domain that the server is set to. Took a while for me to figure out how to do it and load the correct crt's, but like I said its working the way I want except webmail and phpmyadmin over https. I have no doubt this is what caused the problem as during the tutorial it was working correctly.

    As a side note once i get this working how would I redirect the http to https in phpmyadmin.

    Thanks.

    P.S. I am still a noobie with this as well.
     
  2. till

    till Super Moderator

    Do you use PHP via mod_php, cgi, fcgi or suphp in this website?
     
  3. papokergod

    papokergod New Member

    suphp for the whole server.
     
  4. papokergod

    papokergod New Member

    bump.I am still having issues with this.
     
  5. till

    till Super Moderator

    There are two solutions:

    1) The preferred solution: Dont use the phpmyadmin and squirrelmail from the linux distribution. They are installed in a shared place and you will have to deactivate a lot of security features to be able to access them from suphp. Instead create a website for phpmyadmin and install it into this website. same for squirrelmail.

    2) Disable the vhots check in suphp.conf. But this is not recommended as it is a very valuable security feature, without that, poeple might be able to access files all over your server that are outside of their website.
     
  6. papokergod

    papokergod New Member

    so two different websites, made with ispconfig or outside of that? do i make them on the servers ip or two seperate domians? seperate httpd installs as well. not sure if I follow you.
     
  7. falko

    falko Super Moderator

    You can create a new web site in ISPConfig and afterwards, you can manually install phpMyAdmin and SquirrelMail in that web site.
     

Share This Page