| Author |
Message |
bbuster79
Joined: 17 Oct 2011
Posts: 19
|
| Posted: Thu Feb 02, 2012 11:08 am Post subject: Trouble Finding php.ini |
|
|
I have an xml importing script that's timing out. I've tried calling the set_time_limit() function inside the script, set to 90 secs, but it looks like it's still defaulting to 30 secs.
So I'm trying to find the php.ini script to configure the max_execution_time and max_input_time settings, but I'm having trouble locating its parent directory.
Any help would be most appreciated! |
|
| Back to top |
|
bbuster79
Joined: 17 Oct 2011
Posts: 19
|
| Posted: Thu Feb 02, 2012 11:18 am Post subject: |
|
|
| Sorry I should've also mentioned I'm running Ubuntu 11.04 |
|
| Back to top |
|
lakridserne
Joined: 31 Jan 2012
Posts: 8
|
| Posted: Thu Feb 02, 2012 11:24 am Post subject: |
|
|
By running the following command on the command line interface (CLI), you can get the path to php.ini
Code: php -i | grep php.ini |
|
| Back to top |
|
bbuster79
Joined: 17 Oct 2011
Posts: 19
|
| Posted: Thu Feb 02, 2012 12:39 pm Post subject: |
|
|
| Great. Found it. Thank you. |
|
| Back to top |
|
hybinet
Joined: 02 May 2008
Posts: 1058
|
| Posted: Thu Feb 02, 2012 5:58 pm Post subject: |
|
|
lakridserne wrote: By running the following command on the command line interface (CLI), you can get the path to php.ini
Code: php -i | grep php.ini
To anyone who might come across this thread later:
On Ubuntu, the command above will probably return /etc/php5/cli/php.ini, which is NOT the same file that is used for processing web requests. In fact, setting max_execution_time in cli/php.ini will not have any effect even for command-line scripts.
If you use Apache with mod_php, the relevant file is /etc/php5/apache2/php.ini.
If you use CGI or FastCGI, it's /etc/php5/cgi/php.ini.
If you use FPM, it's /etc/php5/fpm/php.ini.
If you followed some odd tutorial, it could be anywhere. |
|
| Back to top |
|
| |