The Apache Welcome page is also accessible, and other files in the file directory are inaccessible

Source: Internet
Author: User

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

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.