Moodle Installtion

You might also like

Download as odt, pdf, or txt
Download as odt, pdf, or txt
You are on page 1of 7

Moodle 2.9.

2 Installation in Xampp on Ubantu :


Download Xampp 1.8.3 latest version

Apache 2.4.7;
MySQL 5.6.14;
PHP 5.5.6;
PEAR + SQLite 2.8.17/3.7.17 + multibyte support (mbstring);
Perl 5.16.3;
phpMyAdmin 4.0.9;
OpenSSL 1.0.1e;
ProFTPD 1.3.4c;
GD 2.0.35;
Freetype2 2.4.8.

Check 32 or 64 bit Sytem :


Commend to check 32 or 64 bit
uname m
This displays only the machine hardware name and indicates, as above, whether your system
is 32-bit (i686 or i386) or 64-bit (x86_64).
Download Xampp :
For 64 Bit System :
http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/1.8.3/xampp-linux-x641.8.3-2-installer.run

For 32 Bit System :


http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/1.8.3/xampp-linux1.8.3-2-installer.run

Make .run to executable


sudo chmod +x xampp-linux-x64-1.8.3-2-installer.run
Note : This command need to be execute from file existing path in terminal.

Install Xammp
sudo ./xampp-linux-x64-1.8.3-2-installer.run

Start Or Stop Xammp


sudo /opt/lampp/lampp start
sudo /opt/lampp/lampp stop
sudo /opt/lampp/lampp restart

Php Executable Path :


/opt/lampp/bin/php
Php ini Path :
/opt/lampp/etc/php.ini

How to Start Xammp GUI :


if you use 32 system :
sudo /opt/lampp/manager-linux.run
if you use 64 system :
sudo /opt/lampp/manager-linux-x64.run

Xdebug :
sudo apt-get install php5-dev php-pear
sudo pecl install xdebug
Enable Xdebug
zend_extension='/opt/lampp/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so'
Note : no-debug-non-zts-20121212 it may be different in number

Add these lines at the end of php.ini file


xdebug.remote_enable=1
xdebug.profiler_enable=1
xdebug.remote_port=9000
xdebug.remote_host = 127.0.0.1
xdebug.remote_handler = dbgp
xdebug.remote_mode = req
xdebug.remote_autostart=1
xdebug.idekey=PHPSTORM
Ecllipse Xdebug Configration : Go to Window -> Preferences in Ecllipse

Go TO Run-> Debug Configurations select alternative php and click on apply and then debug

Xmlrpc Installtion :
sudo apt-get install php5-xmlrpc
Add below line in /opt/lampp/etc/php.ini
extesnion=xmlrpc.so
Or Uncomment
;extesnion=xmlrpc.dll
and change .dll to .so
Enable Opcache extension :
open /opt/lampp/etc/php.ini
and uncomment
;zend_extension=opcache.so
Cgi Issue Fix
sudo apt-get install php5-cgi

PHP STORM Download Link and Licence KEY


https://www.jetbrains.com/phpstorm/download/
Licence
User Or Company Name - PhpStorm v9
Licence Key ===== LICENSE BEGIN =====
24174-D37082T
00001kwJZGCnsu4br6qNdKQSjmP7jR
dL!z2OA037VkdKUcSeaul8l2XjeM1M
ByhDMq!9LS!LlkC9hxBzRY6wUOF"AV
===== LICENSE END =====
Moodle Download Link
https://download.moodle.org/releases/latest/

Github Integration in Phpstrom


https://www.jetbrains.com/phpstorm/help/using-githubintegration.html
Upgrading Moodle
https://docs.moodle.org/29/en/Upgrading#Check_the_requirements

Php Strome 9000 Port busy Fix :


netstat -tulpn | grep :9000
kill -9 5409

Uninstall Apache2
1. First, stop apache2
$ sudo service apache2 stop
2. Uninstall Apache2 and its dependent packages
$ sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common
3. Also use autoremove option to get rid of other dependencies
$ sudo apt-get autoremove

4. Check whether there are any configuration files have not been removed
$ whereis apache2
If you get a response as follows apache2: /etc/apache2
5. Remove the directory and existing configuration files
$ sudo rm -rf /etc/apache2
Uninstall Xammp
sudo /opt/lampp/lampp stop, sudo rm -rf /opt/lampp

Auto remove, update and autoclean etc in one command


sudo sh -c "apt-get -y update;apt-get -y dist-upgrade;apt-get -y autoremove;aptget -y autoclean"

Error: 'Can't connect to local MySQL server through


socket '/var/run/mysqld/mysqld.sock' (2)'
This error occurs due to multiple installations of mysql. Run the
command:
ps -A|grep mysql

Kill the process by using:


sudo pkill mysql

and then run command:


ps -A|grep mysqld

Also Kill this process by running:


sudo pkill mysqld

Now you are fully set just run the following commands:
service mysql restart
mysql -u root -p

Have very well working mysql again

Unable to lock the administration directory


(/var/lib/dpkg/) is another process using it?
If you try
ps aux | grep apt

that will catch processes containing the word apt, at least. If you see an apt-get process or an
aptitude process that looks stuck, you can try
kill processnumber

and if that doesn't work try


kill -9 processnumber

Install Xdebug
sudo apt-get install php5-xdebug

Command To Find a particular file path


find / -name 'xdebug.so'

You might also like