Linux+php+apache+mysql (MARIADB) troubleshooting

Source: Internet
Author: User
Tags apache error log parent directory

WordPress Web page file does not open (client denied by server), White screen (HTTP 500) Troubleshooting order

1. Review the Apache error log speeding problem report to find the problem "client denied by server".


2.client denied by server is a permissions issue

Set httpd.conf or virtual host Vhost permissions in the. conf are related to.
Rewriteengine on
AllowOverride FileInfo or all
Require All granted etc.


3. After resolving the permissions issue, still the page white screen no display, continue to view the Apache error log. There is no new error log to view the HTTP 500 server internal error displayed through the log.

There was a previous situation but there was an error message and was shown as Open_basedir or "Fatal error:require_once (): Failed opening required '/xxx/xxx/includes/xx.php ' ( Include_path= '.:/ Usr/share/pear:/usr/share/php ') "

So configure PHP.ini

Locate Open_basedir or include_path (php.ini UNIX with Windows two configuration options) add the path in the hint to the back with a colon: split. (Example include_path = ".:/ php/includes:/home/web/"Open_basedir =.:/ tmp/:/home/web/)

PS: The following is from the network, did not find the source. If anyone knows please leave a message. I added

Open_basedir can limit the active range of user access files to the specified area, usually the path of their home directory, and also the symbols "." To represent the current directory. Note that the limit specified with Open_basedir is actually a prefix, not a directory name.

For example: if "Open_basedir =/dir/user", then the directory "/dir/user" and "/dir/other" are accessible. So if you want to restrict access to only the specified directory, end the path name with a slash.
Open_basedir can also set up multiple directories, separate directories in Windows with semicolons, and separate directories with colons in any other system. When it acts on the Apache module, the Open_basedir path in the parent directory is automatically inherited.

Linux+php+apache+mysql (MARIADB) troubleshooting

Related Article

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.