Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running on Synology with Portainer #130

Open
Mystery86HH opened this issue Mar 19, 2022 · 3 comments
Open

Running on Synology with Portainer #130

Mystery86HH opened this issue Mar 19, 2022 · 3 comments

Comments

@Mystery86HH
Copy link

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?

@mattrayner
Copy link
Owner

mattrayner commented Mar 19, 2022 via email

@Mystery86HH
Copy link
Author

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
Copy link
Author

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 ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants