How to turn of safe_mode in Plesk? There are 2 ways to turn off safe_mode for a domain in Plesk. 1) From the Plesk control panel. Login to Plesk >> click “Domains” >> click “domainname.tld” >> click “WebSite Settings” >> make sure PHP support is checked, but “safe_mode” is unchecked >> click Save. 2) The [...]
If the .htaccess has an error you should get a 500 error when you try to access the website. Is that the case? You can check if mod_rewrite is compiled in with Apache doing: httpd -l | grep mod_rewrite.c If it’s not then you should re-compile Apache. You could also enable mod_rewrite logging: RewriteLog “/var/log/httpd/rewrite.log” [...]
A chroot on Red Hat / CentOS / Fedora Linux operating changes the apparent disk root directory for the Apache process and its children. Once this is done attacker or other php / perl / python scripts cannot access or name files outside that directory. This is called a “chroot jail” for Apache. You should [...]
December 19th, 2011 |
admin |
Some one posted about, “What is Modules in Linux and how to add it in apache,” on our forum. Therefore, I decided to create a small howto for adding new modules under Apache. The Apache HTTP Server is a modular program. So as a UNNIX/Linux administrator you can choose the functionality to include in the [...]
December 17th, 2011 |
admin |
Apache has mod_speling for automatic URL spell-correction. For example when on this site you can request the page using following format: This module help visitor to get correct content instead of error 404 – document not found and you can also omit file extension such as .pl, .php, .html etc in urls references. It attempts [...]
December 16th, 2011 |
admin |
/usr/lib64/apr-1/build/libtool –silent –mode=compile gcc -prefer-pic -DLINUX =2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/include -I/usr/include/apache -I/usr/include/apr-1 -I/usr/include/apache -O2 -g -Wall -DWITH_PCRE _STUDY -DMODSEC_PCRE_MATCH_LIMIT=1500 -DMODSEC_PCRE_MATCH_LIMIT_RECURSION=1500 – I/usr/include/apache -I/usr/include/apache -I. -I/usr/local/directadmin/custombuild/httpd-2.2.17/srclib/apr/include -I/usr/local/directadmin/custombuild/httpd-2.2.17/srclib/apr-util/include -I/usr/local/directadmin/custombuild/httpd-2.2.17/ srclib/apr-util/xml/expat/lib -I/usr/local/include -I/usr/include -I/usr/kerberos/include -I/usr/local/include -I/usr/local/include/libxml2 -c -o msc_pcre.lo m sc_pcre.c && touch msc_pcre.slo msc_pcre.c: In function ‘msc_pregcomp_ex’: msc_pcre.c:73: error: invalid application of ‘sizeof’ to [...]
December 12th, 2011 |
admin |
This guide explains how to set up mod_chroot with Apache2 on a Fedora 12 system. With mod_chroot, you can run Apache2 in a secure chroot environment and make your server less vulnerable to break-in attempts that try to exploit vulnerabilities in Apache2 or your installed web applications. I do not issue any guarantee that this [...]
December 10th, 2011 |
admin |
When PHP is not compiled with Mysql, you see the error Fatal error: Call to undefined function mysql_connect() in filename.php on line xx on your website though the database details mentioned in the configuration file are correct. In order to solve the problem, install the “php-mysql” package using yum # yum install php-mysql Once installed, [...]
December 10th, 2011 |
admin |
How to enable HTTP Compression? In order to enable compression, you will need compression modules compiled with Apache. Apache 1.x needs mod_gzip and Apache 2.x need mod_deflate compiled with it. If you have these module installed, you need to edit your Apache configuration file locate at “/etc/httpd/conf/httpd.conf” file and add the following lines to it: [...]
December 8th, 2011 |
admin |
The steps to install the PHP ‘Fileinfo’ module on a Linux server is as below: 1) Download and untar the package # wget http://pecl.php.net/get/Fileinfo-1.0.4.tgz # tar -zxf Fileinfo-1.0.4.tgz # cd Fileinfo-1.0.4 2) Generate the extension for compiling # phpize 3) Configure the module # ./configure 4) generate the install files and install it # make [...]