• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

several issues while trying to upgrade to 8.0

F

Forza

Guest
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....
 
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.
 
thanks only the safe_mode option dont show in the group operations menu... any ideas?
 
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.
 
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:

add vhost.conf at /var/www/vhosts/domain.com/conf/

with the following lines:

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

then run

/usr/local/psa/admin/bin/websrvmng --reconfigure-vhost --vhost-name=<domain_name>

then run

service httpd restart

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
 
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.
 
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.
 
It's set on a per domain basis in the vhost.conf file within the conf directory for each domain.
 
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?
 
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>
 
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
 
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.
 
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.
 
Back
Top