print Creating a Scorpio development environment

Installing Apache, MySQL and PHP

The first thing we need to do is install the web-server, database and PHP itself. These are not standard packages - unless you installed them during the OS installation. So long as you have a working network connection and access to the internet they can be easily installed.

Please see the appendixes for some variations in particular for CentOS / RedHat 5 and Debian. Windows users should probably look at using WAMP Server instead of the separate applications - but that is up to you.

Login to your VM or Desktop and open a console window (or just use the command line and no GUI - the GUI gives better resolution so I find it better). Become root, either via using su or if you have sudo, prefix virtually everything with sudo that follows.

su -

We will now install in one go everything that we need:

The \ are there for line wraps. This may take some time, but will install Apache, MySQL, PHP, SubVersion and phpMyAdmin along with a number of PHP extensions. You may be asked to confirm installation or to install a security certificate. Answer 'y' or 'yes' where necessary.

That should complete without error though you may see additional screens informing you of other steps you need to take (e.g. MySQL setting a root password). That will be dealt with shortly.

Once the installation is done one of the steps I prefer to take is to disable the selinux system. selinux is an enhanced security system that is very useful, but it has some extremely difficult syntax and can cause weird issues. Therefore I prefer to ensure it is disabled. You can do this by editing the selinux config file and changing the parameters to disabled (it is commented):

nano /etc/selinux/config 

If you prefer to leave it enabled, you will later have to update the security contexts on the web accessible folders for Apache. If you do disable selinux, be sure to restart your system or VM before continuing any further.