Edit php.ini file

The wampmanager icon, which sits in the system tray has a menu system. Use that to edit your php.ini file that is used with Apache. So its (left click ) wampmanager icon -> PHP -> php.ini It could not be simpler. EDIT/UPDATE: And now in WAMPServer 3 it has become even easier to change some … Read more

Increase max execution time for php

PHP file (for example, my_lengthy_script.php) ini_set(‘max_execution_time’, 300); //300 seconds = 5 minutes .htaccess file <IfModule mod_php5.c> php_value max_execution_time 300 </IfModule> More configuration options <IfModule mod_php5.c> php_value post_max_size 5M php_value upload_max_filesize 5M php_value memory_limit 128M php_value max_execution_time 300 php_value max_input_time 300 php_value session.gc_maxlifetime 1200 </IfModule> If wordpress, set this in the config.php file, define(‘WP_MEMORY_LIMIT’, ‘128M’); If … Read more

How can I know which ‘php.ini’ file is used?

php –ini For the webserver-SAPIs use phpinfo() Here’s some sample output: bash-3.2# php –ini Configuration File (php.ini) Path: /usr/local/php5/lib Loaded Configuration File: /usr/local/php5/lib/php.ini Scan for additional .ini files in: /usr/local/php5/php.d Additional .ini files parsed: /usr/local/php5/php.d/10-extension_dir.ini, /usr/local/php5/php.d/20-extension-opcache.ini, /usr/local/php5/php.d/40-openssl.ini, /usr/local/php5/php.d/50-extension-apcu.ini, /usr/local/php5/php.d/50-extension-curl.ini, /usr/local/php5/php.d/50-extension-gmp.ini, /usr/local/php5/php.d/50-extension-imap.ini, /usr/local/php5/php.d/50-extension-intl.ini, /usr/local/php5/php.d/50-extension-mcrypt.ini, /usr/local/php5/php.d/50-extension-mssql.ini, /usr/local/php5/php.d/50-extension-pdo_pgsql.ini, /usr/local/php5/php.d/50-extension-pgsql.ini, /usr/local/php5/php.d/50-extension-propro.ini, /usr/local/php5/php.d/50-extension-raphf.ini, /usr/local/php5/php.d/50-extension-readline.ini, /usr/local/php5/php.d/50-extension-xdebug.ini, /usr/local/php5/php.d/50-extension-xsl.ini, /usr/local/php5/php.d/60-extension-pecl_http.ini, /usr/local/php5/php.d/99-liip-developer.ini

Where can I find php.ini?

On the command line execute: php –ini You will get something like: Configuration File (php.ini) Path: /etc/php5/cli Loaded Configuration File: /etc/php5/cli/php.ini Scan for additional .ini files in: /etc/php5/cli/conf.d Additional .ini files parsed: /etc/php5/cli/conf.d/curl.ini, /etc/php5/cli/conf.d/pdo.ini, /etc/php5/cli/conf.d/pdo_sqlite.ini, /etc/php5/cli/conf.d/sqlite.ini, /etc/php5/cli/conf.d/sqlite3.ini, /etc/php5/cli/conf.d/xdebug.ini, /etc/php5/cli/conf.d/xsl.ini That’s from my local dev-machine. However, the second line is the interesting one. If there is … Read more