Problem turning safe mode off

Discussion in 'Installation/Configuration' started by findafriend, Mar 2, 2008.

  1. findafriend

    findafriend New Member

    Hi

    I have tried in the Apache Directives for the user to turn safe mode off by writing one of the two lines (not at same time) :

    php_admin_flag safe_mode Off
    php_flag safe_mode off

    I have looked into /etc/apache/vhosts/Vhosts_ispconfig.conf

    And can see that the lines are written to disc.
    i have also tried to restart apache inside the control panel to turn safe mode off for one site only, but whatever I try websitebaker (which im trying to install) says safe mode it turned on, and I need it turned off for this site.

    I have also tried to manually edit Vhosts_ispconfig.conf for the site. save it and restart apache from the controlpanel, but nothing seems to work. Websitebaker says, that PHP safe mode is turned on.

    How do i turn it off ?
    By the way Till, you have made this installation, there where problems with the site running php 5, so you turned that on to let it run php 4, but that should not have to do with this ?

    Ok i have just tried to install websitebaker and it gave me the following errors :

    Warning: fopen() [function.fopen]: SAFE MODE Restriction in effect. The script whose uid is 10092 is not allowed to access /var/www/web70/web/pages/posts owned by uid 33 in /var/www/web70/web/modules/news/install.php on line 164

    Warning: fopen(/var/www/web70/web/pages/posts/index.php) [function.fopen]: failed to open stream: No such file or directory in /var/www/web70/web/modules/news/install.php on line 164

    Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/web70/web/modules/news/install.php on line 165

    Warning: fclose(): supplied argument is not a valid stream resource in /var/www/web70/web/modules/news/install.php on line 166

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/web70/web/modules/news/install.php:164) in /var/www/web70/web/framework/class.login.php on line 304

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/web70/web/modules/news/install.php:164) in /var/www/web70/web/framework/class.login.php on line 146

    sincerely

    MJ
     
    Last edited: Mar 2, 2008
  2. topdog

    topdog Active Member HowtoForge Supporter

    PHP safe mode is a security mechanism, you cannot override it using the php_flag otherwise it would have no use if the admin sets safe mode then you are allowed to override it.

    The only way you can turn of PHP safe mode is to edit the system php.ini file.
     

Share This Page