note 80517 added to install
| From: | bobfathome at osu1 dot php dot net | Date: | Sun, 20 Jan 2008 04:36:11 +0000 |
| Subject: | note 80517 added to install | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-135247@lists.php.net to get a copy of this message | ||
I installed PHP 5.2.5 on Apache 2.2 with MySQL 5.0 using the following steps:
install apache
install php to "c:\program files" or to "c:\".
insert this line into httpd.conf if not already there (the slash at the end is optional and you can
have spaces in your directory path name):
PHPIniDir "C:/program files/php"
or
PHPIniDir "C:/php"
I had problems starting apache because of a bad php.ini file that was downloaded with the msi
install package so i found a link on the install page:
http://www.php.net/manual/en/configuration.php
to copy the php.ini from the cvs source directory:
http://cvs.php.net/viewvc.cgi/php-src/php.ini-dist?view=co
This php.ini has a different format and worked first shot with apache and with command line access
to php. It doesn't have MYSQL enabled so i had to add two extensions to php.ini in the dynamic
extensions section - not at the bottom:
extension=php_dbx.dll
extension=php_mysql.dll
Lastly, I had to add two directories to my path and reboot:
set PATH=c:\program files\php;c:\program files\php\ext;%PATH%
After rebooting Apache picked up the new php.ini and the mysql extensions. To verify your install:
<?php phpinfo(); exit(); ?>
and search for dbx and mysql. also, make sure your path shows up properly in the environment
section and that php.ini was found at the top of the page.
----
Server IP: 69.147.83.197
Probable Submitter: 68.183.136.193
----
Manual Page -- http://www.php.net/manual/en/install.php
Edit -- https://master.php.net/note/edit/80517
Del: integrated -- https://master.php.net/note/delete/80517/integrated
Del: useless -- https://master.php.net/note/delete/80517/useless
Del: bad code -- https://master.php.net/note/delete/80517/bad+code
Del: spam -- https://master.php.net/note/delete/80517/spam
Del: non-english -- https://master.php.net/note/delete/80517/non-english
Del: in docs -- https://master.php.net/note/delete/80517/in+docs
Del: other reasons-- https://master.php.net/note/delete/80517
Reject -- https://master.php.net/note/reject/80517
Search -- https://master.php.net/manage/user-notes.php