Note that there are some explanatory texts on larger screens.

plurals
  1. PONeed to increase PHP memory_limit for specific directory NOT entire server
    primarykey
    data
    text
    <p>I'm running wordpress 2.8.6 as fcgi with safe_mode=on, on plesk9/centOS64. wordpress was installed by installatron. php.ini is being read from /etc/etc/php.ini</p> <p>I need to increase php's memory_limit, because I get many <code>mod_fcgid: stderr: PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 40961 bytes) in /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/blah/blah.php on line X</code> when I try to upgrade most WP plugins.</p> <p>Following instructions on <a href="http://www.sakinshrestha.com/wordpress/fix-php-fatel-error-for-wordpress/" rel="nofollow noreferrer">http://www.sakinshrestha.com/wordpress/fix-php-fatel-error-for-wordpress/</a>, i tried creating both a php.ini and an htaccess file and placing it in /var/www/vhosts/domain.com/httpdocs/wp-content/. It didnt work. I did not try using both files at the same time. apache was restarted each time i created those files.</p> <p>I thought not being able to use the setting per folder could be due to the fact that I am using fcgi. I switched the domain to use mod_php. Now when I try to upgrade a plugin I get a box asking for FTP login info (as seen in <a href="http://www.chrisabernethy.com/why-wordpress-asks-connection-info/" rel="nofollow noreferrer">http://www.chrisabernethy.com/why-wordpress-asks-connection-info/</a>). I put in the correct FTP login info, but when I click <em>continue</em>, the server tries to get me to <strong>download</strong> update.php.</p> <p>So now i have two questions:</p> <p>1) how do i increase memory_limit for that folder only under FCGI?</p> <p>2) how do i switch to mod_php and configure WP to NOT need FTP connection info? I tried following the instructions in the last link above, but <code>&lt;?php echo(exec("whoami")); ?&gt;</code> is blocked by <code>PHP Warning: exec() has been disabled for security reasons in /var/www/vhosts/domain.com/httpdocs/whoami.php on line 3</code>. i turned safe_mode=off but it didnt make a difference.</p> <p>arrrrghhhhh!!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload