Home Backend Development PHP Tutorial DISCUZ Unable to access ./include/common.inc.php_PHP tutorial in win2003 environment

DISCUZ Unable to access ./include/common.inc.php_PHP tutorial in win2003 environment

Jul 21, 2016 pm 03:23 PM
access discuz i include Down exist environment

Note from Script House:
Theoretically, the following method is possible, but the premise is to ensure that your PHP configuration is correct. It is recommended that you use the new PHP version, and the discuz program and related server-related software can be found in s. jb51.net download.

The forum often reports error messages in the past two days

Warning: require_once(./include/common.inc.php) [function.require-
once]: failed to open stream: No such file or directory in
E:hostaydswindex.php on line 12

Fatal error: require_once() [function.require]: Failed opening required
'./include/common.inc. php' (include_path='.;C:php5pear') in
E:hostaydswindex.php on line 12

I checked online, it should be a permission request. I don’t know if the forum can be used. Get on.

Solution 1:

In fact, this problem needless to say is so complicated. This problem is caused by directory permission issues.
Everyone knows that the permission settings in 2003 are usually confusing.
The solution expressed in an image is as follows:
For example: your forum is placed in the BBS directory of WEBROOT. If you only give the BBS directory INTERNET to
guest users (or users you specify) The above problem will occur if the upper-level directory webroot of the BBS does not have
INTERNET guest user (or user specified by you) access rights.
As long as you give the WEBROOT directory (which is the superior directory of the forum directory) INTERNET guest permissions (or
your designated user), the problem will be solved!
The reason is: the official ./include/ in all php files can be solved by changing it to include/.
But you can’t replace them one by one. My personal solution is to create a parent directory.

Solution 2:

This server has reinstalled the system
Configured php mysql under win, but when accessing the dz (Discuz) forum, the following error occurred:
Warning: require_once() [function.require-once]: Unable to access
./include/common.inc.php in E:mysiteceshiindex.php on line 12
Warning: require_once(./include/common. inc.php) [function.require-
once]: failed to open stream: No such file or directory in
E:mysiteceshiindex.php on line 12
Fatal error: require_once() [function.require ]: Failed opening required
'./include/common.inc.php' (include_path='d:/php5/includes') in
E:mysiteceshiindex.php on line 12
This website does not have any The problem was that the file was not found

It took me a long time to finally solve it
The problem is:
1. Is the parent path enabled in IIS6.0?
2. The permission issue gives users permission. (Note that the computer directory must also have permissions, otherwise this problem will occur)

Other references:

I moved the forum to my own server. The server is win2003+iis+php+mysql. But when accessing the forum, the following message always appears:

Warning: require_once() [function.require-once]: Unable to access ./include/common.inc.php in E:im286index.php on line 12
Warning: require_once(./include/common.inc.php) [function.require-once]: failed to open stream: No such file or directory in E:im286index.php on line 12

Fatal error: require_once() [function.require]: Failed opening required './include/common.inc.php' (include_path='d:/php5/includes') in E:im286index.php on line 12
method 1: I googled Baidu on the Internet and there were quite a few people who had this problem. Modifying ./include/ to include/ solved the problem, but the rewrite loading was always unsuccessful. It took me a long time to find out that it was a permissions problem, so I set it up. With very one permission, everything will be ok. Finally, I would like to remind everyone that iis needs to enable the parent path.

Method 2:
1. Is parent path enabled in IIS6.0?
2. Permission issue gives users permissions (note that the computer directory must also have permissions, otherwise This problem occurs)

Method 3:
It’s a permission issue. I added everyone read permission to the upper-level directory. It is only for the upper-level directory, but it takes a very long time. I can’t wait and stop. . Change the directory to e:im286bbs, give the upper-level directory everyone read permission and access, prompt:
No input file specified.

Method 4:
Search, 1 The first method is to comment out the doc_root=" in php.ini. I looked at it and it was commented out. This is not the problem. The second method is to talk about the application pool problem. IIS created a new application pool for this site. . Refresh and the website can be accessed. Try again to see if it is related to the permissions of the upper-level directory. Remove the read permission of everyone on the upper-level directory and refresh again. The error is the same as above. I am sure it is related to this. Then add , problem solved.

Method 5:
I also have this problem. I just searched for a long time with no results. I tried to change (./include/common.inc.php) and the result was successful. If you have any problems, try it!
Modify all './' in common.inc.php to '/ (that is, remove the dots in the middle)

Method 6: The ultimate solution
If other programs are normal, but only some PHP systems have problems, here is phpmyadmin as an example. For example, the current directory is d:werrootphpmyadmin. Just create another directory web in the phpmyadmin directory, and then enter it in iis The problem can be solved by locating the path as d:werrootphpmyadminweb. This should be a problem with the use of ./ in the program.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/324547.htmlTechArticleScript Home Note: In theory, the following method is possible, but the premise is to ensure that your php configuration is not Error, it is recommended that you use the new php version, discuz program, and related servers...
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to use sql if statement How to use sql if statement Apr 09, 2025 pm 06:12 PM

SQL IF statements are used to conditionally execute SQL statements, with the syntax as: IF (condition) THEN {statement} ELSE {statement} END IF;. The condition can be any valid SQL expression, and if the condition is true, execute the THEN clause; if the condition is false, execute the ELSE clause. IF statements can be nested, allowing for more complex conditional checks.

Unable to log in to mysql as root Unable to log in to mysql as root Apr 08, 2025 pm 04:54 PM

The main reasons why you cannot log in to MySQL as root are permission problems, configuration file errors, password inconsistent, socket file problems, or firewall interception. The solution includes: check whether the bind-address parameter in the configuration file is configured correctly. Check whether the root user permissions have been modified or deleted and reset. Verify that the password is accurate, including case and special characters. Check socket file permission settings and paths. Check that the firewall blocks connections to the MySQL server.

What are the benefits of multithreading in c#? What are the benefits of multithreading in c#? Apr 03, 2025 pm 02:51 PM

The advantage of multithreading is that it can improve performance and resource utilization, especially for processing large amounts of data or performing time-consuming operations. It allows multiple tasks to be performed simultaneously, improving efficiency. However, too many threads can lead to performance degradation, so you need to carefully select the number of threads based on the number of CPU cores and task characteristics. In addition, multi-threaded programming involves challenges such as deadlock and race conditions, which need to be solved using synchronization mechanisms, and requires solid knowledge of concurrent programming, weighing the pros and cons and using them with caution.

How to configure zend for apache How to configure zend for apache Apr 13, 2025 pm 12:57 PM

How to configure Zend in Apache? The steps to configure Zend Framework in an Apache Web Server are as follows: Install Zend Framework and extract it into the Web Server directory. Create a .htaccess file. Create the Zend application directory and add the index.php file. Configure the Zend application (application.ini). Restart the Apache Web server.

How to solve the 'Network Error' caused by Vue Axios across domains How to solve the 'Network Error' caused by Vue Axios across domains Apr 07, 2025 pm 10:27 PM

Methods to solve the cross-domain problem of Vue Axios include: Configuring the CORS header on the server side using the Axios proxy using JSONP using WebSocket using the CORS plug-in

Summary of phpmyadmin vulnerabilities Summary of phpmyadmin vulnerabilities Apr 10, 2025 pm 10:24 PM

The key to PHPMyAdmin security defense strategy is: 1. Use the latest version of PHPMyAdmin and regularly update PHP and MySQL; 2. Strictly control access rights, use .htaccess or web server access control; 3. Enable strong password and two-factor authentication; 4. Back up the database regularly; 5. Carefully check the configuration files to avoid exposing sensitive information; 6. Use Web Application Firewall (WAF); 7. Carry out security audits. These measures can effectively reduce the security risks caused by PHPMyAdmin due to improper configuration, over-old version or environmental security risks, and ensure the security of the database.

How to monitor Nginx SSL performance on Debian How to monitor Nginx SSL performance on Debian Apr 12, 2025 pm 10:18 PM

This article describes how to effectively monitor the SSL performance of Nginx servers on Debian systems. We will use NginxExporter to export Nginx status data to Prometheus and then visually display it through Grafana. Step 1: Configuring Nginx First, we need to enable the stub_status module in the Nginx configuration file to obtain the status information of Nginx. Add the following snippet in your Nginx configuration file (usually located in /etc/nginx/nginx.conf or its include file): location/nginx_status{stub_status

What is apache server? What is apache server for? What is apache server? What is apache server for? Apr 13, 2025 am 11:57 AM

Apache server is a powerful web server software that acts as a bridge between browsers and website servers. 1. It handles HTTP requests and returns web page content based on requests; 2. Modular design allows extended functions, such as support for SSL encryption and dynamic web pages; 3. Configuration files (such as virtual host configurations) need to be carefully set to avoid security vulnerabilities, and optimize performance parameters, such as thread count and timeout time, in order to build high-performance and secure web applications.

See all articles