• 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

how to turn off php safe mode

S

starving_artist

Guest
Whats up,

I am trying to set up a php module (photogallery) and I get the following message:

'safe_mode' need to be Off. Please request your server administrator to modify the configurations for you. \

How do I go about this?

Thanks
 
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
 
thanks but would you or any one else possibly be able to explain that in lamen (sp?) terms. I'm not sure what any of that means....
 
hi,

please tell me why putty comes with the following error if i try to make this :

then run

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


the error is like ... error with newline ...

or sth.

please tell me how to make this correct !

- i couldnt find it anywhere !

Thank you SWsoft !


greetz ibor
 
hi yes i have ... but the domain name contains chars like "." "-" etc. - is that the problem ?

please give me answer ... im sitting here since yesterday only to find a way to get rid off safe_mode ... - its really important for me caus emy scripts wont run ...

THX for your support !

BTW: how to run it with putty - just the path - or do i have to make other commands ?
 
hi,

if theres no other opportunity ... i have a problem ... my problem is to get rid off safe_mode - i know how to change th php.ini - after apache restart - php safe_mode is displayed as off - but in configure commands its still on - so

HOW To change the php configure command settings of plesk 7.5.4 reloaded with the ssh client putty --- it would be very very nice - if someone would give me any answer - please give answer !


THX !!!!!!


greetz ibor
 
ok . i think i found the mistake ^^

i thought i have to write :

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

and not :

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


- now my problem is solved - thx!

greetz ibor
 
Ok I think I understand most of this...but by problem not is that plesk won't let me make any changes to my conf file, it says permission denied...wtf

how can i gain access to this file?
 
you need to become root to edit these files. Login with SSH and type "su -" and enter the root password.
 
hi,

you get that error cause you try to run

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

but thats wrong --- you have to edit and/or make new file ... just read the following :

to edit a file u have to use an editor ... vi or pico ... so try the following with your ssh client :

vi /var/www/vhosts/domain.com/conf/vhost.conf


and then if you get a new screen ... with a look like an editor Oo - press i for insert and insert the stuff whats is here ... :

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

after it press "ESC" and after that ... press "!!" - (with putty ^^)

and then there has to be a new line under the editor .. like this

:

here type "wq" - and then <enter> .

now just call the other one :

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

without any prefix ... and then restart apache .. in plesk - thats easier than to make it with ssh ^^

- greetz from ibor
:cool:

PS: if this helps you to disable safe_mode - just let me know - http://robert-beran.de/guestbook.php ;)
 
after all the crazy things i have tried this actually worked. thanks for the help everybody

i'll be back soon to harass everyone about my smtp problems
 
Back
Top