I’m new to Linux (Ubuntu 22.04) and I’m trying to set up phpMyAdmin for my PHP project. I encountered a significant issue with .htaccess where php_value auto_prepend_file “/var/www/html/…” didn’t seem to work for me. Eventually, I added php_value auto_prepend_file “/var/www/html/…” directly into php.ini where auto_prepend_file = “/var/www/html/…”, and it worked for me!
Now, I want to set up phpMyAdmin, but I’m encountering an error in the error log, which is:
PHP Fatal error: Failed opening required ‘/var/www/html/…’
I realized this error is due to my auto_prepend_file configuration because I specified the exact path there, like /var/www/html/myshop/admin/core.php. As a result, I get the error:
PHP Fatal error: Failed opening required ‘/var/www/html/myshop/admin/core.php’
It seems like phpMyAdmin doesn’t work with this setup, and I’m struggling to fix it.
Could someone please help me with this issue?
Mehrnaz Jalalifar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.