Php cannot solve the problem of mysql expansion. I usually use xampp to install apache, php, and mysql environments. Mysql expansion cannot be found on a few computers. The installation of most computers is okay, so there are certainly no low-level problems such as the configuration of mysql in php, and several solutions according to the Internet (what is the environment variable problem, file problems, php. ini and dll files copied to the windows directory. However, I can install apache + mysql + php in the same appserv environment. after the appserv is uninstalled, it will not work if xampp is installed again. What is the reason for this?
Reply to discussion (solution)
Leave the software alone
Check whether the content in httped. conf is as follows:
LoadFile "/AMP/php54/php5ts. dll"
If this command is not provided, add it (the path and file name are filled in according to the actual situation)
As long as this sentence exists, you do not need to copy any files to the system directory.
Only
PHPIniDir "/AMP/php54" # specify the location of php. ini
LoadFile "/AMP/php54/php5ts. dll" # load the php support Library
LoadModule php5_module "/AMP/php54/php5apache2_2.dll" # load apache interface
Addtype application/x-httpd-php. php # add the php type
You can.
Apache and mysql are green and can be run by directly copying them.
It must be registered in the system only when it is set to a service.
I generally only use batch processing to start
cd \start /B "Apache" "\AMP\apache2\bin\httpd.exe"start /B "Mysql" "\AMP\mysql\bin\mysqld.exe" --defaults-file="\AMP\mysql\my.ini"start /B "Memcache" "\AMP\memcached\memcached.exe"
It is easier to change the php version.
Additionally, my environment can be carried and run on a USB disk.
Big Brother, the problem is that one or two of my 10 computers have the same installation packages and configurations. how can this be explained. It must not be a problem with the software.
Besides, it just prompts that mysql is not extended. it's not a problem with php.
The specific situation should be analyzed, and nothing will be known when I leave the site.
Since you have such a business, you should create a green environment and carry it with you. Easy to judge