Home php教程 php手册 phpmyadmin安装时提示:Warning: require_once(./libraries/comm

phpmyadmin安装时提示:Warning: require_once(./libraries/comm

Jun 06, 2016 pm 08:38 PM
require_once warning

common.inc.php这个文件是存在的,而且系统中php也不装在C盘根目录下,怎么会有这样的提示呢?经过一阵调试终于发现解决方法

比较简洁的方法:新建一个目录将phpmyadmin中的文件复制到这个目录中,iis中设置一下路径。

安装好PHPmyAdmin后,在IE里访问时会出现下面的这种错误:

Warning: require_once(./libraries/common.inc.php) [function.require-once]: failed to open stream: No such file or directory in X:xxxxxxphpmyadminindex.php on line 34

Fatal error: require_once() [function.require]: Failed opening required './libraries/common.inc.php' (include_path='.;C:php5pear') in X:xxxxxxphpmyadminindex.php on line 34

common.inc.php这个文件是存在的,而且系统中php也不装在C盘根目录下,怎么会有这样的提示呢?

经过一阵调试终于发现解决方法:

原来phpmyadmin的安装目录的上级目录权限不够,这时给上级目录加上IIS匿名User的“读取和运行”权限,再打开phpmyadmin页面,成功!

[注意事项]:

不要把phpmyadmin解压安装在根目录,因为这样匿名用户就会拥有根目录的权限。

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

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

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)

PHP Warning: Invalid argument supplied for foreach() - Solution PHP Warning: Invalid argument supplied for foreach() - Solution Aug 26, 2023 pm 09:42 PM

PHPWarning:Invalidargumentsuppliedforforeach()-Solution When developing web pages or applications using PHP, you often encounter various errors and warnings. One of the common warnings is "Invalidargumentsuppliedforforeach()", which is usually produced when using a foreach loop to iterate over an array. This question seems simple, but if you don't

如何解决PHP Warning: file_get_contents(): failed to open stream: HTTP request failed 如何解决PHP Warning: file_get_contents(): failed to open stream: HTTP request failed Aug 18, 2023 pm 11:34 PM

How to solve PHPWarning:file_get_contents():failedtoopenstream:HTTPrequestfailed During PHP development, we often encounter situations where HTTP requests are initiated to remote servers through the file_get_contents function. However, sometimes we encounter a common error message: PHPWarning: file_get_c

How to solve PHP Warning: fopen(): SSL operation failed in file.php on line X How to solve PHP Warning: fopen(): SSL operation failed in file.php on line X Aug 25, 2023 am 09:22 AM

How to solve PHPWarning:fopen():SSLoperationfailedinfile.phponlineX In PHP programming, we often use the fopen function to open files or URLs and perform related operations. However, when using the fopen function, sometimes you will encounter something similar to Warning:fopen():SSLoperationfailedinfile.p

PHP Warning: Invalid argument supplied for foreach() solution in PHP Warning: Invalid argument supplied for foreach() solution in Jun 22, 2023 pm 01:07 PM

In recent years, PHP has become one of the important tools for web development. However, PHP will also appear some error messages, one of the common errors is the "Invalidargumentsuppliedforforeach()" error. Here's how to fix this error. First, let’s understand what this error is. This error usually occurs when using foreach loop code, but providing invalid parameters to the loop code. In most cases, this error will crash the program

PHP Warning: file_get_contents() solution PHP Warning: file_get_contents() solution Jun 25, 2023 pm 01:33 PM

PHP is a commonly used server scripting language that can execute scripts on the web server to create dynamic web pages. The powerful functions and flexibility of PHP make it widely used in website development. The file_get_contents() function is also a commonly used method to obtain URL content in PHP. But sometimes you will encounter the following error: PHPWarning:file_get_contents(url):failedto

PHP Warning: implode(): Invalid arguments passed solution PHP Warning: implode(): Invalid arguments passed solution Jun 23, 2023 am 09:04 AM

In PHP programming, Warning messages often appear. One of the more common prompts is "PHPWarning:implode():Invalidargumentspassed". This article will introduce the ideas and methods to solve this Warning. First, we need to understand how to use the implode() function. The function of this function is to concatenate an array into a string, using the following syntax: string

PHP Warning: strtolower() expects parameter 1 to be string, solution PHP Warning: strtolower() expects parameter 1 to be string, solution Jun 23, 2023 am 08:11 AM

As a widely used programming language, PHP is widely used in many fields such as web development and server-side programming. During development, you may encounter the following error message: PHPWarning:strtolower()expectsparameter1tobestring. The solution to this problem lies in understanding the usage and parameters of the strtolower() function. First of all, strtolower() is a PHP built-in function used to convert

PHP Warning: mysql_query():Solution PHP Warning: mysql_query():Solution Jun 24, 2023 pm 07:00 PM

PHP is a very popular server-side scripting language often used for dynamic web development. However, sometimes you will see PHP reporting a warning message like this: "PHPWarning: mysql_query()", and suggesting that the error occurred in the mysql_query() function. This problem often occurs when using PHP to connect to a MySQL database. So, how do we solve this problem? Generally speaking, PHP reports mysql_qu

See all articles