≡ Menu

Apache

CentOS / RHEL 5/6: Uninstall Apache (HTTPD) Server

I do not want to use Apache server on a CentOS / RHEL 6 server. How do I uninstall and remove Apache (HTTPD) server using command line option on Red Hat Enterprise Linux / CentOS / Fedora Linux based server?
[click to continue…]

Apache 2: Reload HTTPD Configuration File Without Restarting Apache Config Changes

I made changes to the httpd.conf file. How do I reload the new config changes without restarting the Apache 2 web server under Debian / CentOS Linux operating systems?
[click to continue…]

Apache / Nginx / Lighttpd: PHP Disable File Upload

I am in the process of setting Apache and PHP for my small business server. I’m not utilizing file upload functionality in any of my PHP scripts. How do I disallow uploading files under CentOS or Ubuntu Linux based LAMP server?
[click to continue…]

curl: If-Modified-Since Command Linux / Unix Example

HTTP protocol allows a client to specify a time condition for the document it requests. It is If-Modified-Since or If-Unmodified-Since. How do I use curl Unix/Linux command line option to test a server with If-Modified-Since condition and validate Last-Modified settings?
[click to continue…]

CentOS / RHEL 6: Install Suhosin PHP Advanced Protection System

Suhosin is an open source patch for PHP. How do I install suhosin under CentOS / Red Hat Enterprise Linux server running on my IBM server?
[click to continue…]

Linux / Unix Curl: Find Out If a Website Is Using Gzip / Deflate

How do I find out if a web-page is gzipped or compressed using Unix command line utility called curl? How do I make sure mod_deflate or mod_gzip is working under Apache web server?
[click to continue…]

Default robots.txt File For Web-Server

How do I create a default robots.txt file for the Apache web-server running on Linux/Unix/MS-Windows server?
[click to continue…]

How To Set Readonly File Permissions On Linux / Unix Web Server DocumentRoot

How do I set a read-only permission for all of my files stored in /var/www/html/ directory?
[click to continue…]

Mediawiki PHP Fatal error: Cannot redeclare wfProfileIn() Error and Solution

I‘m running the Mediawiki software under Apache web server running on the Unix operating systems. I’m getting the following in my php error log:

PHP Fatal error: Cannot redeclare wfProfileIn() (previously declared in /var/www/html/wiki/includes/profiler/Profiler.php:14) in /var/www/html/wiki/includes/ProfilerStub.php on line 25.

How do I fix this problem under Mediawiki version 1.18.0?
[click to continue…]

Ubuntu Linux: Add a User To Group www-data ( Apache Group )

How do I a user to the Apache group called www-data under Ubuntu or Debian Linux server operating systems?
[click to continue…]