I realized those two DIR have so many ERROR log files some dating back in years. I have deleted them so as to generate fresh errors logs. After which, – even after Apache2 restart, there is no single error log file inside the /var/log/apache2/domains/ nor /var/log/nginx/domains/
sudo cat /etc/apache2/conf.d/phpmyadmin.inc
# phpMyAdmin default Apache configuration
Alias /phpmyadmin /usr/share/phpmyadmin
<Directory /usr/share/phpmyadmin>
Options FollowSymLinks
DirectoryIndex index.php
<IfModule mpm_event_module>
# Use www.conf instead
<FilesMatch \.php$>
SetHandler "proxy:fcgi://127.0.0.1:9000"
</FilesMatch>
</IfModule>
</Directory>
# Disallow web access to directories that don't need it
<Directory /usr/share/phpmyadmin/libraries>
Order Deny,Allow
Deny from All
</Directory>
<Directory /usr/share/phpmyadmin/setup>
Order Deny,Allow
Deny from All
</Directory>
<Directory /usr/share/phpmyadmin/sql>
Order Deny,Allow
Deny from All
</Directory>
<Directory /usr/share/phpmyadmin/vendor>
Order Deny,Allow
Deny from All
</Directory>
<Directory /usr/share/phpmyadmin/templates>
Order Deny,Allow
Deny from All
</Directory>
<Directory /usr/share/phpmyadmin/locale>
Order Deny,Allow
Deny from All
</Directory>
@sahsanu Im getting somewhere,
The error logs are back.
Here is the error from /var/log/nginx/domains/mydomain.com.error.log ::
open_basedir restriction in effect. File(/usr/share/phpmyadmin/index.php) is not within the allowed path(s):
dpkg -l | grep phpmyadmin
ii php-phpmyadmin-motranslator 5.2.0-1build1 all translation API for PHP using Gettext MO files
ii php-phpmyadmin-shapefile 2.1-5 all translation API for PHP using Gettext MO files
ii php-phpmyadmin-sql-parser 5.4.1-2 all validating SQL lexer and parser
ii phpmyadmin 4:5.1.1+dfsg1-5ubuntu1 all MySQL web administration tool
:~# apache2ctl -M | grep mpm
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using cpanel.mmydomain.com. Set the 'ServerName' directive globally to suppress this message
mpm_event_module (shared)
Before I do that, here is the full Error Message.
Mark that earlier, I had tried to set up a custom shared folder via open_basedir which is now working fine- Thanks to you.
[Mon Oct 21 10:31:45.684376 2024] [proxy_fcgi:error] [pid 876663:tid 876689] [client XXXXX:0] AH01071: Got error ‘PHP message: PHP Warning: Unknown: open_basedir restriction in effect. File(/usr/share/phpmyadmin/index.php) is not within the allowed path(s): (/home/MYUSERNAME/CUSTOM_FOLDER:/tmp) in Unknown on line 0PHP message: PHP Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0Unable to open primary script: /usr/share/phpmyadmin/index.php (Operation not permitted)’, referer: MyDomainName.com is for sale | www.brandforce.com
“mydomainname.com.error.log”
PMA Hestia-SSO plugin has been successfully removed/disabled
[ * ] Backing up old configuration files…
[ * ] Marking phpmyadmin as held in apt…
phpmyadmin set on hold.
[ * ] Removing old folders…
[ * ] Creating new folders…
rm: cannot remove ‘/etc/apache2/conf.d/phpmyadmin.conf’: No such file or directory
[ * ] Installing phpMyAdmin version v5.2.1…
[ * ] Creating localhost configuration…
[ * ] Dropping database (could throw an error if successful)…
PMA Hestia-SSO plugin has been successfully installed
Done,
Same error.
And im getting same error message from the log:
proxy_fcgi:error] [pid 876663:tid 876689] [client XXXXX:0] AH01071: Got error ‘PHP message: PHP Warning: Unknown: open_basedir restriction in effect. File(/usr/share/phpmyadmin/index.php) is not within the allowed path(s): (/home/MYUSERNAME/CUSTOM_FOLDER:/tmp) in Unknown on line 0PHP message: PHP Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0Unable to open primary script: /usr/share/phpmyadmin/index.php (Operation not permitted)