150 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
45
views
PHP permissions to do file_exists & include from different domain directories in same server?
I have 2 domains: domainA.com & domainb.com hosted on same server, same user; with paths: /var/hostdata/username/public_html/domain_a/ & /var/hostdata/username/public_html/domain_b/
Now in ...
0
votes
1
answer
94
views
php.ini not updating under Ubuntu with Plesk
My php.ini file updated the first time, but won't update anymore.
I have an IONOS cloud server running PHP 8.2.2 under Plesk. The php.ini file is at /opt/plesk/php/8.2/etc/php.ini. I went into nano ...
-1
votes
1
answer
99
views
Prevent overwriting of rules set to limit access with php-fpm
My configuration prevents users to browse the file system thanks to limitations set up in php-fpm (How to disable open_basedir and allow_url_fopen in PHP)
I have recently discovered a hacked site with ...
0
votes
1
answer
434
views
Warning: is_readable(): open_basedir restriction
I had to do a Wordpress installation on a customer's Windows server.
That was only possible via FTP because he doesn't have a Plesk. The installation worked, but if I want to install plugins like &...
0
votes
0
answers
56
views
Can a URL be added to PHP's open_basedir?
I'm facing an issue with PHP's open_basedir directive with relation to a composer package that I don't have control over, and use of a Google Font.
The package I'm using is matthiasmullie/minify, ...
0
votes
1
answer
3k
views
WP ERROR: Warning: file_exists(): open_basedir restriction in effect. File(core/post-comments) is not within the allowed path(s)
a friend of mine is running a WordPress site and suddenly started getting this error on administrative pages.
Warning: file_exists(): open_basedir restriction in effect. File(core/post-comments) is ...
0
votes
2
answers
67
views
Acces file from plugin 1 to plugin 2
I've created a working plugin and now I've created a second one.
I would like to acces a file that's in the plugin 2 directory, from within the plugin 1 directory.
I've tried it by using the below ...
-1
votes
1
answer
162
views
curl triggering open_basedir
I have a php (php-fpm) script script1.php running in /var/www/html/folder1/script1.php, protected with open_basedir "/var/www/html/folder1".
From that script, I call a 2nd script script2.php ...
0
votes
1
answer
3k
views
Plesk website - PHP open_basedir restriction in effect. File is not within the allowed path
I'm trying to run this code:
$img = new Imagick('ttt.jpg');
$quality = $img->getImageCompressionQuality();
echo $quality;
I have two websites which have this code and they are running on plesk.
...
user avatar
user17027702
0
votes
1
answer
861
views
PHP: Can't Set Open_basedir
I try to execute:
var_dump(ini_set("open_basedir",ini_get("open_basedir")));
with PHP and get false.
Apache 2. PHP Version: 5.3.28, it should change it from script, how i read at ...
0
votes
1
answer
3k
views
file_exists(): open_basedir restriction in effect. File(/usr/bin/ffprobe) is not within the allowed path(s)
after changing the value of open_basedir in php.ini in this path /usr/local/php73/lib/php.ini
to
/home/admin/:/tmp/:/var/tmp/:/opt/alt/php73/usr/share/pear/:/dev/urandom:/usr/local/php73/lib/:/usr/...
1
vote
1
answer
1k
views
How to disable "ini_set" and "exec" for a particular VirtualHost?
I'm already using open_basedir to restrict a VirtualHost to a certain directory:
<VirtualHost *:80>
ServerName test.example.com
DocumentRoot /sites/test/www
php_admin_value "...
0
votes
1
answer
837
views
PHP restricted to document root, not file system root
I'm trying to change a text file located inside the /etc/nginx directory via php. I'm using fopen() to do this, however, I cannot access any directory outside my websites root folder.
For example, I ...
0
votes
0
answers
374
views
open_basedir does not seem to set the base path
On my Synology (linux) server I have set-up three Apache2.4 / PHP web environment with the roots being:
/volume1/web
/volume1/webDevZone
/volume1/webTstZone
I would like to have a mechanism where I ...
0
votes
0
answers
79
views
PHP - reach open_basedir maximum security
I run a server for several websites, driven by ISPConfig. There are (for now) 4 php versions installed : 5.6, 7.0, 7.2, 7.3.
I would like to maximize the security and I arrived at the open_basedir ...