I am using MAMP and localhost to test and develop a site in joomla 3.0.
I have made a php.ini file with two lines:
Code: Select all
magic_quotes_gpc = Off
session.save_path = "/tmp"
Code: Select all
Magic Quotes GPC Off No
Thanks
Moderator: General Support Moderators
Code: Select all
magic_quotes_gpc = Off
session.save_path = "/tmp"
Code: Select all
Magic Quotes GPC Off No
Code: Select all
Verify in System information PHP Settings whether the php.ini is loaded.
Code: Select all
If not, use .htaccess : SetEnv PHPRC /path /to/php.ini
http://www.crained.com/488/mamp-how-to- ... -ini-file/...
First. Where is the php.ini file located?
/Applications/MAMP/bin/php/php5.2.17/conf/php.ini
or
/Applications/MAMP/bin/php/php5.3.6/conf/php.ini
Select phpInfo on your start screen of MAMP to see which version is running on your machine before editing. Or you may end up editing the wrong php.ini file and compounding the problem. (It’s right at the top of the page next to Start) Once on the phpInfo page do a search for “php.ini” and look at the file location.
Second, Depending on your php.ini settings, everyone uses different ones, you MUST restart MAMP for the changes to show up. This is what was making me crazy. I made the changes, refreshed the phpInfo page and nothing changed. But, restarting MAMP and all of the sudden they were all fixed. Makes sense, but not until after I figured it out.
Code: Select all
Configuration File (php.ini) Path /Applications/MAMP/conf/php5.3
Loaded Configuration File /Library/Application Support/appsolute/MAMP PRO/conf/php.ini
Code: Select all
magic_quotes_gpc = Off
session.save_path = "/tmp"