Hi everyone! Was wondering if someone might be able to help me make sense of this so I can fix these types of errors!
It looks simple enough but it doesn't seem to be working for me!

PHP Warning: require_once(): open_basedir restriction in effect. File(C:\Inetpub\wwwroot\
phpMyAdmin\libraries\common.inc.php) is not within the allowed path(s): (”C:\Inetpub) in C:\Inetpub
\wwwroot\phpMyAdmin\index.php on line 35 PHP Warning: require_once(C:\Inetpub\wwwroot
\phpMyAdmin\libraries\common.inc.php): failed to open stream: Operation not permitted in C:\Inetpub
\wwwroot\phpMyAdmin\index.php on line 35 PHP Fatal error: require_once(): Failed opening required
'./libraries/common.inc.php' (include_path='.;C:\PHP\PEAR\') in C:\Inetpub\wwwroot\phpMyAdmin\index.php on line 35

I edit php.ini but it doesn't seem to help! 😕

I got to the point that I tried to open everything! lol ...

open_basedir=”C:\Inetpub\;C:\Inetpub\temp\;C:\PHP\;C:\Inetpub\wwwroot\WebMplayer\;
C:\Inetpub\wwwroot\gab\;C:\Inetpub\wwwroot\mysite\;C:\Inetpub\wwwroot\phpMyAdmin\;C:\PHP\PEAR\;”

... if this would have even worked! I read so many conflicting posts and blogs on this stuff that none of it is making any sense! Sorry, I am a real noob at this PHP/SQL stuff!

    The problem is the curly quotes in your php.ini file - those are not the same as a regular double quote.

    Whatever editor you were using that inserted those quotes is definitely not one you should be using to edit code.

      Thanks for the reply! I am using Notepad to edit. Is there anything that you can recommend? Thought Notepad would be fine as I used it for several scripts that were successful. I had phpMyAdmin loading the loging screen before, just wasn't able to login for some reason. Password was correct as far as I could tell. Now when I go to phpMyAdmin login page I get this error...

      PHP Warning: require_once(): open_basedir restriction in effect. File(C:\Inetpub\wwwroot\phpMyAdmin\libraries\common.inc.php) is not within the allowed path(s): (”C:\Inetpub) in C:\Inetpub\wwwroot\phpMyAdmin\index.php on line 35 PHP Warning: require_once(C:\Inetpub\wwwroot\phpMyAdmin\libraries\common.inc.php): failed to open stream: Operation not permitted in C:\Inetpub\wwwroot\phpMyAdmin\index.php on line 35 PHP Fatal error: require_once(): Failed opening required './libraries/common.inc.php' (include_path='.;C:\PHP\PEAR\') in C:\Inetpub\wwwroot\phpMyAdmin\index.php on line 35

      I downloaded a PHP editor so I will rewrite the code and post my results.
      Thanks again,
      Mike

        h8tingPHP wrote:

        Thanks for the reply! I am using Notepad to edit. Is there anything that you can recommend? Thought Notepad would be fine as I used it for several scripts that were successful.

        Notepad is fine - it won't insert curly quotes when you type a double quote (something that Microsoft Word might do, for example).

        The problem at hand has nothing to do with any of the PHP scripts/code you've written (unless they too contain curly quotes instead of double quotes).

          Write a Reply...