Ubuntu Apache Config

While this is most likely not all finished I recently had to put together a PHP/Apache install and here are some notes on this. Extra software you are probably going to want to have [code lang="shell"]apt-get install php-pear[/code] We have a need for pdf creation for another project so I also install imagemagik essentials [code lang="shell"]apt-get install php5-curl[/code] Let's start with the locations of everything. Root as root for any of the command below.

Location of the virtual hosts files like .html, .php
/var/www/vhost/

vhost configuration files for Apache
/etc/apache2/sites-available/

Once you copy your vhost files to that location then you need to make a link to the other folder
ln -s /etc/apache2/sites-available/SITE_CONF /etc/apache2/sites-enabled/SITE_CONF

Getting the mods up and running. Like above we use the linking of the mods from one folder to another
ln -s /etc/apache2/mods-available/MODS /etc/apache2/mods-enabled/MODS

Here are the mods that I have up and running
alias.conf
alias.load
auth_basic.load
authn_file.load
authz_default.load
authz_groupfile.load
authz_host.load
authz_user.load
autoindex.conf
autoindex.load
cgi.load
deflate.conf
deflate.load
dir.conf
dir.load
env.load
mime.conf
mime.load
negotiation.conf
negotiation.load
php5.conf
php5.load
proxy.load
proxy_balancer.load
proxy_http.load
setenvif.conf
setenvif.load
status.conf
status.load

Starting and stopping the apache2 server
/etc/init.d/apache2 start
/etc/init.d/apache2 stop
/etc/init.d/apache2 restart

Comments

Popular posts from this blog

Console over SSH (ONTAP)

Brocade Zone Setup

OpenSolaris ZFS Setup