Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd March 2008, 16:16
findafriend findafriend is offline
Member
 
Join Date: Apr 2007
Posts: 49
Thanks: 10
Thanked 3 Times in 3 Posts
Default Problems with php safe mode on, can't turn it off

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
Reply With Quote
Sponsored Links
  #2  
Old 2nd March 2008, 16:43
findafriend findafriend is offline
Member
 
Join Date: Apr 2007
Posts: 49
Thanks: 10
Thanked 3 Times in 3 Posts
Default

Ok i tried the following :

http://www.webhostgear.com/166.html

No one of the methods work after a restart.

what now ?
Reply With Quote
  #3  
Old 2nd March 2008, 17:19
findafriend findafriend is offline
Member
 
Join Date: Apr 2007
Posts: 49
Thanks: 10
Thanked 3 Times in 3 Posts
Default

The script giving these problem despite both php safe mode have been turned on (or do isp config overwrite these permissions ?) is websitebaker.

Also have the file permissions been set to highest as possible to test it, but that didnt work either.

Anyone in for a suggestion ?
Reply With Quote
  #4  
Old 2nd March 2008, 17:39
findafriend findafriend is offline
Member
 
Join Date: Apr 2007
Posts: 49
Thanks: 10
Thanked 3 Times in 3 Posts
Default

Ok some more errors :

websitebaker :

Pages :
Warning: main() [function.main]: SAFE MODE Restriction in effect. The script whose uid is 33 is not allowed to access ../config.php owned by uid 10092 in /var/www/web70/web/pages/billeder.php on line 3

Warning: main(../config.php) [function.main]: failed to open stream: Success in /var/www/web70/web/pages/billeder.php on line 3

Fatal error: main() [function.require]: Failed opening required '../config.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/web70/web/pages/billeder.php on line 3

Templates


Warning: main() [function.main]: Unable to access /var/www/web70/web/temp/unzip/info.php in /var/www/web70/web/admin/templates/install.php on line 61

Warning: main(/var/www/web70/web/temp/unzip/info.php) [function.main]: failed to open stream: No such file or directory in /var/www/web70/web/admin/templates/install.php on line 61

Fatal error: main() [function.require]: Failed opening required '/var/www/web70/web/temp/unzip/info.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/web70/web/admin/templates/install.php on line 61
Reply With Quote
  #5  
Old 3rd March 2008, 10:22
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,461
Thanks: 813
Thanked 5,241 Times in 4,108 Posts
 
Default

To turn safe mode off for a website, just disable the PHP Safemode checkbox in the settings of the website. Never change something in /etc/apache/vhosts/Vhosts_ispconfig.conf, it will get overwritten.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Freebsd 6.1 support misterm Installation/Configuration 10 9th April 2009 09:29
network issues now it says "401 The web site is blocked by administrator" Check General 3 26th February 2008 14:22
Apache2 Freezes celtic Server Operation 31 28th May 2007 17:18
squirrelmail in /usr/ - multiple domains - php safe mode brengo Installation/Configuration 2 16th March 2007 18:36


All times are GMT +2. The time now is 05:21.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.