Need Magic_quotes turned off for Joomla

Web hosting discussion, programming, and shared and dedicated servers.
6 posts Page 1 of 1
by wifi_wash » Wed Apr 23, 2014 2:30 pm
Hi,
I just called Sonic.net support, and they had me go here to post the issue:

I am attempting to install a fresh Joomla install, but unfortunately magic_quotes is turned on in Sonic.nets php.ini file. Magic_quotes must be disabled in order for Joomla install to proceed.

I tried adding it to the .htaccess file, but it does not pick it up (php_flag magic_quotes_gpc off).

I tried to fool joomla by adding a php.ini file in the installation and joomla root folder with "magic_quotes_gpc = Off"...that did not work either.

I don't see a cpanel to edit php.ini file to disable magic_quotes in member tools.

Can you please help disable magic_quotes for wifi_wash?

Thank you
by wifi_wash » Wed Apr 23, 2014 2:32 pm
I forgot to login with my above post...
by wifi_wash » Wed Apr 23, 2014 3:16 pm
I attempted to follow the directions for a custom php.ini at : https://wiki.sonic.net/wiki/Php5

I tried the below steps other than step A, because I am not using a command line or a shell. I copied the php.ini file and placed it into my own cgi directory, and then added the updated handler, and that did not work....I am assuming because of the "symbolic link" from step A not being done...Can someone expand on how to do step a) since I am not using a command line anything. Getting frustrated here. Thanks.
Custom php.ini file (optional)
This configuration reads the PHP configuration from the file /usr/local/lib/httpd/cgi-bin/php.ini If you want to use your own custom php.ini file with your own custom settings, perform the following steps:

a) At the command line on shell.sonic.net create a symbolic link in your cgi directory using the command
ln -s /opt/php5/bin/php ~/public_cgi/php5


b) Copy the php.ini file into your cgi directory
cp /usr/local/lib/httpd/cgi-bin/php.ini ~/public_cgi/

c) Edit the file ~/public_cgi/php.ini to make whatever customizations you want

d) In your .htaccess file replace the reference to /cgi-bin/php5 to be the one you just created in your own cgi directory, i.e.
AddHandler php-cgi .php
Action php-cgi /cgi-bin/USERNAME/php5
where you substitute your Sonic.net user name for USERNAME
by cdkeen » Thu Apr 24, 2014 12:38 pm
The .htaccess directive was not totally correct: It needed to be set to Off instead of 0; But I updated your .htaccess file to call PHP 5.5, instead of 5.3, which has Magic quotes off. Let me know if you need additional assistance by replying to this thread. Thanks for choosing Sonic.net!
cdkeen - Sonic.net System Operations
by wifi_wash » Thu Apr 24, 2014 1:14 pm
Thank you VERY much cdkeen, I really appreciate your assistance in your explanation and resolution.
by cdkeen » Thu Apr 24, 2014 3:13 pm
Thank you!
cdkeen - Sonic.net System Operations
6 posts Page 1 of 1