Default installation path for Apache, MySQL, and PHP in Linux)

Source: Internet
Author: User

I have been compiling and installing myself, and the installation directory is clearly allocated. Today I saw a friend who did not know me. I checked that it was installed by default,

I am not familiar with the default installed directory structure. I found it on the Internet. Some friends listed it clearly and extracted it myself. It is convenient to keep it for use ~

 

Apache:

If the RPM package is used for installation, the installation path should be in the/etc/httpd directory.

Apache configuration file:/etc/httpd/CONF/httpd. conf

Apache module path:/usr/sbin/apachectl

Web directory:/var/www/html

IfSource codeInstalled in the/usr/local/apache2 directory by default.

 

PHP:

If the RPM package is used for installation, the installation path should be in the/etc/directory.

PHP configuration file:/etc/PHP. ini

If the sourceCodeInstallation. It is usually installed in the/usr/local/lib directory by default.

PHP configuration file:/usr/local/lib/PHP. ini

Or/usr/local/PHP/etc/PHP. ini

 

MySQL:

If the RPM package is used for installation, the installation path should be in the/usr/share/MySQL directory.

Mysqldump File Location:/usr/bin/mysqldump

Mysqli configuration file:

/Etc/My. CNF or/usr/share/MySQL/My. CNF

The MySQL data directory is in the/var/lib/MySQL directory.

If source code is used for installation, it is usually installed in the/usr/local/MySQL directory by default.

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.