I’ve looked through the wiki on how to create a custom php.ini file for php 5.3, but I’m having issues setting the memory_limit.
I’ve followed the instructions on the following link: http://wiki.dreamhost.com/PHP.ini
Log into the panel at https://panel.dreamhost.com/index.cgi?tree=domain.manage& and change your domain to use php5.3 (probably fast cgi)
Create a directory under your user called .php, with a subdirectory called 5.3. Files under this directory will be used by all domains under that user which are set to use PHP 5.3.
Example for the terminal
Once this directory exists, there are two files you can create in it:
To add custom directives to PHP, create a file under .php/5.3/ called "phprc" and add configuration directives to it. You do not need to copy the default php.ini to this file, as it is used in addition to the system php.ini; if a directive appears in both files, the one in this file will take precedence.
In my phprc file i’ve added the following lines:
The zend_extension gets picked up and verified in the phpinfo(), however, the memory_limit doesn’t change to 128M. Is there another way to change the memory limit? Or is changing it in the phprc file not the correct approach. There was another post that stated that all the commands except init_set of the memory_limit worked.
Btw: here is the phpinfo() - http://peachjar.com/phpinfo.php
Any Advice Appreciated,