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 11th May 2006, 16:16
heri heri is offline
Junior Member
 
Join Date: May 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Apache Directives vs PHP Safe Mode

Hi all,
i'm new to ispconfig and first of all thanks to the developers of ispconfig for doing a great job!

Just installed a first test-site and have two questions:

1. the way of handling "PHP Safe Mode" is very strict: if i check it it puts several fixed values at the end of the vhost. So they override "Apache Directives". If i uncheck, they explicitly set safe-mode off, also overriding the "Apache Directives".
Because i need special openbasedirs etc. i had to edit the /root/ispconfig/scripts/lib/config.lib.php and put the {HTTPD_INCLUDE} in /root/ispconfig/isp/conf/vhost.conf.master after the {PHP}. Maybe there is a better way i dind't get till now?

2. Is there a possibility to use variables in the "Apache Directives"? I see warnings in /root/ispconfig/httpd/logs/error_log: [FastTemplate] Warning: no value found for variable: {REQUEST_FILENAME}
So i found its parsed by ispconfig/scripts/lib/classes/ispconfig_template.lib.php, but till now i could [edit]not[/edit] follow the whole way to come there
For the moment i added in /root/ispconfig/scripts/lib/config.lib.php l. 1251
Code:
$web_httpd_include = str_replace('%%%WEB%%%', 'web'.$web["doc_id"], $web_httpd_include);
but maybe its not necessary?

Thanx in advance
Helmut

Last edited by heri; 11th May 2006 at 16:33.
Reply With Quote
Sponsored Links
  #2  
Old 11th May 2006, 18:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
 
Default

Quote:
Originally Posted by heri
1. the way of handling "PHP Safe Mode" is very strict: if i check it it puts several fixed values at the end of the vhost. So they override "Apache Directives". If i uncheck, they explicitly set safe-mode off, also overriding the "Apache Directives".
Because i need special openbasedirs etc. i had to edit the /root/ispconfig/scripts/lib/config.lib.php and put the {HTTPD_INCLUDE} in /root/ispconfig/isp/conf/vhost.conf.master after the {PHP}. Maybe there is a better way i dind't get till now?
No, not yet.

Quote:
Originally Posted by heri
2. Is there a possibility to use variables in the "Apache Directives"? I see warnings in /root/ispconfig/httpd/logs/error_log: [FastTemplate] Warning: no value found for variable: {REQUEST_FILENAME}
So i found its parsed by ispconfig/scripts/lib/classes/ispconfig_template.lib.php, but till now i could [edit]not[/edit] follow the whole way to come there
For the moment i added in /root/ispconfig/scripts/lib/config.lib.php l. 1251
Code:
$web_httpd_include = str_replace('%%%WEB%%%', 'web'.$web["doc_id"], $web_httpd_include);
but maybe its not necessary?
No, you cannot use variables in the Apache Directives.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
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
"unknown filter" growing apache log. wwparrish Installation/Configuration 6 1st September 2006 18:40
Downgrade php5 to php4.4.2 llizards Installation/Configuration 4 13th March 2006 23:58
php safe mode warning sc0ut Installation/Configuration 18 22nd December 2005 23:32
PHP Safe Mode & Directory Permissions domino General 10 19th December 2005 18:38
php safe mode not working.. hagel Installation/Configuration 2 18th August 2005 10:44


All times are GMT +2. The time now is 15:19.


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