Running PHP 8.2, Ioncube present, Ubuntu environment. 500 error gives no clues, Error handling turned on, would expect verbosity on the screen, would expect errors area of the DA web interface for the domain my.domain.com to be telling me something.
For the sake of competeness, much earlier, there is one solitary complaint within the errors area of the DA web interface relating to SSL - but I believe this will have resolved itself and it was from when I first created the domain. Let's Encrypt generally fixes such issues within not very long - hours at most. I have tried again after several hours and the error has not regenerated anyway.
Per @RichardG 's reply on post
https://forum.directadmin.com/threads/where-is-the-php-error-log-location.61012/, although I may have misunderstood it, I added to the .htaccess within the directory that I am trying to run the PHP Script (my.domain.com/public_html/blesta) and in attempting to run blesta/install.php and just hitting /blesta:
Aren't php errors also logged in your domains error logfile? You should be able to visit that one via your DA panel as user under Site Summary / Statistics / Logs.
Otherwise, in apache, you could add something like this temporarily in the .htaccess file:
Code:
php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on
php_flag log_errors on
php_value error_log /home/user/domains/domain.com/public_html/PHPERROR.log
Whilst I appreciate that this is an old post, I received some animosity in a separate post suggesting that I had not checked the forums and defending old posts as still relevant on the basis that DA had not changed that much - so, if there is to be any criticism of doing that, I can't win.
I appreciate that Richard's comment says "in Apache". I interpreted this as "when running Apache" as it's the first time that I have heard of creating a .htaccess file for a non public directory. In any event, going down this route is hardly ideal to attempt to compensate for something that a stock DA install should do out of the packet and where DA's easy installer is clearly intended to ensure that, on a clean VPS, it runs as expected. I am running Ubuntu but I rather doubt this changes the price of fish otherwise I would have expected errors in the install where DA could not do what it intended....
Unfortunately, it didn't work anyway.
I am totally stumped, DA clearly has a place within the Web interface for errors to be logged and yet it doesn't log the errors. I am trying to run a PHP Script, it is generating a 500 error, without an error log that works, DirectAdmin isn't fit for purpose and it's like looking for a needle within a haystack, particularly with a lack of easy checking of modules. I share Richard's view expressed in the further commentary for another post reply in the above weblink for his reply:
That's the same I pointed out in my first reply "Site Summary / Statistics / Logs".
Those are the webserver domain error logs. They do not always show all php errors as I discovered. That's why I wrote the additional .htaccess option.
I'll do a PHPinfo file and see if that shows any modules not available. I'll also try an install in a subdirectory of public_html. I can confirm that ioncube is present as it was requesting an update as part of DA yesterday. I can confirm that a variety of other PHP based scripts, such as WordPress and Joomla work fine so PHP is running. BTW, i'm running PHP 8.2 on the domain.
I'll raise a ticket as a backup but i'm highly unimpressed. Not your fault Floyd, I appreciate your help and if you have any further comments, please let me know. I shall post a follow-up too.
Many thanks.