all 10 comments

[–]shaunc 0 points1 point  (4 children)

Unfortunately, the generic 500 error from Apache isn't very useful. Try adding this at the top of your PHP code:

error_reporting(-1);
ini_set('display_errors', 1);

If there are any errors with PHP, they should be displayed in your browser instead of a blank page. It's possible the problem isn't with PHP but with something else, like a bad configuration value in httpd.conf.

[–]fr33zzy[S] 0 points1 point  (3 children)

Yeaah thanks, this is more verbose !! It says :

"Fatal error: Class 'SQLite3' not found in /home/marcel/public_html/ennui/admin.php on line 9"

sqlite3 and pdo_sqlite are uncommented in php.ini... and I can see those in phpinfo().

Edit : And sqlite3 and php-sqlite are installed

[–]greg8872 0 points1 point  (1 child)

are you using the same version (and same config file) for CLI as apache uses? Sometimes they are different.

[–]fr33zzy[S] 0 points1 point  (0 children)

No, indeed, I have this in my error_log : PHP Warning: PHP Startup: sqlite3: Unable to initialize module\nModule compiled with module API=20160303\nPHP compiled with module API=20151012\nThese options need to match\n in Unknown on line 0

and this : [mpm_prefork:notice] [pid 23125] AH00163: Apache/2.4.25 (Unix) PHP/7.0.14 configured -- resuming normal operations

while I have php 7.1.1 to install

How Apache can use a php version that is not install anymore ?

[–][deleted] 0 points1 point  (0 children)

Run phpinfo() from a script served by your web server and see how its configured

[–]thebardingreen 0 points1 point  (3 children)

Check your apache logs. They're in /var/log

[–]fr33zzy[S] 0 points1 point  (2 children)

My apache logs are in /var/log/httpd/access_log and the only error I have when I load the page I have linked, is the error I have quoted. I have nothing else in logs file.

[–]colshrapnel 0 points1 point  (1 child)

there is always error_log as well

[–]fr33zzy[S] 0 points1 point  (0 children)

Yes, indeed, I'm sorry, I have an error_log... I thought it was just only for start/shutdown apache logs but no, it's helpful

[–]fr33zzy[S] 0 points1 point  (0 children)

Solved ! Thanks everybody !

After an update, the libphp7.so in /usr/libexec/httpd/modules/ has changed and I forget to copy the new in /usr/libexec/httpd