![]() |
|
zenphoto install 1.5.9 - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: zenphoto install 1.5.9 (/thread-13727.html) |
zenphoto install 1.5.9 - michas - 2022-05-27 I am trying to install Zenphoto using a lamp stack that can be found here: USER ERROR: MySQLi Error: ( SELECT And indeed the table zenphoto..options does not exist because the database was not created correctly! I am using the docker-compose lamp stack with php74 and mysql57 with only minor modifications to the .env and docker-compose.yml files (apache document root changed and ssl enabled) Any ideas? THX in advance! zenphoto install 1.5.9 - acrylian - 2022-05-27 If localhost does not work you have to enter the hostname or an IP address: Besider that I have no knowledge about Docker nor do I use it. Someone had made a docker image some year ago but it does not look maintained anymore: https://www.zenphoto.org/news/docker-zenphoto/ zenphoto install 1.5.9 - michas - 2022-05-27 Thx acrylian! Where in the zenphoto code do I need to make changes to account for a different database location? The mysql server can simply be accessed by entering 'database' as the database server instead of 'localhost'. This is how it works on the raspberrypi but strangely not on my main server. zenphoto install 1.5.9 - michas - 2022-05-27 Amazing! I got it resolved by inserting 'database' in the zenphoto_cfg.txt file in zp-core. The empty database must always be created first! But using PHPmyAdmin for that (part of the docker compose stack) works like a charm! zenphoto install 1.5.9 - michas - 2022-05-27 I have a full description of how to use the docker-compose lamp stack if anybody is interested zenphoto install 1.5.9 - acrylian - 2022-05-27
Ah, okay. Zenphoto's setup will try to create the database if it does not exists but in most case it is not allowed by the server. So technically it must be already created.
If you can place it somewhere on GitHub or something we gladly link to it, perhaps just as an individual entry like the one I mentioned above. zenphoto install 1.5.9 - acrylian - 2022-05-27
Jsut to add the actual config (php) file is within /zp-data after an install. The .txt file is just the template setup uses to create that file. zenphoto install 1.5.9 - michas - 2022-05-27 I understand that. But editing the zenphoto.cfg.php file didn't do the trick. instead changing the template helped to run the setup correctly zenphoto install 1.5.9 - acrylian - 2022-05-27
If setup cannot create the php version the best way is to copy that template to zp-daten, rename it to .php and then fill the credentials. Because if it is there setup looks there first. Didn't that work? zenphoto install 1.5.9 - michas - 2022-05-27 No it didn't work! This is what caused this thread. I put the correct credentials in the zenphoto.cfg.php file and this let to the error above in the debug.log: zenphoto install 1.5.9 - sbillard - 2022-05-27 You have to put the correct credentials into the config file and then explicitly run setup. If setup has not been run all sorts of bad things might happen. zenphoto install 1.5.9 - michas - 2022-05-28 The setup did not even show up but in the setup.log it looked as if it had completed (after entering the correct credentials into the config file). The "agreement to license" page showed up but when clicking accept nothing happened. The show Gallery click showed a blank page. zenphoto install 1.5.9 - acrylian - 2022-05-28 If you have a fresh install without any config file or any database respectively without tables setup will run automatically actually. If it is an existing install it will not, not even when teh database credentials are wrong, missing. It would be quite bad to expose that to the outside other than on fresh installs. If you reached the licence agreement you must have passed setup. It consists on two pages you cannot miss actually. Take a look here: You can run setup by accessing yoursite-install-path/zp-core/setup/. On existing installs you need to be login with admin rights and may have to enable setup files again.
When ever you get a blank page review your server error log as that usual means a PHP fatal error that can be caused by numerous things. |