Hi all,
I was facing same kind of problems lately when I installed all the new apache, php and mysql servers to my computer.
I faced lot of problems, searched trough the internet and couldn't get any solution really. Lot of good tries. And the mysqli and mysql extensions were shown in php_info()
Then I finally stopped reading and tried to solve the problem somehow.
I removed all the applications mentioned above. Deleted all the copies of php_mysqli.dll and also all the copies of mysql libmysql.dll (some solutions were to copy that everywhere :))
Downloaded the new mysql alpha server. version 5.2.3 (Falcon) also downloaded php_5.2.0_mysqli_5.0.27-win32.zip from mysql site. Tho had done that earlier already. Also downloaded php_5.2.0_mysql_5.0.27-win32.zip from mysql site. The version of those files that are provided with the new PHP 5.2.1 are not recommended to use. Not by PHP nor MySQL communities.
Installed the Apache like usually, not too much problems.
Installed the PHP with extensions 'mysql' and 'mysqli'. This will automatically uncomment the lines in php.ini file and will create the ext folder. Just in case, installed PHP to C:\PHP\ like is recommended. Even this is not mandatory. And let the PHP installation software to modify apache files.
Extracted the zip files to C:\php\ext and copied the libmysql.dll to C:\php folder. Just in case, added C:\PHP and C:\PHP\ext in to system PATH. Can be done from Control Panel -> System -> Advanced -> Environment Variables. Add the the paths to the PATH: section. Divide them with ';' like they are made earlier in the path.
--- In this point restart the computer. The PATH variables do not update with out restart. ---
Installed MySQL server, configured it to use port 3306, on earlier tries i had this disabled and could not get it working. So now I'm keeping the port 3306 open. But hopefully there won't be any problems in future :D
restarted the apache server, tested php. Checked php_info() the mysql and mysqli were installed. Made small test run with mysql_connect() and voila!! it was working. Only took about 12 work hours :D
Hopefully I made any sense, not fluent in english. And not the best writer. I work in technical support and am lot better verbally to instruct. ;)
|