allow_url_include is On (warning, you should have this param in Off

Hey I have been getting this error on my site: allow_url_include is On (warning, you should have this param in Off state, or your site will unsafe) , What is this from I edited the htaccess file and it is like this:

 

 

Options -MultiViews

<IfModule mod_php4.c>
    php_flag register_globals Off
</IfModule>
<IfModule mod_php5.c>
    php_flag allow_url_include Off
    php_flag register_globals Off
    allow_url_include Off
</IfModule>

<IfModule mod_rewrite.c>

 

Is there any help my domain is servergaming.net and im using Dolphin 7.0.9. My host is hosting24 and they dont allow php.ini files but you can create one what do I put in it too please help =)

 

 

John

Quote · 31 Jan 2012

John,

 

This is how you would turn it off using a php.ini file:

 

allow_url_include = Off

 

But if your host doesn't allow php.ini files how do you plan to use one??

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 31 Jan 2012

If what your saying is that your host doesn't allow you to modify the php file, but allows you to use/create your own then try the following: 

replace the directories below with your own of course

Copy the ini file:

cp /etc/php5/cgi/php.ini $HOME/example.com/cgi-bin/php.ini

Copy the cgi file:

cp /dh/cgi-system/php5.cgi $HOME/example.com/cgi-bin/php5.cgi

Add the following to the top of your .htaccess file:

Options +ExecCGI
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php5.cgi

<FilesMatch "^php5?\.(ini|cgi)$">
Order Deny,Allow
Deny from All
Allow from env=REDIRECT_STATUS
</FilesMatch>

You can then edit your copy of the php.ini file to work with dolphin. Changes need to be made in your php.ini so it meets the following parameters:

PHP: 5.2.17 - OK

  • allow_url_fopen = On - OK
  • allow_url_include = Off - OK
  • magic_quotes_gpc = Off - OK
  • memory_limit = 134217728 - OK
  • post_max_size = 134217728 - OK
  • upload_max_filesize = 134217728 - OK
  • register_globals = Off - OK
  • safe_mode = Off - OK
  • short_open_tag = On - OK
  • disable_functions = - OK
  • php module: curl = curl - OK
  • php module: gd = gd - OK
  • php module: mbstring = mbstring - OK
  • php module: xsl = xsl - OK

Take a look at this page --> http://www.boonex.com/trac/dolphin/wiki/GenDol7TShooter

Scroll to the bottom of the page. Those php settings will work.

Quote · 31 Jan 2012

I have been trying to install dolphin 7.0.9 for a few days now on a new web host but always getting the allow_url_include is On (warning, you should have this param in Off state, or your site will unsafe) So install is not possible. I have spent a lot of time researching this issue and tried a number of options mentioned out there. Some cause 500 errors, others 404 errors, but none fix the issue.

Has anyone had any experience with TELUS? They simply do not support 3rd party software and therefore will not give me the time of day. I do not use them personally but my employer will not change providers, so any tips here would be appreciated.

Jabadoo, you mention above some tips, (copy ini file and cgi file) but not sure if I am supposed to create new files with that code, then where to place them. Please clarify a bit for the newbie.

 

Quote · 29 May 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.