CentOS Software Installation directory (AMP directory)

Source: Internet
Author: User
Tags apache error log

Entos Install the Software directory

1. If the RPM installation is possible: RPM-QL Package-name

2. You can find directly on the root directory. -name a file name in the software but the installation software is generally in the/usr/local directory,
This is the default directory to install the software, so the search can be in the/USR directory is relatively simple
3. Whereis Name
View File Installation path: Whereis
View the path where the file is running which
With Yum installation software is generally distributed in various places, configuration files in/etc, execute files in/usr/bin,/usr/sbin/, library files in/usr/lib.
Apache:
If using RPM package 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
Apache error log:/var/log/httpd/error_log
Web directory:/var/www/html
If the source code is installed, it is usually installed in the/usr/local/apache2 directory by default.
Php:
If using RPM package installation, the installation path should be in the/etc/directory
PHP configuration file:/etc/php.ini
If the source code is installed, 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 using RPM package 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
MySQL Data directory under the/var/lib/mysql directory
If the source code is installed, it is usually installed in the/usr/local/mysql directory by default.

CentOS Software Installation directory (AMP directory)

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.