PHP, MySQL and Apache are installed under Linux, but PHP is not able to manipulate MySQL.

Source: Internet
Author: User
PHP, MySQL, and Apache are installed under Linux, but what if PHP can't operate MySQL?
I tried, MySQL can be used, PHP can also be used. But phpMyAdmin unable to enter, wrote a PHP file himself to test a bit also not. The PHP in Linux did not find the php.ini in Windows, which file should be set in? Is the Setup method the same as Windows?

------Solution--------------------
Explore
PHP.ini generally within the/usr/local/php/lib/or/etc/php5/
or enter locate PHP.ini
Look for yourself.

I remember phpmyadmin do not need to set php.ini AH.

------Solution--------------------
Take a look at the php-loaded extension mysql.so mysqli.so, etc., and see how it is used under Linux lsof | grep MySQL, if any, indicates that the extension is loaded, and there is no need to check the configuration. Windows can process exlorer, find apache2 processes, and then look inside the loaded DLLs and. So.
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.