|
|
... and create three new index files, one in German (index.html.de), one in English (index.html.en), and one in French (index.html.fr):
vi /var/www/index.html.deLinux and Open Source, Desktop,Firewall,Red Hat Inc.,Fedora Project,GNOME,Fedora 15,Linux,Open Source,Operating Systems, Debian GNU/Linux, arch linux, puppy linux, freebsd, openbsd, vector, freespire, Software
|
|
... and create three new index files, one in German (index.html.de), one in English (index.html.en), and one in French (index.html.fr):
vi /var/www/index.html.de|
|
|
|
|
|
New password for the MySQL "root" user: <-- yourrootsqlpassword
Repeat password for the MySQL "root" user: <-- yourrootsqlpassword
3 Installing Apache2
Apache2 is available as an Ubuntu package, therefore we can install it like this:
apt-get install apache2Now direct your browser to http://192.168.0.100, and you should see the Apache2 placeholder page (It works!):
View the Original article
|
|
This tutorial explains how you can configure Apache2 to set the HTTP Expires header and directive max - age of the HTTP Cache-Control header for static files (such as images, CSS and Javascript files) to a date in the future so that these files will be cached by browsers of your visitors. This saves bandwidth and makes your web site appear more quickly (if a user visits your site for a second time, static files will be recovered in the browser cache). This tutorial was written for Debian Squeeze.
For more information on HowtoForge
Comments (0)

View the original article here
|
|
This guide explains how to set up WebDAV with Apache2 on a Mandriva 2010.1 Spring server. WebDAV stands for Web-based Distributed Authoring and Versioning and is a set of extensions to the HTTP protocol that allow users to directly edit files on the Apache server so that they do not need to be downloaded/uploaded via FTP. Of course, WebDAV can also be used to upload and download files.
I do not issue any guarantee that this will work for you!
1 Preliminary Note
I'm using a Mandriva 2010.1 Spring server with the IP address 192.168.0.100 here.
2 Installing WebDAV
First, we update our package database:
urpmi.update -aNext we install Apache and the Apache WebDAV module:
urpmi apache apache-mod_davNext we open /etc/httpd/conf/httpd.conf and uncomment the following three lines in the LoadModule section (make sure you delete the following string at the end of these lines because otherwise Apache might complain about a syntax error: -> available in the apache-mod_dav package):
vi /etc/httpd/conf/httpd.conf|
|
This tutorial describes how you can install Apache2 with mod_fcgid and PHP5 on Ubuntu 10.10. mod_fcgid is a compatible alternative to the older mod_fastcgi. It lets you execute PHP scripts with the permissions of their owners instead of the Apache user.
I do not issue any guarantee that this will work for you!
1 Preliminary Note
I'm using an Ubuntu 10.10 server in this tutorial with the hostname server1.example.com and the IP address 192.168.0.100.
I will create two Apache vhosts in this tutorial, www.example1.com and www.example2.com, to demonstrate the usage of mod_fcgid.
Make sure you're logged in as root:
sudo su/bin/sh is a symlink to /bin/dash, however we need /bin/bash, not /bin/dash. Therefore we do this:
dpkg-reconfigure dashInstall dash as /bin/sh? <-- No
In addition to that, we must disable AppArmor:
/etc/init.d/apparmor stop2 Installing Apache2/mod_fcgi/PHP5
In order to install Apache2, mod_fcgid, and PHP5, run
aptitude install apache2 apache2-suexec libapache2-mod-fcgid php5-cgiIf Apache2 was already installed with PHP5 as an Apache module, disable the PHP5 module now:
a2dismod php5Then enable the following modules...
a2enmod rewrite... and open /etc/php5/cgi/php.ini:
vi /etc/php5/cgi/php.ini Uncomment the line cgi.fix_pathinfo
View the Original article