docker-lamp
docker-lamp copied to clipboard
Running on Synology with Portainer
Hello, has someone running this on a Synology?
/MySQL seems that it works, myphpadmin also.
But in the the directory /app I have problems. If I add a phpinfo.php I got the whole configuration displayed. But if I add some other PHP file, like upload script, I get only error 500 page.
Maybe something with permissions?
Hey Mystery86HH, I am running the image on my synology but just the included script. A 500 error may indicate a problem with the script you are using, try either enabling error logs or checking the synology logs for better clues :-)
On Sat, 19 Mar 2022 at 14:41, Mystery86HH @.***> wrote:
Hello, has someone running this on a Synology?
/MySQL seems that it works, myphpadmin also.
But in the the directory /app I have problems. If I add a phpinfo.php I got the whole configuration displayed. But if I add some other PHP file, like upload script, I get only error 500 page.
Maybe something with permissions?
— Reply to this email directly, view it on GitHub https://github.com/mattrayner/docker-lamp/issues/130, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2XGNUTSR72QZLHP7RHJCTVAXRQNANCNFSM5REDLBQA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
-- Matt Rayner http://www.mattrayner.co.uk/
Unfortunately I can't find anything in the logs /var/logs/apache2 in the container. Have you tried using external app-volume (/volume1/docker/lamp/app)? Maybe I forgot to give some permissions (uid,gid). is it maybe a problem that I start the container in a MacVlan so that it has its own IP?
Maybe something in the log:
Updating for PHP 8.0
,Replacing CLI php.ini values
,Editing APACHE_RUN_GROUP environment variable
,Editing phpmyadmin config
,Setting up MySQL directories
,Allowing Apache/PHP to write to the app
,Allowing Apache/PHP to write to MySQL
,Editing MySQL config
,=> An empty or uninitialized MySQL volume is detected in /var/lib/mysql
,=> Installing MySQL ...
,=> Done!
,=> Waiting for confirmation of MySQL service startup
,=> Creating MySQL admin user with random password
,ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IDENTIFIED BY ''' at line 1
,=> Done!
,========================================================================
,You can now connect to this MySQL Server with xxxxxxxxx
,
, mysql -uadmin -pxxxxxxxxxx -h
Password xxxxed ;)