Troubleshooting steps for PHP not resolved

Source: Internet
Author: User

Troubleshooting steps for PHP not resolved:
1./usr/local/apache2/bin/apachectl-m See if there is any load libphp5.so
2. See if there are any in the configuration file
AddType application/x-httpd-php. php
3. See if you have added index
<ifmodule dir_module>
DirectoryIndex index.html index.htm index.php
</IfModule>
4. Don't forget to restart Apache
5. Another problem that cannot be overlooked is to check if your selinux is open
Command: Getenforce If the result is enforcing, that means it's open.
Close: Setenforce 0
Also configure the configuration file Vi/etc/selinux/config change enforcing to Disabled

When testing, you can test Curl localhost/phpinfo.php-i on your Linux native to see the status code to see if it's 200.

Troubleshooting steps for PHP not resolved

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.