http error 500 after first install
-
- Posts: 5
- Joined: Thu Nov 11, 2021 3:03 pm
- Has thanked: 4 times
http error 500 after first install
Hi all,
I got an http error 500 with the following message :
This page isn’t working
www.mysite.fr is currently unable to handle this request.
HTTP ERROR 500
This message occurs when I attempt to access either the backend or the frontend after a successful installation.
Any idea what happen?
Thank you for your help.
I got an http error 500 with the following message :
This page isn’t working
www.mysite.fr is currently unable to handle this request.
HTTP ERROR 500
This message occurs when I attempt to access either the backend or the frontend after a successful installation.
Any idea what happen?
Thank you for your help.
-
- PhoenixCart Developer
- Posts: 1209
- Joined: Sat Dec 21, 2019 8:08 am
- : Buy Me A Beverage
- Has thanked: 38 times
- Been thanked: 103 times
Re: http error 500 after first install
Need Help?viewtopic.php?f=10&t=27
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
-
- VIP Member
- Posts: 13
- Joined: Sat Sep 04, 2021 5:32 am
- Has thanked: 5 times
- Been thanked: 1 time
Re: http error 500 after first install
In addition to the link Raiwa posted you should also look at the error_log file on your server - it should be in the root level of your store. Before you do, go to your website and generate the error and note the time. When you access the error_log scroll to the end and find the entries that correspond to your access time. These entries may provide a pointer to what is going wrong.
Re: http error 500 after first install
As PandV says, the error log will hopefully show you what or where the error is.
The pages are created server side so something is stopping the server from building the page.
I would also suggest you double check the url to your site and the level it sits on your server in case you simply can't find the page.
Usually public_html is the initial directory for sites on the server and your index.php will sit in there with the site files.
However, if its mysite.fr/mycart/ then all the files should be in the mycart directory. The admin will be mysite.fr/mycart/admin (always rename admin to something more unique and secure).
The pages are created server side so something is stopping the server from building the page.
I would also suggest you double check the url to your site and the level it sits on your server in case you simply can't find the page.
Usually public_html is the initial directory for sites on the server and your index.php will sit in there with the site files.
However, if its mysite.fr/mycart/ then all the files should be in the mycart directory. The admin will be mysite.fr/mycart/admin (always rename admin to something more unique and secure).
-
- Posts: 5
- Joined: Thu Nov 11, 2021 3:03 pm
- Has thanked: 4 times
Re: http error 500 after first install
Thank you for your suggestion to check out the apache's error_log file.
I just did and obtained an access denied for the required file (application_top.php).
I really do not understand why I obtain this.
The error_log file reports as follow:
[Fri Nov 12 15:46:56.761347 2021] [php7:warn] [pid 347512:tid 139766062368320] [client ::1:46702] PHP Warning: require(includes/application_top.php): failed to open stream: Permission denied in /var/www/localhost/htdocs/pdei/index.php on line 18
[Fri Nov 12 15:46:56.761940 2021] [php7:error] [pid 347512:tid 139766062368320] [client ::1:46702] PHP Fatal error: require(): Failed opening required 'includes/application_top.php' (include_path='.:/usr/share/php7:/usr/share/php') in /var/www/localhost/htdocs/pdei/index.php on line 18
And the command "ls -l includes/application_top.php" tells this:
-rw-r--r-- 1 jclaude apache 1027 12 nov. 10:25 includes/application_top.php
which is correct. Access is granted to the owner as read/write and as read for the group an others.
Can you help me with this issue please?
Thank you in advance.
JClaude66700
I just did and obtained an access denied for the required file (application_top.php).
I really do not understand why I obtain this.
The error_log file reports as follow:
[Fri Nov 12 15:46:56.761347 2021] [php7:warn] [pid 347512:tid 139766062368320] [client ::1:46702] PHP Warning: require(includes/application_top.php): failed to open stream: Permission denied in /var/www/localhost/htdocs/pdei/index.php on line 18
[Fri Nov 12 15:46:56.761940 2021] [php7:error] [pid 347512:tid 139766062368320] [client ::1:46702] PHP Fatal error: require(): Failed opening required 'includes/application_top.php' (include_path='.:/usr/share/php7:/usr/share/php') in /var/www/localhost/htdocs/pdei/index.php on line 18
And the command "ls -l includes/application_top.php" tells this:
-rw-r--r-- 1 jclaude apache 1027 12 nov. 10:25 includes/application_top.php
which is correct. Access is granted to the owner as read/write and as read for the group an others.
Can you help me with this issue please?
Thank you in advance.
JClaude66700
Last edited by JClaude66700 on Fri Nov 12, 2021 6:33 pm, edited 1 time in total.
- Kofod95
- VIP Member
- Posts: 612
- Joined: Sat Feb 06, 2021 7:38 pm
- Has thanked: 80 times
- Been thanked: 142 times
Re: http error 500 after first install
How about the folder 'includes'?
//Daniel
//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
Here are a lot of corns: Phoenix user guide
-
- Posts: 5
- Joined: Thu Nov 11, 2021 3:03 pm
- Has thanked: 4 times
Re: http error 500 after first install
As a precision, I am using:
CE-Phoenixcart version 1.0.8.7
PHP PHP 7.3.32
I installed add-ons for languages Spanish, French, German and Italian
with installation remaining in English.
It is a new installation.
The folder includes lists as follow:
CE-Phoenixcart version 1.0.8.7
PHP PHP 7.3.32
I installed add-ons for languages Spanish, French, German and Italian
with installation remaining in English.
It is a new installation.
The folder includes lists as follow:
namica-10 /var/www/localhost/htdocs/pdei # ls -l includes/
total 268
drwxr--r-- 2 jclaude apache 4096 11 nov. 15:44 actions
-rw-r--r-- 1 jclaude apache 758 29 oct. 16:00 application_bottom.php
-rw-r--r-- 1 jclaude apache 1027 12 nov. 10:25 application_top.php
drwxr--r-- 5 jclaude apache 4096 29 oct. 16:00 apps
-rw-r--r-- 1 jclaude apache 204235 29 oct. 16:00 cacert.pem
drwxr--r-- 3 jclaude apache 4096 11 nov. 15:44 classes
-rw-r--r-- 1 jclaude apache 1565 12 nov. 09:47 configure.php
drwxr--r-- 2 jclaude apache 4096 11 nov. 15:44 functions
-rwxr-xr-x 1 jclaude apache 4449 29 oct. 16:00 general.js
drwxr--r-- 3 jclaude apache 4096 29 oct. 16:00 hooks
drwxr--r-- 7 jclaude apache 4096 11 nov. 15:46 languages
drwxr--r-- 2 jclaude apache 4096 11 nov. 15:44 local
drwxr--r-- 14 jclaude apache 4096 11 nov. 15:44 modules
-rwxr-xr-x 1 jclaude apache 1000 29 oct. 16:00 spiders.txt
drwxr--r-- 4 jclaude apache 4096 11 nov. 15:44 system
-rw-r--r-- 1 jclaude apache 8 29 oct. 16:00 version.php
drwxr--r-- 2 jclaude apache 4096 11 nov. 15:44 work
namica-10 /var/www/localhost/htdocs/pdei #
-
- Posts: 5
- Joined: Thu Nov 11, 2021 3:03 pm
- Has thanked: 4 times
Re: http error 500 after first install
I do run my site on localhost, and the configuration I have is similar to the two other sites I manage locally, and these two run perfectly on my computer. I am under Linux with Apache2, PHP 7.3 and MySQL.Nigel wrote: ↑Fri Nov 12, 2021 10:37 am As PandV says, the error log will hopefully show you what or where the error is.
The pages are created server side so something is stopping the server from building the page.
I would also suggest you double check the url to your site and the level it sits on your server in case you simply can't find the page.
Usually public_html is the initial directory for sites on the server and your index.php will sit in there with the site files.
However, if its mysite.fr/mycart/ then all the files should be in the mycart directory. The admin will be mysite.fr/mycart/admin (always rename admin to something more unique and secure).
-
- Posts: 5
- Joined: Thu Nov 11, 2021 3:03 pm
- Has thanked: 4 times