Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
8
rated 0 times [  8] [ 0]  / answers: 1 / hits: 22058  / 1 Year ago, tue, may 23, 2023, 4:20:00

I have found a question very similar to this, which I thought would solve my problem.



However, after changing my .htaccess file, with index.php on the end of the list, and then index.php as the only entry, I still cannot get index.php to display. Every other page works fine, but I don't know how to fix this. Thanks.


More From » apache2

 Answers
3

With a 500 error, you'll always want to start with checking your logs, in this case:



tail -f /var/log/apache2/error.log


You commented that the error log indicated:




PHP Parse error: syntax error, unexpected 'version' (T_STRING) in /var/www/index.php on line 1




This indicates that the content of index.php itself is likely the problem. Check line 1 for either a quoting issue of some sort (wrong number of quotes?) or perhaps the ; was left off the end of the line.


[#34353] Wednesday, May 24, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ardingiba

Total Points: 497
Total Questions: 95
Total Answers: 109

Location: Gabon
Member since Sat, Jan 15, 2022
2 Years ago
;