error logging / troubleshooting

dandumit

Verified User
Joined
Feb 14, 2021
Messages
16
hello all,
I have installed :
OS: almalinux 8
Webserver : nginx + apache. would it be to ambitious ?
PHP-FPM : 7.3
Application : prestashop

I get error 500
I am looking on USer: syte summary logs and I don't see the error .
I have added on account manager > php settings to show all php errors but still nothing. is there any other place to see the error log ?
Where else to look for error details ?

Thank you,
Daniel
 
hello all,
I have installed :
OS: almalinux 8
Webserver : nginx + apache. would it be to ambitious ?
PHP-FPM : 7.3
Application : prestashop

I get error 500
I am looking on USer: syte summary logs and I don't see the error .
I have added on account manager > php settings to show all php errors but still nothing. is there any other place to see the error log ?
Where else to look for error details ?

Thank you,
Daniel

1) You are using an operating system that is not supported by Directadmin
2) It's likely this is a web application issue (prestashop) and might not related to Directadmin at all.



For your information, in order to see PHP error, you need to enable debugging mode in prestashop

Open config/defines.inc.php

define('_PS_MODE_DEV_', false);

change it to:

define('_PS_MODE_DEV_', true);

If this is related to PHP or web application, you will see PHP error message. Sometimes error 500 also caused by server misconfiguration.
 
Thank you for answering. AlmaLinux it's listed as supported.
I know how to enable debug. Question it's that I don't see error in logs.
Where should I look for php error log file ? in apache error log ?
Thank you
Daniel
 
@dandumit Ok thats new. I just found this post about AlmaLinux support https://forum.directadmin.com/threads/almalinux-support.63087/ . Maybe it was listed few days ago based on OS support request date there.

Based on your request:

Login as your web user, Click on Site Summary / Statistics / Logs

You will see Error Log there

Something like this:

1613405311462.png



or through terminal (by default you will have both nginx and apache log when using nginx_apache)

Code:
/var/log/httpd/domains/yourdomain.error.log
/var/log/nginx/domains/yurdomain.error.log

Does it help ?
 
Last edited:
Please post back the result. For your information, I'm working with the new Prestashop since last week with the latest version 1.7.7.1. I have no problem running it with the latet DA version (using PHP 7.3). So take this chance to ask me before I leave this project.
 
( @maxi32 - a bit off topic but I saw some errors that are probably due to this new system )

You are my friend !!! I am trying to install as well presta 1.7.7.1 .
Please tell me , default config of nginx+apache is it working ?
for nginx - have you saved that fancy parsing of img folder ?
have you set that "false" cdn1 cdn2 cdn3 to paralelize and load faster static assets ?
 
Thank you for answering. AlmaLinux it's listed as supported.
I know how to enable debug. Question it's that I don't see error in logs.
Where should I look for php error log file ? in apache error log ?
Thank you
Daniel
Almalinux is Beta software currently. I wouldn't be using this in production. It shows
AlmaLinux / RHEL / CentOS7.x 64-bit, 8.x 64-bit
not Almalinux Beta. Just FYI. So if you are just testing a setup fine. The Distro is barely a few weeks old so expect lots of bugs.
 
AlmaLinux it's listed as supported.
Show me where? It's not on the main site and in the thread maxi32 is pointing to it's an assumption.
So be aware of this and use at your own risk, like bdacus01 says, it's beta and very new.
 
( @maxi32 - a bit off topic but I saw some errors that are probably due to this new system )

You are my friend !!! I am trying to install as well presta 1.7.7.1 .
Please tell me , default config of nginx+apache is it working ?
for nginx - have you saved that fancy parsing of img folder ?
have you set that "false" cdn1 cdn2 cdn3 to paralelize and load faster static assets ?

I use memcached (no CDN).

For PHP config, look at this: https://devdocs.prestashop.com/1.7/basics/installation/system-requirements/

I don't think sharing my config will make your prestashop run because you might be using different hardware. If you have error code, you can PM me and I will help you to solve it without no charge

Also, as suggested by @bdacus01 you should use other operating system.

I personally like to use Debian.


Show me where? It's not on the main site and in the thread maxi32 is pointing to it's an assumption.
So be aware of this and use at your own risk, like bdacus01 says, it's beta and very new.

It's here:


1613407624301.png
 
I use memcached (no CDN).
that's not a real cdn. in presta > Advanced Parameters >Performance
scroll down and there are 3 text boxes to declare 3 so called cdn's. I have declared 3 subdomains that are pointing to /img/ folder.
in conjuntion with nginx should serve very fast static content
 
related to fact that AlmaLinux it's still beta , this all server will host only some of my websites and there will be probably 1-2 months until I will get one order on it.
 
Back
Top