PHP installation tips

1. Install in c:\PHP (Do not put in c:\program files)
2. Use thread safe versions, VC6 for Apache, VX9 for IIS
3. Select GD2 extension and PEAR when installing
4. Save .msi file if needed later to make changes to installation.
5. Set params in php.ini as follows:
   a. cgi.force_redirect = 0 (for IIS) = 1 (for Apache)
   b. max_input_time = 6000
   c. max_execution_time = 6000
   d. default_socket_timeout = 6000
   e. date.timezone = "America/New_York" (America/Chicago, etc)
   f. error_log = "logs\php-errors.log"
   g. phar.require_hash = off (makes PEAR easier to install)
h. upload_tmp_dir = /apache/htdocs/temp (also, add this folder to /apache/htdocs)
i. add [PHP_MYSQLI]

extension=php_mysqli.dll
j. set: memory_limit = 1024M
6. copy php.ini c:\windows 7. restart web server. 8. check status with phpinfo.php 9. set web root folder for: a. execute and write permission for anon user b. .php extensions should execute .dll in c:\PHP c. MIME types needed for .ini, .xml, .sql 10. execute permission needed for anon user in c:\php 11. PEAR install 12. after PEAR install a. pear list (to see if PEAR is working correctly) b. pear install -a MAIL-1.2.0 c. pear install -a Mail_Mime-1.8.8 d. pear install -a Net_SMTP-1.6.2

If no internet connection is available, PEAR packages can be installed from downloaded .tgz files.
If doing this, then http://pear.php.net/channel.xml must be placed in the PHP folder first.
also

1. GD image library
http://php.net/manual/en/image.installation.php

To test, use in eval page (below): gd_info();
2. cURL network requests library
http://php.net/manual/en/intro.curl.php
http://php.net/manual/en/curl.requirements.php
http://php.net/manual/en/curl.installation.php


To test if curl is installed, run this statement:
$ok = curl_init();
on the eval page: http://www.jargonsoft.com/Jargon_Licenses/adm_eval1.php



For IIS Fast CGI installations



If IIS is desired instead of Apache, use:  http://php.net/manual/en/install.windows.iis7.php

Article Details

Article ID:
1
Category:
Date added:
2010-12-06 19:31:20
Views:
4,593
Rating (Votes):
(718)