Tag archive for ‘httpd’

Howto: Apache adding new modules

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 [...]

Howto: enable HTTP Compression

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: [...]

Linux: Forcing Apache to correct misspellings of URL

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 [...]

Ruby on Rails Installation Script

this script to help install ruby on rails cd /usr/src wget ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.5.tar.gz tar -xzvf ruby-1.8.5.tar.gz cd ruby-1.8.5/ ./configure make make test make install cd /usr/src wget http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz tar -zxvf rubygems-0.8.11.tgz cd rubygems-0.8.11 ruby setup.rb gem update gem install rails –include-dependencies rails /usr/local/rails mv /usr/local/rails/public/.htaccess /usr/local/rails/public/.htaccessfile echo “RewriteBase /rails” > /usr/local/rails/public/.htaccess cat /usr/local/rails/public/.htaccessfile >> /usr/local/rails/public/.htaccess mv /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conffile [...]

500 error when you try to access the website

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” [...]

make mod_security get an error

/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 [...]

How to add a sub-domain in Plesk with www prefix?

Generally, a sub-domain is not accessed using the www prefix i.e. you can access subdomain.domain.tld but cannot access www.subdomain.domain.tld by default. To make a subdomain work with ‘www’ prefix on a Plesk server, you have to add a ServerAlias entry in the vhost configuration of the sub-domain and add an A record from Plesk. Solution: [...]

Chrooting Apache2 With mod_chroot On Fedora 12

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 [...]

How to install SuPHP/phpSuExec on Plesk?

How to install SuPHP/phpSuExec on a Plesk server? SuPHP Or PHPSuExec is a module that increases the security of the server and executes PHP files under the ownership of the owner of the file instead of the Apache user i.e. “apache”. The advantages of having suPHP are: 1. Files and Directories those need 777 permissions [...]

Installing subversion with apache on centos

A step by step guide on installing subversion with http support on centos and redhat machine First of all, install apache/httpd yum install httpd Make sure you apache is running. You can also type ‘http://localhost’ at your browser and apache test page should appear if your apache is running /etc/init.d/httpd status Make it start by [...]

Enter your email address:

Liên Kết Website

web design | Shared linux windows problems | Dedicated server | website chất lượng cao | hosting chất lượng cao | Tutorial video collection | Troubleshooting Tips and Tutorial