Showing posts with label Apache2. Show all posts
Showing posts with label Apache2. Show all posts

Sunday, July 31, 2011

Using Apache2 Content Negotiation To Serve Different Languages

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

Deutsch
View the Original article

Installing Apache2 With PHP5 And MySQL Support On CentOS 6.0 (LAMP)

# mysql_secure_installation




NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!


In order to log into MySQL to secure it, we'll need the current
password for the root user.  If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.

Set root password? 

View the Original article

Saturday, July 2, 2011

Installing Apache2 With PHP5 And MySQL Support On CentOS 5.6 (LAMP)

# mysql_secure_installation




NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!


In order to log into MySQL to secure it, we'll need the current
password for the root user.  If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.

Set root password? 

View the Original article

Sunday, May 29, 2011

Installing Apache2 With PHP5 And MySQL Support On Ubuntu 11.04 (LAMP)

server1.example.com, so we don't have to specify a MySQL root password manually later on:

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 apache2

Now direct your browser to http://192.168.0.100, and you should see the Apache2 placeholder page (It works!):



View the Original article

Thursday, March 24, 2011

Making browsers Cache static files with mod_expires on Apache2 (Debian Squeeze)

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)Add Comment
You must be logged on to post a comment. Please register if you do not yet have an account.
busy

View the original article here


This post was made using the Auto Blogging Software from WebMagnates.org This line will not appear when posts are made after activating the software to full version.

Tuesday, January 25, 2011

How To Set Up WebDAV With Apache2 On Mandriva 2010.1 Spring

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 -a

Next we install Apache and the Apache WebDAV module:

urpmi apache apache-mod_dav

Next 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



View the Original article

How To Set Up Apache2 With mod_fcgid And PHP5 On Ubuntu 10.10

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 dash

Install dash as /bin/sh? <-- No

In addition to that, we must disable AppArmor:

/etc/init.d/apparmor stop
update-rc.d -f apparmor remove
aptitude remove apparmor apparmor-utils

 

2 Installing Apache2/mod_fcgi/PHP5

In order to install Apache2, mod_fcgid, and PHP5, run

aptitude install apache2 apache2-suexec libapache2-mod-fcgid php5-cgi

If Apache2 was already installed with PHP5 as an Apache module, disable the PHP5 module now:

a2dismod php5

Then enable the following modules...

a2enmod rewrite
a2enmod suexec
a2enmod include
a2enmod fcgid

... and open /etc/php5/cgi/php.ini:

vi /etc/php5/cgi/php.ini

Uncomment the line cgi.fix_pathinfo

View the Original article