allow url fopen, magic quotes gpc, etc.

I start to get crazy, Foot in mouth

After a difficult installation of Dolphin 7.0.8 i realized that my host, 1&1 does not provide Cron Jobs in my package. It is just the beginning, at least i know what to do...

 

1) Then i want to write an article, it does not work, i want to test the membership, so i created one, its photo does not upload... at both cases a white page says that error 404 and whatever...

 

2) Now i went to the Admin tools and at audit it says :

  • allow_url_fopen = Off - FAIL (must be = On)
  • allow_url_include = Off - OK
  • magic_quotes_gpc = On - FAIL (must be = Off)
  • memory_limit = 94371840 - FAIL (must be >= 134217728)
  • post_max_size = 8388608 - FAIL (must be >= 52428800)
  • upload_max_filesize = 41943040 - FAIL (must be >= 52428800)

which is very strange because at the installation for example everything was alright, and i even made an phpinfo.php file who shows magic_quotes_gpc is OFF. In spite of the fact, the Admin tool php info shows magic_quotes_gpc ON.

In the forum there is any stable/sure solution :

I tried to make a php.ini, it does not work...

I tried to add lines into .htaccess of the root :

Options -MultiViews -Indexes

<IfModule mod_php4.c>
    php_flag register_globals Off
    php_flag magic_quotes_gpc Off
    php_flag allow_url_fopen = On
</IfModule>
<IfModule mod_php5.c>
    php_flag allow_url_include Off
    php_flag register_globals Off
    php_flag magic_quotes_gpc Off
    php_flag allow_url_fopen = On
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /

etc...

Nothing...

 

3) a new shit was born too, How can i arrange memory limit (memory limit of what ??), post max size (of the articles ??) and upload max size (of the photos ??) ?

 

Thanks for your kind help, if you have ideas...

Igor

Quote · 5 Nov 2011

the installation pre-check is based on minimal requirements. the admin tools server audit is a bit more defined in what is required of dolphin. since all seemed to have failed, this is a classic case of your choice in hosting packages not coming into compliance with the developers recommended server requirements. 

 

the questions you have asked here would be better suited if you were to submit a ticket to your hosting service provider. 

 

since they are disallowing cron jobs on your package, i would say just from that information alone, you need to look at another service provider, this one is most likely not going to work. 

 

on the matter of writing articles, if you are getting a 404, this would in most cases be attributed to mod_rewrite not being enabled. which is cron jobs are disabled, i would think any other required modules would be disabled as well. i have never, and i mean never, heard of a hosting service that disallowed cron jobs. 

 

so where i wont say 1&1 is the problem, the problem is directly related to the hosting package you have opted for, and most likely dolphin is not going to run on that package. 

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 5 Nov 2011

DosDawg is right, if 1&1 doesn't allow you to change those settings you're wasting your time trying to get Dolphin to work, and yes the cron job thing alone is a deal breaker.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 5 Nov 2011

I would suggest you read this. The host you choose for dolphin must meet these requirements.

http://www.boonex.com/trac/dolphin/wiki/DolTech

Second. The server will require certain php.ini settings. Normally that can be done by creating a php.ini file in the root of your dolphin site containing the following.

safe_mode = Off
allow_url_include = Off
allow_url_fopen = On
register_globals = Off
upload_max_filesize = 1000M
post_max_size = 2000M
memory_limit = 512M
max_input_time = 30000
max_execution_time = 30000
short_open_tag = On


Then you can also read this which will contain info on cron jobs.

http://www.boonex.com/trac/dolphin/wiki/DetailedInstall



However you said your hosting does not allow cron jobs, and that creating a php.ini file did not work. You must be able to do both. If you can't then you will not get dolphin running on that host. Time to find another.

https://www.deanbassett.com
Quote · 5 Nov 2011

 @deano,

i am going to defend 1&1 on this, its not the host, its the package he opted for. i have managed accounts on 1&1 with dolphin installed, on all environments that were compatible with dolphin, shared, VPS, and dedicated. 

its not the host, its the package. 

I would suggest you read this. The host you choose for dolphin must meet these requirements.

http://www.boonex.com/trac/dolphin/wiki/DolTech

Second. The server will require certain php.ini settings. Normally that can be done by creating a php.ini file in the root of your dolphin site containing the following.

safe_mode = Off
allow_url_include = Off
allow_url_fopen = On
register_globals = Off
upload_max_filesize = 1000M
post_max_size = 2000M
memory_limit = 512M
max_input_time = 30000
max_execution_time = 30000
short_open_tag = On


Then you can also read this which will contain info on cron jobs.

http://www.boonex.com/trac/dolphin/wiki/DetailedInstall



However you said your hosting does not allow cron jobs, and that creating a php.ini file did not work. You must be able to do both. If you can't then you will not get dolphin running on that host. Time to find another.

 

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 5 Nov 2011

I am sure it is. I have heard of others hosting there as well.

I just took a look at the packages. Must have the 4.99 package.

Alrighty, an upgrade seems to be needed then.

https://www.deanbassett.com
Quote · 5 Nov 2011

I will post here since I have some similar issues and have 1and1.com. I have searched through the forums and have not found the definitive answer.

I am confused.. when I run http://www.n2lv.org/phpinfo.php the page reports everything is fine.

  • allow_url_open = on
  • magic_quotes_gpc = off
  • memory_limit = 512
  • post_max_size = 2000M
  • upload_max_filesize = 1000M

However, when I run Audit in Admin tools I get the following errors.

PHP: 5.2.17 - OK

  • allow_url_fopen = Off - FAIL (must be = On)
  • allow_url_include = Off - OK
  • magic_quotes_gpc = On - WARNING (should be = Off)
  • memory_limit = 94371840 - FAIL (must be >= 134217728)
  • post_max_size = 8388608 - WARNING (should be >= 52428800)
  • upload_max_filesize = 41943040 - WARNING (should be >= 52428800)
  • register_globals = Off - OK


And to comment about the cronjobs for 1and1. I simply followed the instructions, opened my secure shell and typed crontab -e and edited the crontab file with the info given during the instructions and it worked, except it flooded my email telling me to upgrade php and allow_url_fopen was set to off.  I believe if I can fix the above miscommunication between dolphin and the server this will go away.

So if anyone can tell me why my phpinfo.php is reporting everything is ok and the audit says otherwise, it would be greatly appreciated. I also get  the following errors when I open the Admin Tools panel. But I am assuming this is because fopen error.

Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /homepages/35/d405166167/htdocs/inc/classes/BxDolAdminTools.php on line 565

Warning: file_get_contents(http://rss.boonex.com/) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /homepages/35/d405166167/htdocs/inc/classes/BxDolAdminTools.php on line 565

Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /homepages/35/d405166167/htdocs/inc/classes/BxDolAdminTools.php on line 574

Warning: file_get_contents(http://www.php.net/releases/index.php?serialize=1) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /homepages/35/d405166167/htdocs/inc/classes/BxDolAdminTools.php on line 574

Warning: Cannot modify header information - headers already sent by (output started at /homepages/35/d405166167/htdocs/inc/classes/BxDolAdminTools.php:565) in /homepages/35/d405166167/htdocs/inc/admin_design.inc.php on line 56


Thanks in advance.

Quote · 21 Mar 2012

Try this.

Copy your php.ini that you have in the root of your dolphin site to the dolphin administraion folder then run the audit in dolphin again.

If the values now pass that would meen you have one of those servers where a PHP.INI file must exist in every folder. That will be a pain in the neck to do but some servers are controled on a per directory basis and having a single php.ini in the root of the website is not enough. In those cases one must exist in every folder in your dolphin install.

https://www.deanbassett.com
Quote · 21 Mar 2012

I will try that because I believe you are correct as in the 1and1 admin panel you can change the PHP local settings however you must select a directory also.  Thanks I'll report back.

Quote · 21 Mar 2012

THAT'S IT!! I copied the attached ini file to the administration directory.. Thank you very much!

  • PHP: 5.2.17 - OK
    • allow_url_fopen = On - OK
    • allow_url_include = Off - OK
    • magic_quotes_gpc = Off - OK
    • memory_limit = 536870912 - OK
    • post_max_size = 2097152000 - OK
    • upload_max_filesize = 1048576000 - 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
    • php module: json = json - OK
    • php module: openssl = openssl - OK
    • php module: mysqli = mysqli - OK
    • php module: ftp = ftp - OK
php.ini · 272B · 306 downloads
Quote · 21 Mar 2012

Remember. That just corrects it for the admin directory.

You must do this for ALL dolphin folders or you will run into problems with dolphin.

https://www.deanbassett.com
Quote · 21 Mar 2012

Understand.. Thanks again!

You wouldn't happen to know a command line (linux) to copy this file to all directories?

Quote · 21 Mar 2012

There are actually a few folders where the php.ini should not be placed.

The following two commands will copy the php.ini then remove the ones that should not be there.

First run this from a shell while in the dolphin root folder.

find ./ -type d -exec cp php.ini {} \\;

Then run this one.

rm -rf ./flash/modules/*/skins/php.ini ./flash/modules/*/langs/php.ini ./modules/boonex/forum/install/langs/php.ini ./modules/boonex/forum/integrations/base/langs/php.ini

Courtesy of IgorL from this mod. http://www.boonex.com/m/Permissions_change_and_php_ini_for_CGI


https://www.deanbassett.com
Quote · 21 Mar 2012

find ./ -type d -exec cp php.ini {} \\;  reported an error (find: missing argument 'exec').. but the other worked.. Thanks

Quote · 22 Mar 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.