Difference between revisions of "Basic moodle installation on CentOS"

From Notes_Wiki
(Created page with "<yambe:breadcrumb>Moodle_configuration|Moodle configuration</yambe:breadcrumb> =Basic moodle installation on CentOS= # <tt>yum -y install apache php php-mysql mod_ssl mysql-s...")
 
m
Line 3: Line 3:


# <tt>yum -y install apache php php-mysql mod_ssl mysql-server php-gd php-xml php-soap php-mbstring php-intl php-xmlrpc</tt>
# <tt>yum -y install apache php php-mysql mod_ssl mysql-server php-gd php-xml php-soap php-mbstring php-intl php-xmlrpc</tt>
# <tt>service httpd restart after yum install</tt>
# Download moodle sources from website.  Download 2.5.9 from legacy sources for CentOS
# Download moodle sources from website.  Download 2.5.9 from legacy sources for CentOS
# Extract moodle source in /var/www/html
# Extract moodle source in /var/www/html

Revision as of 15:19, 31 December 2014

<yambe:breadcrumb>Moodle_configuration|Moodle configuration</yambe:breadcrumb>

Basic moodle installation on CentOS

  1. yum -y install apache php php-mysql mod_ssl mysql-server php-gd php-xml php-soap php-mbstring php-intl php-xmlrpc
  2. service httpd restart after yum install
  3. Download moodle sources from website. Download 2.5.9 from legacy sources for CentOS
  4. Extract moodle source in /var/www/html
  5. Move files from /var/www/html/moodle to /var/www/html using "mv moodle/* moodle/.* ." from /var/www/html folder. Enter "n" if prompted for moving . or ..
  6. Open http://<server-fqdn>/ or http://<server-ip> in browser
  7. mkdir /var/www/moodledata
  8. chown -R apache:apache /var/www/moodledata
  9. Choose improved mysql database
  10. service mysqld start
  11. Run mysql and use following commands:
    create database moodle;
    grant all on moodle.* to moodle@localhost identified by 'moodle123';
    flush privileges;
    \q
  12. Enter appropriate details in web form. Choose "Unix socket" if database is on localhost (same machine as moodle).
  13. Copy moodle configuration file content into /var/www/html/config.php
  14. Click next. Agree to license agreement and click next. Verify that all requirements are met and click next for installation to start. Please note that it may take a while for all necessary installation steps to complete. It may take 4-7minutes or even more for all installation to complete.
  15. Enter various details for administrator user and server. Click update profile
  16. Enter site names and disable self-registration. Click next
  17. As admin user go to Site Administration -> Server and verify other values