(Installation) Installing Drupal on Centos5
Tutorial : Installing Drupal on Centos5
Here is how to install Drupal on a Centos5 Linux installation
1. Install Centos5 including web server and mysql
2. log in as root
3. Update to latest version with: yum -y update yum ; yum -y update
4. Install modules with: yum -y install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel
5. Enable .htaccess: cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.sav
vi /etc/httpd/conf/httpd.conf and in two places change AllowOverride None to All
6. Start apache with: service httpd start
7. Run: system-config-securitylevel-tui and enable firewall for ssh and http, plus port 10000 for webmin
8. Open a browser window pointed to the server to check if apache is running
9. Create test script: echo "<html><head><title>Test Page</title></head><body><?php phpinfo(); ?></body></html>" > /var/www/html/testphp.php
10. Make sure php is running by visiting: http://servername/testphp.php
11. download webmin: wget http://prdownloads.sourceforge.net/webadmin/webmin-1.441-1.noarch.rpm
12. Install webmin with: rpm -U webmin-1.441-1.noarch.rpm
13. Check it is working by visiting: http://servername:10000
14. Start MySQL: /etc/init.d/mysqld start
15. Now setup MySQL: mysqladmin -u root password rootsqlpassword
16. Make sure mysqld and httpd start on boot by checking the boxes: webmin / system / bootup and shutdown
17. Download your preferred version of Drupal and unarchive it with: tar -zxvf drupal-x.x.tar.gz
18. Move drupal to web root: mv /nameofdrupalfolder/* /var/www/html
19. plus .htaccess: mv /nameofdrupalfolder/.h* /var/www/html
20. Give the installer access to the directory: chmod 777 /var/www/html/sites/default
mkdir /var/www/html/files
chmod 777 /var/www/html/files
21. Create a database (e.g. called drupal) using: webmin / servers / mysql
22. visit the server's root web page and complete the installation using Drupal
23. Secure sites access: chmod 775 /var/www/html/sites/default
24. Well done! You are finished
| Read more..
Courtesy : Drup.org
- guru's blog
- Login to post comments
![Drupal-6-Book-[Building Powerful and Robust Websites with Drupal 6].jpg](http://www.drupalranch.com/images/Drupal-6-Book-[Building%20Powerful%20and%20Robust%20Websites%20with%20Drupal%206].jpg)