This action might not be possible to undo. Are you sure you want to continue?
Install Drupal with XAMPP in Ubuntu
Published June 10, 2009 Howto & DIY , Software , Web Development 50 Comments T ags: Apac he, CMS, c ontent management system, Drupal, free, Linux, MySQL, open sourc e, PHP, Ubuntu, WCMS, web c ontent management system, XAMPP, XAMPP for Linux
Are you ready to build your very own website? It’s not as hard as you may think! A computer with an internet connection is all that’s required. Oh, and not to mention a healthy dose of patience! This is a straightforward tutorial/guide which walks you through the entire process: installation and set-up, content management and basic configurations. Okay, enough chit-chat, let’s begin!
Obtaining the Tools
The softwares you’re going to be using are all free, open source and available online: Drupal is a web content management system (WCMS). Basically, it’s an application which facilitates the creation of web contents (blogs, forums, polls, etc.), manages/controls the contents, usually by a point-and-click work-flow. Best of all, Drupal requires little or no programming skills. Drupal 6.12 Download – http://drupal.org/project/drupal XAMPP (cross-platform, Apache, MySQL, PHP, Perl) is a web server application packaged with Apache HTML web server, MySQL (database management), PHP (a scripting language) and Perl (a programming language.) XAMPP for Linux Download – http://www.apachefriends.org/en/xampp-linux.html
By now, you should have already downloaded the following files: 1. xampp-linux-1.7.1.tar.gz 2. drupal-6.12.tar.gz Note: Unless you know what you’re doing, it’s recommended that you’re using the
1 of 18 02/07/2011 05:03 PM
3.wordpress. this tutorial is done on a Linux system (Ubuntu).. enter the following command: sudo tar xvfz Desktop/xampp-linux-1.tar.1. same files to avoid any confusion.1. enter the following command: sudo /opt/lampp/lampp start You should see the following lines in the terminal if everything is done correctly: XAMPP: Starting Apache with SSL (and PHP5)… XAMPP: Starting MySQL… XAMPP: Starting ProFTPD… XAMPP for Linux started. Open your favourite web broswer. when newer versions are released. Now. Open the Terminal. move the file there.7.tar. for example.Install Drupal with XAMPP in Ubuntu « CreativeBushido http://creativebushido. 2.7. not Windows. Remember earlier when I told you the tools I’d use are all free? Well. Open the Terminal. simply type in the correct file name when installing in the “Install XAMPP” and “Install Drupal” sections. Test XAMPP Okay. Locate the file xampp-linux-1. Enter the following address: http://localhost This page should pop up: 2 of 18 02/07/2011 05:03 PM .gz -C /opt Start XAMPP You installed XAMPP in the previous section. you may like it! Install XAMPP We install XAMPP by extracting its content to a folder named “opt”: 1. If it’s not on your Desktop.gz you’ve just downloaded.com/2009/06/10/install-.. If. Ubuntu is an excellent alternative operating system to Windows! Give it a try. so how do you know if XAMPP is currently active? 1. now it’s time to start it: 1. 2.
Locate the file drupal-6. Open the Terminal. 2. Click the Status link to see what’s running: Install Drupal Let’s install Drupal by extracting its content to “opt/lampp/htdocs”: 1. Enter the following address: http://localhost/drupal You should see this page: 3 of 18 02/07/2011 05:03 PM .12″ folder to a cleaner name.12. Open your web broswer.gz.tar.12 /opt/lampp/htdocs/drupal Test Drupal Okay. Enter the following command: sudo mv /opt/lampp/htdocs/drupal-6. 3.Install Drupal with XAMPP in Ubuntu « CreativeBushido http://creativebushido. 2. Let’s rename “drupal-6.gz -C /opt/lampp/htdocs 1.wordpress. If it’s not on your Desktop. “drupal”. enter the following command: sudo tar xvfz Desktop/drupal-6.12. 2...tar. we can now verify whether Drupal has installed correctly: 1. move the file there.com/2009/06/10/install-.
Create a Database In this section.php /opt/lampp/htdocs/drupal 4 of 18 02/07/2011 05:03 PM . and a brand spanking new database. type in a name for your database (I named mine “creativeb ushido”. 2.settings. 2. Click the Create button. we make a copy of default. In the Create new database text box. Open your web browser. You will be likely to ecounter the following page: Don’t fret! First.Install Drupal with XAMPP in Ubuntu « CreativeBushido http://creativebushido. Click the Install Drupal in English link.php and rename it to settings.. Open your web browser. 1.) 2. Configure Drupal Having completed the installation of XAMPP. Drupal. Enter the following address: http://localhost/phpmyadmin/ 1.com/2009/06/10/install-. we can finally go ahead and configure Drupal: 1.settings. Open the Terminal.wordpress. enter the following command: sudo cp /opt/lampp/htdocs/drupal/sites/default/default. Enter the following address: http://localhost/drupal 1. we create a new database for Drupal to store data: 1. 2.php..
. the same name I’d used earlier. To start XAMPP again. exit the text editor by holding down Ctrl and press x.com/2009/06/10/install-.wordpress. now you should be able to see the Database configuration page in your browser: Notice that I have entered a name for my database. Once you’ve changed it. enter the following command: sudo /opt/lampp/lampp stop 1. Open the Terminal.ini Look for the memory_limit parameter and change the number 8 to 16.php http://creativebushido.php file so that it’s writeable: 1. Make sure you do the same. enter the following command: sudo /opt/lampp/lampp start That should have solved all the problems! Okay.Install Drupal with XAMPP in Ubuntu « CreativeBushido /sites/default/settings. you will be directed to the Configure site page. Type y to save the file. we need to increase our PHP memory limit from 8M to 16M.. Open the Terminal and type: sudo nano /opt/lampp/etc/php. Once you clicked the Save and continue button on the Set up database page. Enter the following command (press Enter after each line): cd /opt/lampp/htdocs/drupal/sites sudo chmod a+w default sudo chmod a+w default/settings. Next. Because you’ve just made changes to the PHP file. we need to grant permissions to the settings. like the picture below: 5 of 18 02/07/2011 05:03 PM . 1. you need to restart XAMPP to update it: 1.php Finally.
For security purposes. Everything you’re doing right now is offline.. Open the Terminal.. Make sure you remember the username and password you’ve entered! Once all the informations are filled out. Once you have everything to your liking. Fill out the the required information for the Site information and Administration account sections. it tells you to remove write permissions to the settings. enter the following command: sudo chmod a-w /opt/lampp/htdocs/drupal/sites/default/settings. click the Save and continue button.com/2009/06/10/install-.wordpress.Install Drupal with XAMPP in Ubuntu « CreativeBushido http://creativebushido.php Finally! You are now ready to enter some important informations for your new web site. you can deploy the final product live online.php file. Voila! Give yourself a pat on the back! You have just completed installing Drupal on your computer! For now. you can begin building your site. I hope this has been useful. Let’s do that: 1. If you have any technical issues. I strongly recommend that you make use of Drupal’s excellent Community web site! Ads by Google OpenERP Services Thailand 6 of 18 02/07/2011 05:03 PM .
2009 at 8:15 am 5 saad 7 of 18 July 7. almacom. 2009 at 8:14 am 3 rebelvarun July 4.wordpress. I am new to Linux and Drupal but don’t want to fall back on Windows as the default database server.. 2009 at 9:13 pm 02/07/2011 05:03 PM . Your instructions were quite complete to get started.. Reply 2 CreativeBushido I’m glad that it helps! Reply June 24. 2009 at 7:46 am Thanks. 50 Responses to “Install Drupal with XAMPP in Ubuntu” 1 Liam June 24.Thanks creative bushido Reply 4 CreativeBushido You’re very welcome! Reply July 4.th Like Be the first to like this post.com/2009/06/10/install-.co.I got the entire thing up and running under 45mins . 2009 at 2:41 am simply awesome … a step by step procedure to install Drupal. Break free from closed software! Use Open Source Business Software.Install Drupal with XAMPP in Ubuntu « CreativeBushido http://creativebushido.
com/2009/06/10/install-. I don’t know what’s the problem! Can someone help me. please? Reply 8 CreativeBushido July 8. can u plz tell why? 6 saad July 5.. 2009 at 8:25 am Hi! This is the text from the Page Load Error: Failed to Connect The connection was refused when attempting to contact localhost. 2009 at 2:40 pm I was following the instructions very carefully.thanx Reply 7 Vili Hi! July 8. i m having one prob.wordpress. the page u showed is not displayed but only “it works” is shown on the page? waiting…. when i install drupal and enter the address “http://localhost /drupal” it say “not found”…can u plz tell what can be the reason? and also when i install XAMPP.. 8 of 18 02/07/2011 05:03 PM . please help me when i install xampp i dont get the page in the browser u have shown…when i enter http://localhost/ i only get to see “IT WORKS” but no page is displayed…. but when I had to test XAMPP there was all the time page load error saying that connection was refused. 2009 at 5:52 pm hey man thanks for ur post…. 2009 at 8:06 pm Can you take a snap shot of the screen? Reply 9 Vili July 9.Install Drupal with XAMPP in Ubuntu « CreativeBushido http://creativebushido.
wordpress. 2009 at 12:20 am Hey. Though the site seems valid. Then downloaded drupal 6. im testing open atrium on drupal. * Is your computer or network protected by a firewall or proxy? Incorrect settings can interfere with Web browsing. Reply 9 of 18 02/07/2011 05:03 PM .gz and installed successfully.php I am getting error like Deprecated:Function ereg() … can you please advise how to resolve it …. i heared good things about it.Install Drupal with XAMPP in Ubuntu « CreativeBushido http://creativebushido.. thanks fir the very detailed explanation about drupal on xampp got it all running in 10 minutes.7.tar. * Are you unable to browse other sites? Check the computer’s network connection. thanks Murali.2.6 while installing drupal by running the install.. the browser was unable to establish a connection. 2009 at 6:18 am Hi.com/2009/06/10/install-. 2009 at 3:28 am hi thanks for your step by step procedure for drupal Reply 12 Murali August 16. I xampp-linux-1. I Reply 10 Yonitg July 23. thanks – Yonit Reply 11 satish kumar singh August 4. * Could the site be temporarily unavailable? Try again later.
2009 at 8:27 am I am getting the same error as well.inc on line 895 Warning: Cannot modify header information – headers already sent by (output started at /opt/lampp/htdocs/drupal-6.13/includes/file.13/includes/file. not by clicking the install. Reply 14 Jeff August 16.inc:895) in /opt/lampp/htdocs/drupal-6.inc on line 895 Deprecated: Function ereg() is deprecated in /opt/lampp/htdocs /drupal-6. 2009 at 1:48 pm 02/07/2011 05:03 PM .inc on line 618 Warning: Cannot modify header information – headers already sent by (output started at /opt/lampp/htdocs/drupal-6.inc:895) in /opt/lampp/htdocs/drupal-6.inc on line 895 Deprecated: Function ereg() is deprecated in /opt/lampp/htdocs /drupal-6.13/includes/file.13/includes/file.inc on line 895 Deprecated: Function ereg() is deprecated in /opt/lampp/htdocs /drupal-6.13/includes/file.inc on line 895 Deprecated: Function ereg() is deprecated in /opt/lampp/htdocs /drupal-6.13/includes/file..13/includes/install.inc on line 619 15 Dan 10 of 18 August 16.php file. when I go to http://localhost/drupal I get Deprecated: Function ereg() is deprecated in /opt/lampp/htdocs /drupal-6. 2009 at 8:17 am You’re supposed to run the command in the terminal.wordpress.inc on line 895 Deprecated: Function ereg() is deprecated in /opt/lampp/htdocs /drupal-6.13/includes/file.inc on line 895 Deprecated: Function ereg() is deprecated in /opt/lampp/htdocs /drupal-6. August 16. 13 CreativeBushido Murali.13/includes/install..13/includes/file.com/2009/06/10/install-.Install Drupal with XAMPP in Ubuntu « CreativeBushido http://creativebushido.13/includes/file.
7.1 everything works perfect.htaccess and php.2 ? I am using Ubuntu 9. I know this problem.7.0 to avoid errors about eregi() you should install xampp 1.3 … here more info http://drupal. just add ‘@’ in front of word ‘ereg’ at line 895 in file. 2009 at 11:21 pm Seems there is an issue with drupal 6.13 and xampp 1. Beyond the scope of this forum. 2009 at 1:48 pm Yes… Drupal does not support PHP 5. all is because new xampp use php 5.org /node/527548 Reply 20 Justina September 19.12 and xampp 1.04 and installing drupal-6. it appears to be an issue with php5 and drupal involving . If you use drupal 6.com/2009/06/10/install-.wordpress.2.3 to 5.1 and all works fine without errors Reply 17 Vikas Arora July 2. 2010 at 2:50 pm Very simple solution.inc on line 895 when loading http://localhost/drupal XAMPP is ok. I have the same error: Deprecated: Function ereg() is deprecated in /opt/lampp /htdocs/drupal-6.7. 2009 at 2:07 pm Do you know how can I change the version of my PHP from 5. Any ideas? Reply 16 iura February 7. Thanks Bushido for the excellent how to.14 Help would be much aprecciated… 11 of 18 02/07/2011 05:03 PM .Install Drupal with XAMPP in Ubuntu « CreativeBushido http://creativebushido..3..inc Reply 18 Dan August 16.ini.13/includes/file. 2010 at 11:31 am Hi. Reply 19 Justina September 19. More specifically.
.$mask. Reply 24 Justina Oc tober 13.com/2009/06/10/install-. it works perfectly!!! Reply 23 kamal Oc tober 13.’/'. It isn’t the best solution but works for a home development environment.wordpress. 2009 at 11:19 am 02/07/2011 05:03 PM . Reply 22 Colin September 19... I did a quick tweak to the line of code that was deprecated. так что пост как нельзя в тему! Reply 26 edi 12 of 18 Dec ember 4. I replace the ereg function call with… preg_match(‘/’. $file) which seems to have worked as a quick fix. i am having one q can anybody tell me that at where i have to put my php site to run them at local host plzzzzzzzz. 2009 at 5:53 am If you put it in /opt/lampp/htdocs/yoursite you will then be able to see it from your browser as localhost/yoursite is that what you where asking? Reply 25 мышкин Oc tober 18. 2009 at 4:12 am Owsome man……. 2009 at 8:05 pm Только вот вчера на эту тему думал. 2009 at 6:38 pm I had the same problem. after having a solid search of 2 days i am now able to install xampp on my ubuntu. Reply 21 Erik September 19. 2009 at 9:13 pm Thanks a lot Vincent.Install Drupal with XAMPP in Ubuntu « CreativeBushido http://creativebushido.
2009 at 7:22 pm На самом деле. Mark Reply 29 Shobana T Dec ember 16.i did all the configuration as you mentioned above. Или мы тут сами для себя пишем? Reply 31 Рубен Павленко Dec ember 27. Reply 32 vinz January 26. Reply 30 бaкинeц Dec ember 25. как говорится – Без пользы жить – безвременная смерть. 2009 at 12:17 pm How do i run it as a service?. $file) not single quotes Reply 27 edi Dec ember 4.wordpress. 2010 at 4:33 pm 13 of 18 02/07/2011 05:03 PM . for now i just sudo start everytime i boot. 2009 at 11:34 pm very nice…. thanks everyone. Reply 28 Mark Dec ember 16. 2009 at 5:16 pm You have totally saved my life with this.com/2009/06/10/install-. this worked for me preg_match(“/$mask/”. 2009 at 3:51 pm А вот интересно... сам автор читает комментарии к этой статье.Install Drupal with XAMPP in Ubuntu « CreativeBushido http://creativebushido..now i am creating my own website. A heap of thanks to you kind sir!! Regards.
inc on line 902 What am I doing wrong? Reply 36 sachi February 15.. 2010 at 4:50 pm I tried editing the /opt/lampp/htdocs/… file according to the helpful hint in the attached thread.15 with ubuntu karmic cheers vinz Reply 33 vinz January 26. $file) on drupal 6.inc on line 902 Warning: Division by zero in /opt/lampp/htdocs/drupal/includes/file. and now I get: Notice: Use of undefined constant ” – assumed ‘”’ in /opt/lampp/htdocs/drupal /includes/file.inc on line 902 Warning: ereg() [function. 2010 at 11:30 am simply awesome !!!!!!!!!!!!!!!!!!!!! Reply 35 K February 8. 2010 at 10:23 pm 14 of 18 02/07/2011 05:03 PM .. by me this was very good: preg_match(“/$mask/”.Install Drupal with XAMPP in Ubuntu « CreativeBushido http://creativebushido.inc on line 902 Deprecated: Function ereg() is deprecated in /opt/lampp/htdocs/drupal/includes /file.com/2009/06/10/install-.ereg]: REG_EMPTY in /opt/lampp/htdocs/drupal /includes/file.wordpress. 2010 at 4:35 pm …but not by copying this above… i needed to write it myself cheers Reply 34 amit January 31.
wordpress. hi there. Thanks a lot for this well planned step by step 15 of 18 02/07/2011 05:03 PM . follow this guide and reinstall XAMPP 1. 2010 at 1:46 am Was gonna made the move from WordPress to Drupal.com/2009/06/10/install-.1 with the commandline below: sudo apt-get install apache2 phpmyadmin mysql-server After that. Apache and PHP 5. 2010 at 1:50 am I think you have installed XAMPP from Ubuntu’s repository before. Hope this helps Reply 39 Kelvin Marc h 13. after entering http://localhost/ it showing the test page but not the xamp page.Install Drupal with XAMPP in Ubuntu « CreativeBushido http://creativebushido.1 will be just fine. XAMPP: Another MySQL daemon is already running.7.3a… XAMPP: Another web server daemon is already running.. Reply 38 Kelvin Marc h 13. 2010 at 10:28 pm after this command /opt/lampp/lampp start the result is like this /opt/lampp/lampp start XAMPP: SELinux is activated. You will have to remove all three installtions of Mysql. XAMPP: Starting ProFTPD… XAMPP for Linux started.7. hoping to test on it’s basic and as well SEO features. Making XAMPP fit SELinux… Starting XAMPP for Linux 1. i’m installing xamp.. any idea about this ? plz help Reply 37 sachi February 15.
wordpress. because now (from using your tutorial) I can use drupal offline and hopefully learn about its features and development capabilities. hey do u know how to integrate two cms tools? as in moodle and drupal for exmaple? moodle is a course managemnt tool. I think when it is deactivated it prevents Drupal from installing. Is there any reason why securing XAMPP causes the MySQL database (when viewing the “Status” page) to Deactivate.. saved me hours crawling through the net Reply 40 Adam Marc h 13. 2010 at 10:09 pm hey an amazing post! it is our saviour. I’d like to (ideally) have a more secure setup and not leave my Web/MySQL server “wide open” so-tospeak. Thanks anyway. it tends to “DEACTIVATE” the MySQL server. On the XAMPP side of things -there is some kind of bug (it’s in the Xampp bugbase just this month) regarding setting the security features. Reply 42 Roberto April 23.. 2010 at 9:06 am Thanks so much for this quick and easy tutorial.. I’ve been trying for days to get Drupal installed on my localhost Linux. It works perfectly. This could be why most (if not all) of my previous attempts to install Drupal failed miserably.com/2009/06/10/install-. Could you post the same for Vista? Cheers. Adam Reply 41 nagachandrika April 5. Your tutorial skips over the process of securing XAMPP. Roberto 16 of 18 02/07/2011 05:03 PM . guide.Install Drupal with XAMPP in Ubuntu « CreativeBushido http://creativebushido. I usually harden the security of my XAMPP installs.. 2010 at 2:04 pm Thanks for the instructions. But (as per the bug) once the MySQL root user gets a unique password.
for what I search ?? ps:: Do you know free without ads hosting ?? With wich tool have you built your website ? Bye Reply 45 Devin May 21. 2010 at 1:17 am “I keep getting this error message when I start http://localhost/drupal.inc on line 926″ 17 of 18 02/07/2011 05:03 PM . Nice and simple.денег фишку на сайт “Дай рубль”. Reply 44 Wendell Grohoske May 8. I know. could you please tell me what I should do to resolve this issue Deprecated: Function ereg() is deprecated in /opt/lampp/htdocs/drupal/includes /file. Reply 43 Савва April 24. could you please tell me what I should do to resolve this issue Deprecated: Function ereg() is deprecated in /opt/lampp/htdocs/drupal /includes/file.Install Drupal with XAMPP in Ubuntu « CreativeBushido http://creativebushido. Я бы дал. I try to find a completely free hosting company that is ok to accept CGI. Do you know a reputable link or better a first-class free hosters database or something like that… etc. 2010 at 9:24 am Любопытная статья. thanks alot! Reply 46 Peter Thomson June 19.. кстати автору хочу предложить установить от яндекс. 2010 at 10:19 am hi!… useful post…. I publish at this place because you perhaps be able to help me. 2010 at 3:28 am I keep getting this error message when I start http://localhost/drupal. I’ve read about 20 guides tonight. but this was by far the best.wordpress. 2010 at 1:40 am Fantastic.com/2009/06/10/install-.inc on line 926 Reply 47 Stan July 1.. так сказать на поддержание. it’s not the exactly exactly place to post but …….
Yeah me too! Reply 48 extrarumeno Solution : July 8.gz -C /opt and start XAMPP use command sudo /opt/lampp start.1. $file))” with “elseif ($depth >= $min_depth && @ereg($mask...wordpress.tar. yet. $file))” Reply 49 Chamitha de Alwis Thanks. it show me e few line look like this XAMPP: Starting Apache with SSL (and PHP5)… XAMPP: Starting MySQL… XAMPP: Starting ProFTPD… XAMPP for Linux started. 2010 at 8:15 am replaced in drupal/includes/file. 2010 at 8:56 am 50 daninhu September 22.7. This helped a lot.com/2009/06/10/install-.inc on line 926 “elseif ($depth >= $min_depth && ereg($mask. Reply July 23. could some one help me on this issue? thank’s Reply Leave a Reply 18 of 18 02/07/2011 05:03 PM . but when I want to browse in the web it says IT WORKS! the web server software is running bt no content has been added. 2010 at 9:32 pm Hi I have done the installation XAMPP by typing sudo tar xvfz Desktop/xampp-linux1.Install Drupal with XAMPP in Ubuntu « CreativeBushido http://creativebushido.
This action might not be possible to undo. Are you sure you want to continue?
We've moved you to where you read on your other device.
Get the full title to continue listening from where you left off, or restart the preview.