ispCP - Board - Support
allow_url_include = 'off' to 'on' - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: allow_url_include = 'off' to 'on' (/thread-12400.html)



allow_url_include = 'off' to 'on' - nikolas22t - 12-10-2010 04:58 AM

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


RE: allow_url_include = 'off' to 'on' - kilburn - 12-10-2010 05:39 AM

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.


RE: allow_url_include = 'off' to 'on' - nikolas22t - 12-10-2010 08:18 AM

where are located the domain php.ini files ?
Resolved

nano /var/www/fcgi/domain.com/php5/php.ini