Hey does anyone knows an alternative to Xampp so i can configure a 'server' on my PC and then check the drupal sites before uploading them?... Xampp is giving me too much troubles on ubuntu... thanks in advance

alberto.

Comments

yelvington’s picture

Why would you use XAMPP on Ubuntu? Everything you need is in the standard Ubuntu repositories and available through point-and-click install.

albertoguevara’s picture

You mean having configured Apache and all the stuff manually without using Xampp?... where can i find info to do that? because I've never set up a 'test' server on ubuntu...

Alberto L Guevara - albertolempira.com

kulfi’s picture

You could configure Apache and MySql individually instead of using the XAMPP bundle. You can also use VMWare player + a web development virtual appliance.

albertoguevara’s picture

hey, i don't know how to do that, do you know where can i find a howto or something like that because i don't have a clue on how to configure Apache and MySQL on my own.... thanks

Alberto L Guevara - albertolempira.com

gareth_w’s picture

I use this on my PC and it works like a charm. Highly recomended.

Gareth

LiquidWeb’s picture

Use hese commands to insatall applications

# sudo apt-get update
# sudo apt-get install apache2
# sudo apt-get install libapache2-mod-auth-mysql
# sudo apt-get install libapache2-mod-php5
# sudo apt-get install mysql-client-5.0
# sudo apt-get install mysql-server-5.0
# sudo apt-get install php5
# sudo apt-get install php5-mysql
# sudo apt-get install phpmyadmin

ofcourse you can install diffrent versions but try to findout versions on your actual server and try to install them
then you should change your root password for security reasons

# mysql -u root
# UPDATE mysql.user SET Password=PASSWORD(’yournewpass’) WHERE User=’root’;
# FLUSH PRIVILEGES;
# quit;
albertoguevara’s picture

Hey rakisisesindekibalik, thanks i've ran those commands, now what i have to do to configure apache and MySQL?....

Alberto L Guevara - albertolempira.com

LiquidWeb’s picture

Basicly nothing, It should work fine.

If you want to configure advenced things like magic_quotes, default directory file etc. let me to know what are they. It depends on the setting but you should either edit apache.conf or php.ini or simply .htaccess

yelvington’s picture

This is MUCH easier than everyone is making it out to be.

The Ubuntu "Add/Remove Programs" facility (under the "Applications" menu) does not include server programs, but the Synaptic Package Manager (under "System" / "Administration") does.

Run Synaptic.

Search for "php mysql." The php5-mysql package will be offered. Check the box, and approve installing everything it offers.

Do the same thing for php5-gd if you want image support.

Add the packages mysql-client and mysql-server.

Apply the changes. Restart the computer.

That's all you have to do to turn your Ubuntu desktop/laptop into a LAMP server capable of running Drupal. Because you used the Ubuntu repositories, security upgrades will be managed for you.

The installed configuration places the Apache httpd.conf and associated files in /etc/apache2. If you want to tinker with php.ini, it's at /etc/php5/apache2/php.ini.

The server docroot is /var/www. If you don't like that, edit the Apache configs and restart the server. Install Drupal in the docroot.

You can get to your "site" at http://localhost/

Kenny’s picture

Hi all

I wanted to install xampp too, but instead I followed these instructions.
But now my question is: am I running a web server right now? When I go to http://localhost/ it says "It works!", so the server is up and running, but is this only a local server (only accessible with my own computer), or can anyone on the internet now find my computer (and hack it if they want to and are able to do so)?

I only want a local webserver, what do I need to do?

Thanks in advance.
Greets, K.

PS: another question about this method: now the server is up and running every time the computer is on. With xampp I can just activate it when I want to start programming. I like the fact that updates are automatically configured with this method, but it has its con's too. Are there ways to fix these?

teknorah’s picture

I just spent all day today trying my best to upgrade my Drupal version from 6.14 to 6.16 after installing drupal6 from the ubuntu repos. I found it impossible. Come to find out, this package installs drupal in wierd places and puts symlinks (shortcuts) everywhere. So, when attempting an upgrade (backup everything, delete files in current drupal install directory, extract and copy over new version of drupal from tar file, then copy back sites directory and .htaccess file, etc., run update.php page) it doesn't upgrade! It keeps saying that it still has 6.14 installed.

So, I am creating my own virtual appliance manually with Ubuntu and XAMPP installed.

Reference: http://drupal.org/node/626404

It says: "As this directory layout structure is not the recommended one from the Drupal community, use this install scenario just for testing Drupal, but please note: any updates will be difficult. See: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=526970"

Norah - about.me