Under the latest PHP7 unexpectedly incompatible with discuz3.2, so can only be helpless with the previous virtual machine PHP5 do experiments.
/etc/init.d/mysqld Start 3306 Port
Apachectl Start 80 port
Apache Welcome page can appear on client 192.168.1.104 but 192.168.1.104/1.txt or other 192.168.1.104/info.php are prompt: Not Found the requested URL/ Fff/123.txt was wasn't found on the this server. and prompted to require Apache 80 port, 80 port is obviously open.
NETSTAT-TULANP two ports no problem, it's all working.
Vim/usr/local/apache2/conf/httpd.conf Viewing the virtual host is also turned off.
The client's etc/hosts file is also 192.168.1.104,ping 192.168.1.104,
Strange, where is the problem.
[Email protected] htdocs]# Rpm-qa | grep httpd
Httpd-tools-2.2.15-47.el6.centos.1.x86_64
Httpd-2.2.15-47.el6.centos.1.x86_64
Cough, obviously is compiled installation of how will be more out of RPM package installed also shows this 80 port non-80 port, not compiled install that
[email protected] htdocs]# which apachectl
/usr/sbin/apachectl
The reason is here, the beginning of the use of the Apachectl start is the source package Apache, instead of compiling the installation of the one.
Apachectl stop
/usr/local/apache2/bin/apachectl start to compile the installation of this is the right, the previous build LANP environment is also compiled and installed, are installed with the compilation of the matching.
Again in the client, 192.168.1.104/123.txt is OK.
The Apache Welcome page is also accessible, and other files in the file directory are inaccessible