Last update at :2023-12-30,Edit by888u
The Linux system is not as easy for novices as the win system. Most operations on the Linux system are performed in the form of commands. The general installation LAMP environment mode is for Linux, Apache, PHP, and MYSQL.
Sometimes it is necessary to modify some parameters. Now we have compiled some common default installation paths for Apache, PHP, and MYSQL as follows:
1.apache:
If you use 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
web directory:/var/www/html
If you use source code installation, it is generally installed in the /usr/local/apache2 directory by default.
2.php:
If you use RPM package installation, the installation path should be in the /etc/ directory
php configuration file:/etc/php.ini
If you use source code installation, it is generally installed in the /usr/local/lib directory by default.
PHP configuration file:/usr/local/lib/php.ini
Or /usr/local/php/etc/php.ini
3.mysql:
If you use RPM package to install, 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 you use source code installation, it is generally installed in the /usr/local/mysql directory by default.
Recommended site search: dynamic dial-up vps host, what is the server, Hong Kong server, 1g American virtual host, java virtual host, cpanel host, free foreign space, free ip, webmaster ip, private server rental,
All copyrights belong to 888u unless special state
发表评论