help on apace 2, php5 and mysql 4.1.12 Here's what i did so far
In Apache httpd.conf file, i made some changes. The sever root is [ ServerRoot "C:/Program Files/Apache Group/Apache2" ] , UserDir "My Documents/My Website"
1) I add " LoadModule php5_module "C:/php/php5apache2.dll"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
PHPIniDir "C:\php"
2) I changed "DocumentRoot "C:/Webs", <Directory "C:/webs">
3) i added ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php .php5
Action application/x-httpd-php "/php/php-cgi.exe"
SetEnv PHPRC "C:/php
In php 5 : I renamed the php.ini-dist to php.ini and put it in the c:/WINDOWS
I put a copy of the "libmysql.dll" file in C"/WINDOWS/System32
I put php5ts.dll in C:/WINDOWS
a) In the php.ini file, I uncomment out "extension=php_mysql.dll"
b) I set doc_root = "c:\webs"
c) I Set extension_dir = "c:\php\ext"
For Mysql 4.1.12, i install in under c:/Program Files/Mysql
Is there anything that i missed in configuring php.ini or .httpd config file for apache. How can i connect mysql with php 5? When i did the php.info(), only the SQLite show up and i knows it's the default. do i have to disable the sqlite inorder for mysql to work with php 5? |