Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: Step-by-step Install Guide for Zenwalk-5.0.

Step-by-step Install Guide for Zenwalk-5.0: Difference between revisions

From MoodleDocs
No edit summary
No edit summary
Line 2: Line 2:
'''
'''


If you have a working installation of Apache, MySQL, PHP, you can directly you can skipt this section.  
If you have a working installation of Apache, MySQL, PHP, you can directly you can skipt this section.
 
In the procedure given below, it is assumed that you have a working internet connection and that you have updated netpkg meta data from the required mirror. Login as root. In a terminal do the following:
In the procedure given below, it is assumed that you have a working internet connection and that you have updated netpkg meta data from the required mirror. Login as root. In a terminal do the following:



Revision as of 13:55, 3 May 2008

Installing Apache, MySQL and PHP

If you have a working installation of Apache, MySQL, PHP, you can directly you can skipt this section. In the procedure given below, it is assumed that you have a working internet connection and that you have updated netpkg meta data from the required mirror. Login as root. In a terminal do the following:

   root[~]# netpkg php

Accept 1)Install option when netpkg asks for choice. Install all other dependencies. Now PHP is installed on the system. Install apache by doing

   root[~]# netpkg apache

After this, install mysql and its related dependencies by doing

   root[~]# netpkg mysql

At this stage PHP, Apache and MySQL have been installed on the system. Now we need to enable starting of Apache and MySQL servers after every booting. To do this, right-click on the desktop and goto Zenwalk Menu > System > Zenpanel > Starup services and enable them.

Since Moodle uses PHP, we have to enable PHP support in Apache. So, edit /etc/apache/httpd.conf as root. Change the the line at the very bottom of /etc/apache/httpd.conf that says:

   # PHP support
   #Include /etc/apache/mod_php.conf

to

   # PHP support
   Include /etc/apache/mod_php.conf

Add index.php as a DirectoryIndex in /etc/apache/httpd.conf. To do this, change

   # DirectoryIndex: sets the file that Apache will serve if a directory
   # is requested.
   #
   <IfModule dir_module>
       DirectoryIndex index.html
   </IfModule>

to

   # DirectoryIndex: sets the file that Apache will serve if a directory
   # is requested.
   #
   <IfModule dir_module>
       DirectoryIndex index.php index.html index.htm
   </IfModule>

Save the modifications to /etc/apache/httpd.conf. Now in a terminal do

   root[~]#/etc/rc.d/rc.httpd start

This starts Apache web server. In a terminal as root issue the command

   root[~]#su - mysql

This starts MySQL. Now install a blank database by issuing the command

  mysql[~]$ mysql_install_db

After this, exit from the MySQL prompt by issuing the command

  mysql[~]$ exit
  

Now start the mysql server by the command

  root[~]# /etc/rc.d/rc.mysqld start