sudo apt-get update
sudo apt-get install apache2
sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
sudo mysql_install_db
sudo /usr/bin/mysql_secure_installation
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
sudo vi /etc/apache2/mods-enabled/dir.conf
#add index.php to start of line
cd /etc/apache2/sites-enabled/
vi 000-default.conf
#change port number to required - I used 8080 instead of 80
cd /etc/apache2
vi ports.conf
#change port number to required - I used 8080 instead of 80
cd /var/www/html
vi info.php
#add the lines below and save -
<?php
phpinfo();
?>
sudo service apache2 restart
Visit http://<your_ip_address>:<port_num> and view apache2 default page Visit https://<your_ip_address>:<port_num>/info.php and view PHP info page
sudo apt-get install php5-curl
sudo apt-get install php5-gd
sudo service apache2 restart
cd /var/www/html/
Visit https://download.moodle.org/releases/latest/ for latest stable release
wget https://download.moodle.org/download.php/direct/stable29/moodle-2.9.2.tgz
tar xfv moodle-2.9.2.tgz
chown -R root moodle
chmod -R 0755 moodle
mkdir /var/moodledata
chmod 0777 /var/www/moodledata
chown -R www-data:www-data moodledata/
Go the website -
http://<your_ip_address>:<port_num>/moodle
and click through steps. Save the config.php file
cd /var/www/html/moodle/
vi config.php
# paste the config.php info from web page
sudo apt-get install php5-xmlrpc
sudo apt-get install php5-intl
Hello, how can i change from
http://<your_ip_address>:<port_num>/moodle
to onlyhttp://<your_ip_address>