I am having some issues with setting up a web development environment. I am new to fedora desktop, coming from a macbook, but really loving it.
I recently discovered the fedora docs and used this to setup postfix and dovecot with a little tweaking using other resources online… just to test my app sending email etc.
However for httpd and php8.3, I simply just used dnf install
and it was up and running. Some issues came up.
PHP did not provide a dev-php.ini and was setup as production, so I do not have all the error reporting and had to initiate the display errors in my code if app is local.cc type deal.
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
This was also different than what I was used to because changing the setting in /etc/php.ini did nothing on rebooting httpd, I had to find and reboot systemctl restart php-fpm.service
. This is not a big deal cause php still works and I was most likely using a different setup of PHP in mac brew as the docs shows them here
What really sucks is that httpd isn’t logging errors after setting up a vhost in /etc/httpd/conf.d/domain.conf
with the following directives
<VirtualHost *:80>
ServerName localsmb.cc
DocumentRoot /var/www/smb
ErrorLog /var/log/httpd/smb_error.log
CustomLog /var/log/httpd/smb.log combined
<Directory /var/www/smb>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
The access log works just fine in /var/log/httpd/smb.log
and there are entries when tailing it. But my error log has nothing, empty, /var/log/httpd/smb_error.log
. I even removed the file and reboot httpd and it did get re-created but still no logs.
So I guess my question is how can I fix or config my php as development (or I live with display errors in my code), and how can I fix apache to write to my vhost error logs, because that is important for me.
I have not touched anything more in httpd, and php other than changing the post files to 200M and such.
thanks for any advice.