1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

several issues while trying to upgrade to 8.0

Discussion in 'Plesk for Linux - 8.x and Older' started by Forza, Mar 31, 2006.

  1. Forza

    Forza Guest

    0
     
    Ive been trying to upgrade to 8.0 for the last 2 days but still no luck. i removed spamassassin, installed it again, upgraded via plesk etc. etc. but mail still dont work and now i got other errors as well.


    php safe mode is turned on for all domains and this bring along a lot of errors. Can someone tell me how to turn this off again. I read somewhere it was in the vhost.conf file in a domain. but i can only find it in one domain, which is an empty domain....
     
  2. Inaba

    Inaba Guest

    0
     
    You can turn off safe mode on all your domains (or whichever ones you want) in bulk by going to "Domains" from the CP. Then select the domains you want to change the safe_mode status on... then click the "Group operations".

    Select the safe_mode radio button and apply the changes.
     
  3. Forza

    Forza Guest

    0
     
    thanks only the safe_mode option dont show in the group operations menu... any ideas?
     
  4. Inaba

    Inaba Guest

    0
     
    If you're running Plesk 8.0.0, it should be there, under the "hosting" header, just under the PHP Support option.

    If it's not there, then you have a botched Plesk 8.0.0 upgrade or something.

    You should have a bunch of drop down boxes, then a "Hosting" block, which is where it's located. Under the "Hosting" block, there should be a "Preferences" block. It should be 5 lines up from the "Preferences" block.
     
  5. Forza

    Forza Guest

    0
     
    the problem is my server won't update to plesk 8.0 and now its kinda messed up. mail dont work, php safe mode is suddenly turned on, and i dont get email status reports when (trying) to update the machine.

    anyhow i followed this:

    EDIT: I changed

    <Directory /var/www/vhosts/domain.com/httpdocs>
    php_admin_value safe_mode Off
    </Directory>

    into

    <Directory /home/httpd/vhosts/domain.com/httpdocs>
    php_admin_value safe_mode Off
    </Directory>


    and that works
     
  6. Inaba

    Inaba Guest

    0
     
    I believe the directive is "php_admin_flag safe_mode off"

    Not php_admin_value

    At least, that's the way it works for my system.
     
  7. DCoats

    DCoats Guest

    0
     
    how are you guys using php_admin_flag and or php_admin_valuse with plesk8 ?
    I read....
    suphp doesn't support the php_flag, php_value, php_admin_value, and
    php_admin_flag directives. Primarily because mod_php is no longer
    loaded after suphp is installed. Use suPHP_ConfigPath in each vHost
    and setup individual php.ini files.

    ....
    and when I try to to use them since plesk8 upgrade I get
    Invalid command 'php_admin_value', perhaps mis-spelled or defined by a module not included in the server configuration
    .. i really need to be able to set php_admin_value open_basedir anyones help would be appreciated.
     
  8. Inaba

    Inaba Guest

    0
     
    It's set on a per domain basis in the vhost.conf file within the conf directory for each domain.
     
  9. DCoats

    DCoats Guest

    0
     
    Well I know where its set, They have been set for years. But since the upgrade to plesk8 apache doesnt know those variables. I get the above output..

    Inaba are you actually using plesk8 yet?
     
  10. Inaba

    Inaba Guest

    0
     
    Yes, I'm using Plesk 8.0.0.

    I just looked again... the variables are stored in the conf directory in the httpd.include file now.

    Here's an example of one of my domains that's working properly:

    Code:
            <IfModule sapi_apache2.c>
                    php_admin_flag engine on
                    php_admin_flag safe_mode off
                    php_admin_value open_basedir "/home/httpd/vhosts/xxxxxx.org/subdomains/xxxxx/httpdocs:/tmp"
            </IfModule>
            <IfModule mod_php5.c>
                    php_admin_flag engine on
                    php_admin_flag safe_mode off
                    php_admin_value open_basedir "/home/httpd/vhosts/xxxxxx.org/subdomains/xxxxx/httpdocs:/tmp"
            </IfModule>
    
     
  11. DCoats

    DCoats Guest

    0
     
    ok now Im really curious, how you got those in there, since that file is written by psa itself when changes are made in the panel. So If i add them there they will be overwritten when a change is made via the panel.

    am I right?

    # ATTENTION!
    # DO NOT MODIFY THIS FILE OR ANY PART OF IT. THIS CAN RESULT IN IMPROPER PLESK
    # FUNCTIONING OR FAILURE, CAUSE DAMAGE AND LOSS OF DATA. IF YOU REQUIRE CUSTOM
    # MODIFICATIONS TO BE APPLIED TO THE CONFIGURATION, PLEASE, PERFORM THEM IN THE
    # FOLLOWING FILE(S):
    # /usr/local/psa/home/vhosts/domain.com/conf/vhost.conf
    # /usr/local/psa/home/vhosts/domain.com/conf/vhost_ssl.conf
    # /usr/local/psa/home/vhosts/domain.com/subdomains/<subdomain-name>/conf/vhost.conf
     
  12. Inaba

    Inaba Guest

    0
     
    Hmmm... you're probably right. I don't know how to force Plesk to put them in there, or how one would go about modifying them.
     
  13. DCoats

    DCoats Guest

    0
     
    I compaired the new httpd.conf to the old httpd.conf
    and the new one written by plesk8 upgrade was
    <IfDefine PHP4>
    LoadModule php4_module libexec/libphp4.so
    </IfDefine>
    <IfDefine PHP5>
    LoadModule php5_module libexec/libphp5.so
    </IfDefine>

    and the old one was simply

    LoadModule php4_module libexec/libphp4.so

    so I added the libphp4.so module line w/o the IfDefine
    and I can add these statements back into vhost.conf's now.
     
Loading...