• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

PHP open_basedir on Windows Plesk 12

Amir Hossein Yaghouti

Basic Pleskian
Plz help In fix error :
OSMicrosoft Windows Server 2012 R2
Plesk version12.0.18 Update #37, last updated at Mar 4, 2015 05:22 AM


Code:
We're sorry, but an unhandled error occurred. Please see the details below.

file_exists(): open_basedir restriction in effect. File(C:\Inetpub\vhosts\yekia.ir\httpdocs/lang/fa/https://github.php) is not within the allowed path(s): (C:\Inetpub\vhosts\yekia.ir\httpdocs\;\Windows\Temp\)
C:\Inetpub\vhosts\yekia.ir\httpdocs\vendor\laravel\framework\src\Illuminate\Filesystem\Filesystem.php line 20


http://yekia.ir/index.php/backend/system/updates
 
Hello Amir,
I think the error is self explanatory! You can't access a file that s outside or NOT within your root directory!
 
I think the problem is with this line:
Code:
C:\Inetpub\vhosts\yekia.ir\httpdocs/lang/fa/https://github.php

I don't think there is a file called "https://github.php" and I guess it was a typing error. Please remove the "https://" from the file name and I guess that should solve the problem!
 
no problem me php open_basedir.
http://yekia.ir/index.php/backend/cms

all page

Code:
We're sorry, but an unhandled error occurred. Please see the details below. file_exists(): open_basedir restriction in effect. File(C:\Inetpub\vhosts\yekia.ir\httpdocs/lang/fa/Do you really want to delete selected files or directories?.php) is not within the allowed path(s): (C:/Inetpub/vhosts/yekia.ir\;C:\Windows\Temp)

C:\Inetpub\vhosts\yekia.ir\httpdocs\vendor\laravel\framework\src\Illuminate\Filesystem\Filesystem.php line 20

return file_exists($path);

 
Blood, there is a problem with your coding ...
In the above error you are trying to access the file
Code:
Do you really want to delete selected files or directories?.php
which of-
course doesn't exist thus the cause of the error.
 
Am not sure if that is a compliment, but if it's then you are most welcome!
 
This may be stupid but can I deploy Laravel Projects to Windows - Shared Hosting w/ Plesk (Composer installed) and mysql. If so how? I've been trying to run anything PHP with a framework instead of basic PHP for about a year now and i'm struggling.
 
Back
Top