oweeya Posted November 30, 2022 Posted November 30, 2022 (edited) Got a task to implement a booking system at the company that I'm currently having intern at. Found Classroombookings and decided to use it for it positive feedbacks. But currently I'm having issue with the installation of the program. I'm following the directions in the documentations but somehow it just never seems to work for me. The only thing I get when accessing the index.php is a 404 Not Found error. Nothing can be found on logs and the I can't seem to make use of the .env in the troubleshooting documentation too. I'm trying to install it in a VM and here's the config: Ubuntu Server 22.04 Nginx 1.23.2 PHP7.3 MariaDB 10.6.11 Any help or guidance is much appreciated as I'm very much new to all these. EDIT: restarted the VM entirely, now the installation seems to be working. The web server used was Nginx before the VM is shut down and it changed to Apache when it got restarted. Does this means that Classroombookings doesn't work with Nginx as web server dspite having Nginx listed as supported in the requirements or am I just having wrong configurations somewhere in Nginx? Edited November 30, 2022 by oweeya
webman Posted November 30, 2022 Posted November 30, 2022 Hi oweeya, thanks for trying classroombookings (author here). From your post, it sounds like PHP might not be set up or working directly with Nginx. PHP operates differently depending on whether it's running under Apache (usually as a module) or Nginx (usually as 'FastCGI') and the approach for each is a bit different. The cloud service runs on native Nginx, so it's definitely possible. If you haven't already, start by looking at the Nginx/PHP setup, and make sure that Nginx can handle and process PHP files properly. Here's a guide that seems to cover most of what's required, but most Ubuntu-PHP-Nginx instructions are likely to cover it. Once you have a phpinfo() page working, you should be good to go. Server set up is beyond the scope of the free support that I can reasonably provide, but hopefully that points in you in the right direction. If you get the phpinfo() page working but classroombookings still won't load, post back with some more details and we can take it from there Craig
oweeya Posted November 30, 2022 Author Posted November 30, 2022 I'm sorry it seems that I have missed out some important info regarding the PHP-FPM. Yes I have checked that PHP-FPM is installed and running well prior to installing CRBS. I have tried to run other PHP scripts using Nginx aside from the phpinfo and yes they do work. But when I tried to run the index.php for CRBS it will surely fail which is 404 Not Found.
webman Posted December 2, 2022 Posted December 2, 2022 Hi oweeya, thanks for confirming PHP is working OK! I've had a look at a new, native Nginx install, and the key bit seems to be this section: location / { try_files $uri $uri/ /index.php?$query_string; } Make sure your `/` location has a `try_files` directive that looks like that. Reload the Nginx service, and try the classroombookings install page again. 1
oweeya Posted December 3, 2022 Author Posted December 3, 2022 Thanks for the tips. Now it is able to be run using Nginx.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now