Saturday, May 3, 2014

LAMP Installation and Setup

Installing Apache, MySQL and PHP on Xubuntu

Configure scripts:


Apache 2.4.9


./configure --prefix=/usr/local/apache --enable-modules=all --enable-isapi --enable-so --enable-cache --enable-case-filter --enable-deflate --enable-proxy --enable-rewrite --enable-ssl --with-mpm=worker

PHP 5.5.12

./configure --prefix=/usr/local/php --with-apxs=/usr/local/apache/bin/apxs --enable-bcmath --enable-calendar --with-mysqli --enable-calendar --enable-ftp --with-gd --with-curl --with-xsl --with-xmlrpc --with-bz2 --enable-intl --enable-mysqlnd --with-pear --enable-zip --enable-soap

Post Install changes to Apache http.conf

// Should be automatically added
LoadModule php5_module        modules/libphp5.so

// Add Handler Manually
AddHandler application/x-httpd-php .php

// Update Document Root
DocumentRoot "/home/user/Development/web"
// Configure root directory - default settings

<Directory "/home/user/Development/web">
    
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options 
# for more information.

Options Indexes FollowSymLinks
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit

AllowOverride None
# Controls who can get stuff from this server.

Require all granted
</Directory>

No comments:

Post a Comment