MySQL startup failure and PHP path error and PHP cannot display the problem

Source: Internet
Author: User

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7E/ED/wKiom1cM4ejicEfmAAAxqYzS_oY921.png "title=" 1.png " alt= "Wkiom1cm4ejicefmaaaxqyzs_oy921.png"/>

When this problem occurs, check if you have installed two MySQL programs, one is the system comes with, and one is installed on its own.

Note: When starting the MySQL service, will search my.cnfin a certain order,first in the / etc directory to find, can not find the search "$basedir/my.cnf", in this case is /usr/local/mysql/my.cnf, which is the default location for the new MySQL configuration file! If you find/etc in the presence of my.cof files, directly deleted, so that when the start of MySQL will go /usr/local/mysql/my.cnfdirectory down to find your own installation of the article


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7E/ED/wKiom1cM5IahJRydAACBj_vKP0Y517.png "title=" 2.png " alt= "Wkiom1cm5iahjrydaacbj_vkp0y517.png"/>

Execute php file, 404: To determine whether the system installed two the same program. Restart Apache directly under the path of the source installation by/usr/local/apache2/bin/apachectl this way, do not use/ETC/INIT.D/HTTPD to start, unless you say that the startup script is placed under/etc/init.d/, By default, yum installs the httpd startup script under/etc/init.d/

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/7E/EA/wKioL1cM5izxr8bIAAAmlmKtu2M241.png "title=" 4.png " alt= "Wkiol1cm5izxr8biaaamlmktu2m241.png"/>

Execute PHP file, no error but HTML page can be displayed, PHP page is not displayed:

Here's how to fix it:

1. Check the Apache configuration file to see if the libphp5.so module is loaded, and if not, add

LoadModule Php5_module modules/libphp5.so

2. In the <ifmodule mime_module> module see if there is a PHP page added, if not

AddType application/x-httpd-php. php. php3. PhP4

3. Add index.php after the directoryindex of the <ifmodule dir_module> module

4.204 lines ServerName www.example.com:80 line that # Open

Restart Apache/usr/local/apache2/bin/apachectl restart


MySQL startup failure and PHP path error and PHP cannot display the problem

Related Article

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.