php settings

3 posts / 0 new
Last post
#1 Mon, 02/14/2011 - 17:28
marciano

php settings

Hello,

I have a clean virtualmin installation. I am having some problems attempting to exceed php time execution to CERTAIN admin scripts, only those. set_time_limit() is useless. It seems like there are some trick but if php is an Apache module, which is not the case here, isn't it? From a Virtual Host AddHandler fcgid-script .php AddHandler fcgid-script .php5 FCGIWrapper /home/dstonek/fcgi-bin/php5.fcgi .php FCGIWrapper /home/dstonek/fcgi-bin/php5.fcgi .php5

RemoveHandler .php RemoveHandler .php5 IPCCommTimeout 46

I don't remember I added related things here, does it make sense AddHandler, RemoveHandler ? Do you know a way to apply an exception to php defauld exec time? Thank you

Tue, 02/15/2011 - 07:22
marciano

I also don't understand some concepts in default virtualmin settings.

This is not what I am looking for but..

Virtual Server Options - PHP Php configuration value: max_execution_time 300 Apply changes

does not affect default setting 45sec

I just need to apply 300sec max execution time to only one file.

I also changed /etc/php.ini to see what happens, and nothing, still 45 secs

Tue, 02/15/2011 - 07:45
andreychek

The /etc/php.ini script is used only for mod_php, not for PHP's FCGID and CGI modes. You'd likely need to edit $HOME/etc/php.ini.

Also, you may want to try going into Server Configuration -> Website Options, and change the Default Execution Mode to CGI to rule out that you're not dealing with a FCGID issue too (it has a separate timeout). So, I'd suggest geting it working in CGI mode, then work from there :-)

-Eric

Topic locked