In this article I'll explain how to setup a webserver with Ubuntu Desktop 10.04LTS, that can be used with all the scripts and extensions on this website.
First start with a clean install of Ubuntu, the webserver packages will be installed later. A general note when files cann't be found during installation of packages type sudo apt-get update and try to install the packages again(Sometimes this needs to be done a couple of times)
All commands need to be typed in the terminal from Ubuntu (Applications\accessories\Terminal
- Install the webserver(HTTP, PHP and Mysql), use the following commands. ( http://www.howtoforge.com/ubuntu_lamp_for_newbies)
sudo apt-get install apache2 -> Install apachesudo apt-get install php5 libapache2-mod-php5 -> install php
sudo /etc/init.d/apache2 restart -> restart the webserver
- You can now test the webserver with a file containting phpinfo();
- The next step is installing mysql
sudo apt-get install mysql-server -> During the installation the root password must be set.
sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin -> This will install phpmyadmin - The following needs to be changed in the php.ini file
gksudo gedit /etc/php5/apache2/php.ini
change the line ;extension=mysql.so into extension=mysql.so (remove the ;)
Restart the webserver sudo /etc/init.d/apache2 restart
The following steps are optional and not required to run Joomla, but it can be used to connect to a Microsoft SQL database and to send data from a pdf form to mysql
- sudo /usr/bin apt-get install php5-sybase -> Installs the MSSQL support
- sudo apt-get install gs pdftk -> Installs pdftk, this is used fro handling pdf's in php.
The following link can be used to setup mysql and a pdf, so pdf info can be imported to mysql and exported back to a pdf .
When you need root access to files type sudo nautilus in the terminal