Current time: 04-19-2024, 02:03 PM Hello There, Guest! (LoginRegister)


Post Reply 
allow_url_include = 'off' to 'on'
Author Message
nikolas22t Offline
Junior Member
*

Posts: 16
Joined: Nov 2009
Reputation: 0
Post: #1
allow_url_include = 'off' to 'on'
How i can enable allow_url_include = 'off' in ispcp for all hosted accounts ? Which file i have to edit ? i found 20 files to contain this value.

I understand the security risk , but i want to enable it, i am running 1.0.7 ispcp on Ubuntu 10.4 TLS
12-10-2010 04:58 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: allow_url_include = 'off' to 'on'
You should change the template file (found in /etc/ispcp/fcgi/parts). Anyway, this is *not* going to affect already-created domains, but only new ones. For the currently created domains, the easiest solution is to carve out a sed one-liner and perform the replacement on the domains' php.ini files.

Something like (Warning: it's a single line, and it's untested!!):
Code:
for f in `find /var/www/fcgi -name 'php.ini'`; do sed -i'' 's/allow_url_include = Off/allow_url_include = On/g' $f; done

Don't forget to restart apache afterwards.
12-10-2010 05:39 AM
Visit this user's website Find all posts by this user Quote this message in a reply
nikolas22t Offline
Junior Member
*

Posts: 16
Joined: Nov 2009
Reputation: 0
Post: #3
RE: allow_url_include = 'off' to 'on'
where are located the domain php.ini files ?
Resolved

nano /var/www/fcgi/domain.com/php5/php.ini
(This post was last modified: 12-10-2010 08:24 AM by nikolas22t.)
12-10-2010 08:18 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)