I have just upgraded to the 2023 version from 2020 and there is a lot of difference between the 2 versions.I am struggling to get the project to run on my webserver.When I view it all I get is a blank page, not even an error.I have gone through all the requirements, for instance I know that mode rewrite is enabled as I do use this.I have changed the values in Tools → Advanced Settings and set the RewriteBase directive as it is running in a sub directory. In fact 2 directories down on development server but will only be 1 on the live server.I have also tried it at the root level and still displays a blank page.The AllowOverride is set to All and Require all granted as well in the sites .conf file.In fact it has options afterAllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatchEven removing the options still has the same result.I can generate an error if I remove the initial / at the start of the RewriteBase in the .htaccess file. It will give me the Internal Server ErrorI have even changed the MYSQL password in the config-production.php so it’s incorrect hoping that would give an error and it does not.I am using Ubuntu 20.04.6 as my development server and Ubuntu 20.04.6 / 22.04.2 for all my live servers.
I have all versions of php installed from 7.0.33 – 8.2.4 and it does not run on any of them.
Apache is the latest version as I do keep all servers updated.
MYSQL on development and MariaDB on my live server.
I use Virtualmin to administer my servers.I use my own servers which I setup, configure and host myself, so I have full access to all configuration.My project is a new project started in version 2023 (not converted). I have not added any user authentication yet.I get the same results on both my development and live servers.I’m sure that it will be something small that I have missed or not set correctly.
- Make sure you have enabled mod_rewrite, see URL Rewrite for details.
- Enable error log in your Apache server, run the site and check Apache’s error.log file, you may google “apache error log” for more info.
I have now found out where the problem is, I am missing vendor/autoload.php. This directory and file are not in the generated project.And also usr/share/php’ is not thereI replaced the directory names with ---- in the below log.[Thu Apr 06 08:19:51.059733 2023] [fcgid:warn] [pid 9067] [client 192.168.0.102:50241] mod_fcgid: stderr: PHP Warning: require_once(vendor/autoload.php): Failed to open stream: No such file or directory in /home/local/public_html/-----/------/index.php on line 25
[Thu Apr 06 08:19:51.082833 2023] [fcgid:warn] [pid 9067] [client 192.168.0.102:50241] mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Failed opening required ‘vendor/autoload.php’ (include_path=‘.:/usr/share/php’) in /home/local/public_html/------/------/index.php:25
[Thu Apr 06 08:19:51.082871 2023] [fcgid:warn] [pid 9067] [client 192.168.0.102:50241] mod_fcgid: stderr: Stack trace:
[Thu Apr 06 08:19:51.082882 2023] [fcgid:warn] [pid 9067] [client 192.168.0.102:50241] mod_fcgid: stderr: #0 {main}
[Thu Apr 06 08:19:51.082892 2023] [fcgid:warn] [pid 9067] [client 192.168.0.102:50241] mod_fcgid: stderr: thrown in /home/local/public_html///index.php on line 25
You may delete all the generate script folder/files, and try to re-generate ALL the script files again.
Thank you very muchThe computer I have PHPMaker on does not access the internet, I did put it on the internet when I put my Licence key in and I updated the packages.Now when I generate the project it downloads more and it generates all files. This now works for me.The only part that is not working is the image display for uploaded images and the upload of images is not working, this is only on my live server, they work fine on my development server.So there must be a php extension missing?
You may enable debug and also check http response to see the cause in more detail.
Ok, thanks, all working now properly.Really appreciate your help.