In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Today, the editor to share with you is linux to see whether the php environment is installed, many people do not understand, today, in order to let you know more about linux to check whether the php environment is installed, so to sum up the following content, let's look down. I'm sure you'll get something.
View method:
1. First of all, you can use find /-name php.ini to find out whether the system has a configuration file for php.
2. Use netstat-ntpl to check whether port 9000 is running
3. If port 9000 exists, you can view the file location using lsof-iRank 9000.
4. In addition, if the system already has php installed, you can also use php-v to check the version number, provided that the environment variable is set
Apache:
If you install with the RPM package, 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 the source code installation is used, it is generally installed in the / usr/local/apache2 directory by default.
Php:
If you install with the RPM package, the installation path should be in the / etc/ directory
Configuration file for php: / etc/php.ini
If the source code installation is used, 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
Mysql:
If you install with the RPM package, the installation path should be in the / usr/share/mysql directory
Mysqldump file location: / usr/bin/mysqldump
Mysqli profile:
/ etc/my.cnf or / usr/share/mysql/my.cnf
The mysql data directory is under the / var/lib/mysql directory
If the source code installation is used, it is generally installed in the / usr/local/mysql directory by default.
This is the end of linux's method of checking whether the php environment is installed, of course, not just the above and everyone's analysis, but the editor can ensure its accuracy is absolutely no problem. I hope that the above content can have a certain reference value for everyone, and can be put into practice. If you like this article, you might as well share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.