Step-by-step Install Guide for Zenwalk-5.0: Difference between revisions
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
Login as root. In a terminal do the following: | Login as root. In a terminal do the following: | ||
[ | root[~]# netpkg php | ||
Accept 1)Install option when netpkg asks for choice. Similarly install any other dependencies. Now php is installed on the system. Now install apache by doing | Accept 1)Install option when netpkg asks for choice. Similarly install any other dependencies. Now php is installed on the system. Now install apache by doing | ||
Line 11: | Line 11: | ||
After this, install mysql and any related dependencies by doing | After this, install mysql and any related dependencies by doing | ||
[ | root[~]# netpkg mysql | ||
At this stage php, apache and mysql have been installed. Now we need to enable starting of apache and mysql server after booting. To do this, right-click on the desktop and goto Zenwalk Menu > System > Zenpanel > Starup services end enable them. | At this stage php, apache and mysql have been installed. Now we need to enable starting of apache and mysql server after booting. To do this, right-click on the desktop and goto Zenwalk Menu > System > Zenpanel > Starup services end enable them. | ||
Line 28: | Line 28: | ||
Add index.php as a DirectoryIndex in /etc/apache/httpd.conf. To do this, change | Add index.php as a DirectoryIndex in /etc/apache/httpd.conf. To do this, change | ||
DirectoryIndex index.html | DirectoryIndex index.html | ||
to | to |
Revision as of 06:36, 2 May 2008
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. Similarly install any other dependencies. Now php is installed on the system. Now install apache by doing
[root]# netpkg apache
After this, install mysql and any related dependencies by doing
root[~]# netpkg mysql
At this stage php, apache and mysql have been installed. Now we need to enable starting of apache and mysql server after booting. To do this, right-click on the desktop and goto Zenwalk Menu > System > Zenpanel > Starup services end 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 index.html
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 start the Apache web server by issuing the command
[root]#/etc/rc.d/rc.httpd start
In a terminal as root issue the command
root[username]#su - mysql
Now install a blank database by issuing the command
mysql[~]$ mysql_install_db
Now exit from the mysql prompt by issuing the command
mysql[~]$ exit logout root[username]#
Start the mysql server by the command
root[~]# /etc/rc.d/rc.mysqld start