sabre-io / Baikal

Baïkal is a Calendar+Contacts server
https://sabre.io/baikal/
GNU General Public License v3.0
2.5k stars 289 forks source link

Fast CGI error /var/www/baikal/config/baikal/yaml does not exist #1126

Closed piscvau closed 2 years ago

piscvau commented 2 years ago

Baikal version: 0.9.2

Expected behaviour: start installation wizard

Current behaviour: displays baikal fatal error: pdo is unavailable. It is required by baikal/

Steps to reproduce:

on xubuntu 20.04 with nginx-light. using Nginx conf file from the installation instructions. included are the Nginx error nginx_error_log.txt and the permissions on the Specific and config directories files_permission.txt

ByteHamster commented 2 years ago

That stack trace you found in the logs is expected when starting Baikal for the first time.

displays baikal fatal error: pdo is unavailable. It is required by baikal

That's the reason for Baikal not starting. You need to install pdo on your server.

piscvau commented 2 years ago

php7.4-mysql is installed on the server. the pdo extension seems to be activated. (see .ini files in pdo.txt pdo.txt In the nginx conf file I modified the fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; see the nginx file included baikal_nginx.txt

piscvau commented 2 years ago

in issue #1036 it seems that the database should be created before. Is this necessary to create the database before installation wizard?

ByteHamster commented 2 years ago

You can create a new file on your webserver with only the content <?php phpinfo();. When opening that file in a web browser, it should have a section about pdo. If it doesn't, you need to find out how to configure this on your server.

It should look something like this:

grafik

Is this necessary to create the database before installation wizard?

Yes, at least if you want to use mysql, but that is not your issue here. The pdo driver is not found.

piscvau commented 2 years ago

Thanks. It was probably a mixed of different php packages. Solved by : sudo apt purge php then follow tutorial https://computingforgeeks.com/how-to-install-php-on-ubuntu/