docker-lamp icon indicating copy to clipboard operation
docker-lamp copied to clipboard

Running on Synology with Portainer

Open Mystery86HH opened this issue 3 years ago • 3 comments

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?

Mystery86HH avatar Mar 19 '22 14:03 Mystery86HH

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/

mattrayner avatar Mar 19 '22 18:03 mattrayner

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?

Mystery86HH avatar Mar 19 '22 19:03 Mystery86HH

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 -P , ,Please remember to change the above password as soon as possible! ,MySQL user 'root' has no password but only allows local connections , ,enjoy! ,======================================================================== ,Starting supervisord ,/usr/local/lib/python3.8/dist-packages/supervisor-4.2.2-py3.8.egg/supervisor/options.py:474: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security. , self.warnings.warn( ,2022-03-19 14:51:27,712 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message. ,2022-03-19 14:51:27,712 INFO Included extra file "/etc/supervisor/conf.d/supervisord-apache2.conf" during parsing ,2022-03-19 14:51:27,712 INFO Included extra file "/etc/supervisor/conf.d/supervisord-mysqld.conf" during parsing ,2022-03-19 14:51:27,720 INFO RPC interface 'supervisor' initialized ,2022-03-19 14:51:27,721 CRIT Server 'unix_http_server' running without any HTTP authentication checking ,2022-03-19 14:51:27,721 INFO supervisord started with pid 1 ,2022-03-19 14:51:28,724 INFO spawned: 'apache2' with pid 277 ,2022-03-19 14:51:28,726 INFO spawned: 'mysqld' with pid 278 ,2022-03-19 14:51:30,081 INFO success: apache2 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) ,2022-03-19 14:51:30,082 INFO success: mysqld entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

Password xxxxed ;)

Mystery86HH avatar Mar 19 '22 19:03 Mystery86HH