httpd
Apache httpd won’t stop doing reverse DNS requests for clients’ IPs
It seems the standard Ubuntu 8.04 Apache httpd install comes with a LogFormat that starts with %h and that does a client IP’s RDNS lookup. Why oh why?? Replacing it with %a (remote IP address, see custom log formats) reduces this problem by ca. 90%. Some remain…
PHP Hostname not correct
My first guess would be /etc/hosts which can override DNS (if it exists for the host) and substitute almost entirely for forward DNS when it’s missing. For whatever reason this host (dbl) was in /etc/hosts and then it wasn’t. Secondarily, let’s say /etc/resolv.conf lost the search option for the local domain, so that dbl.foo.com resolves … Read more
Why is https not working?
OK, try this: telnet localhost 443 Does that give a response, or does it hang? If it’s responding, you should get something that looks like: $ telnet localhost 443 Trying 127.0.0.1… Connected to localhost.localdomain (127.0.0.1). Escape character is ‘^]’. (if telnet is not installed, then install it; you can exit the telnet session by hitting … Read more
Is it possible to create Custom Error Log in Apache 2.2?
For piping see the ErrorLog directive and Piped Logs official manual entries which explain it pretty well. Getting a custom error log format is more difficult. You can customize the access log easily with LogFormat but there is nothing built in for modifying the error log format. I did come across CGI::Carp which is a … Read more
Disable modsecurity For a Specific Directory
SecRuleEngine Off must work . Have you tried to put SecRuleEngine inside Directory: <Directory /var/www/site/phpMA> SecRuleEngine Off </Directory> instead of LocationMatch ?
Apache / httpd not starting automatically on boot
Use chkconfig to manage the runlevels under which you want this service to start. Usually chkconfig httpd on does the job.
How to get a core dump from apache when segfaulting
My answer is this: Set up the directive as follow CoreDumpDirectory /tmp/mycoredump Create the directory: mkdir -p /tmp/mycoredump Assign ownership to the directory www-data or httpd chown -R www-data:www-data /tmp/mycoredump Set permissions to: chmod 777 /tmp/mycoredump Restart Apache: service apache2 restart
why isn’t laravel’s php artisan serve server being accessible from the WWW on IIS
To get it to work outside of localhost, do php artisan serve –host 0.0.0.0 If you want it to work without specifying the port in the browser, php artisan serve –host 0.0.0.0 –port 80. sudo will likely be required. Note: php artisan serve should never be used for production. It’s for dev and demonstration only … Read more
Error Start Apache “php value”
I recently ran into this exact problem using Plesk 9.5 on CentOS. I cannot say for sure whether it was caused by an update to Plesk, or not. The customer doesn’t think any changes were made recently, but Apache failed to start with this error. After an assesment of the system to ensure it wasn’t … Read more