So, setup has been daunting, but i am still determined

Events happening in the community are now at Drupal community events on www.drupal.org.
bladwin's picture

all day now, i have been trying to get everything "server side" setup in ubuntu, and have had absolutely no luck at all. first, i installed xampp for linux, which used to be Lampp in a previous relaese; it was horrible. there was no way to actually reconfigure apache, or redirect the localhost with it actively running. so then it was onto lullabot for some assistance. ah-ha, i found a video which was great. i uninstalled xampp and was prepared to follow along on a fresh setup. so i opened synaptic, installed apache, php5, mysql, etc. and all went great, or so i thought. i navigated to /var/www and in the apache folder there was no configuration file. so i double checked [just on the off chance that hidden files weren't visible] and made sure that it wasnt there, or in anyother dir. three uninstalls/reinstalls later it still wasn't happening. back to the net to find a solution, that works with ubuntu. i found drubuntu, a group located here that has a complete walkthrough on everything. awesome, right? yes and no. after getting all of the prelims done [eclipse, firefox plugins, etc] its time to setup apache and define databases. wouldnt you know that even following the instructions to the letter, there was still no httpd configuration file in the apache dir.

im stuck and i need some assistance. i have made steady progress all day, but this seems to be as far as i can get. does anyone else in the group use linux as their test server? if so any and all help would be greatly appreciated.

-Erik

Comments

apt/get

liberatr's picture

Erik,

You're trying to get this going on your local install?

What I've done most often is to use MAMP on Mac OSX - literally zero setup. I also had the oh-so-fun experience of installing Apache, MySQL, PHP5 and a couple of other tools via the command line on Windows XP... hooray!

Here's the point:

Installing from scratch is easy - if you're familiar with apt/get or yum, or another rpm/package manager, I would start there. You can easily get a hold of stuff compiled for your OS, it warns you about the dependencies, and handles the basics of the installation, at least as far as putting the files in the right places. The configuration is still left up to you, but you shouldn't be getting any empty files.

Ryan Price
Florida Creatives

yeah i am trying to do a

bladwin's picture

yeah i am trying to do a local setup because there is nothing worse than navigating to a "site in progress", imho. yeah i can install everything individually, like you, i too have had the joys of the windows cmd prompt.

what happened was that i was trying to access the httpd.conf file which is usually located in the apache dir, but wasnt having any luck finding it where it should be. i just realized, about 10 minutes ago, that i should actually be changing a different configuration file, located in a different directory, all because i am using linux, instead of windows. i assumed, which i shouldnt have, that apache would still depend upon the same files it would if it were being run on a windows machine. so it was my error. another thing that is probably hindering me a bit is the fact that i am not yet a linux power user, but have enough familiarity to know what i am doing - most of the time anyway.

I think what i am going to do is run through a classic setup of installing everything through the terminal and then go at it from there and configure everything. so hopefully by this time tomorrow i should have something to show for it, even if it is only the "you have successfully installed drupal" welcome screen.

-Erik


"People demand freedom of speech to make up for the freedom of thought which they avoid."
- Soren Aabye Kierkegaard (1813-1855)

Lullabot screencast

ultimike's picture

Erik,

If you haven't seen Lullabot's screencast on setting up a local web server on Ubuntu, it might help:

http://www.lullabot.com/node/289/play

-mike

Good Luck !!!

joemoraca's picture

Erik,

For continued motivation look at http://drupal.org/forum/25 -- Drupal Showcase to see how people are using drupal for lots of different things.

I am no linux expert but are you using Ubuntu server? From what I remember it was just picking the "services" I wanted to run? Once you have apache, php and mysql working with phpmyadmin .... I use xampp / Apachefriends on windows -- very easy setup

Joe Moraca
http://www.webdevgeeks.com

Joe Moraca
WebDevGeeks.com

Hi Erik, I wrote a pretty

cyberswat's picture

Hi Erik,

I wrote a pretty detailed step by step set of instructions at http://kevinbridges.org/node/164 for the general configuration of a clean ubuntu box and included the httpd.conf file you'll need in the post at http://kevinbridges.org/node/160 ... the first post has some items in it specific to debugging with Komodo, but you can skip those. We verified these instructions on a multitude of machines running Ubuntu's Hardy Heron so as long as your not using an older version of Ubuntu they should work for you.

and just for reference ... Here's a few commands:

This one gives you just about everything you would ever need for a web environment on Ubuntu:
sudo apt-get install apache2 mysql-server-5.0 mysql-client mysql-gui-tools-common phpmyadmin php5-common php5-cgi php5-cli php5-curl php5-gd php5-mcrypt php5-mysql php5-tidy php5-xdebug ruby cvs subversion scim-qtimm scim-tables-additional tcl8.3

Apache conf
sudo gedit /etc/apache2/sites/enabled/000-default &

Fixing Ubuntu's default web permissions ... change username to your username running the command 'whoami' gives you your username:
sudo -R chown username.username /var/www

Eventually you'll get an error message about php exceeding available memory http://drupal.org/node/29268 this can be fixed in:
sudo gedit /etc/php5/apache2/php.ini &

Ubuntu Setup Shenanigans...

thepocketgeek's picture

I have tried to set up a server using Rackspace for web hosting and I'm still having issues getting the domain name to point to the server and show something. It's been a pretty frustrating experience.

I know apache and PHP are set up and working because I get the "It Works!" message and I can access PHPMyAdmin. If I had known what I was getting myself into when I started I probably would have tested all of this locally on some POS computer. I had to learn some linux commands and used apt to get most of the modules I needed up and running. Not sure if I am going to be able to finish my little project but I know I am close. You get spoiled with cute little GUI's. Command line stuff is a little more involved. Webmin and Virtualmin seem like nice alternatives but its no substitute for the ease of use you get with cPanel.

I'm going to be reading through the links you guys posted and I will be checking this thread to see how you made out.

If you need help

gadams's picture

thepocketgeek if you need help you can post your specific questions or contact me directly and I'll help you get setup.

G

"Just as diamonds are forever, Google Cache is too"

Thanks for offering to help.

thepocketgeek's picture

Thanks for offering to help. Let me give you a rundown of what is running on the server:

Server IP: 184.106.137.86

Ubuntu Linux 9.0.4
Webmin Version 1.520
Apache 2.2.11
MySQL 5.0.75
BIND DNS 9.5.1
ProFTPD 1.31
Virtualmin 3.77

Basically what I am trying to do is create a server that can host one or more websites. I'm pretty sure that all of the above items are working. What I don't know is what to do next.
If I already have a domain name pointing to the server's address, what do I need to do on the server so that when I type that domain name in, it will load the site?

check again

joemoraca's picture

I would check maybe twice more to be sure you have the A record for the domain name pointing to the correct IP address - it's easy to mistype an IP address (experience talking)

If you just use the servers IP address do you get the default "It Works" page?

You may need to check your "default" config in etc/apache2/sites-available (I think thats the correct folder for ubuntu) - be sure the folder is pointing to the correct spot on the drive /var/www/

Joe Moraca
WebDevGeeks.com

I took a look at the default

thepocketgeek's picture

I took a look at the default file and saw the following line:
DocumentRoot /var/www

Is that what I was looking for?

If it would help to post the entire contents of that file, let me know.

Apache config

iribarne's picture

I am not sure if this will help, but here is one way to configure Apache:

http://drupaldojo.com/session/moving-your-site-new-server

The video covers how to move a site from shared hosting to VPS hosting. The section that covers Apache starts around the 21st minute.

Below are a few more links that may help:

Installing Drupal in public_html using Ubuntu 8.10
http://drupal.org/node/337762

VPS! Getting Drupal up and running on a linode (post from Victor Kane, author of Leveraging Drupal)
http://awebfactory.com.ar/node/444

--Hector

where is the drupal site

joemoraca's picture

where is the drupal site located? if it is in /var/www/drupal you will need to change the default file to match the location of the drupal install.

you want the documentroot to be where drupal is located

Joe Moraca
WebDevGeeks.com

Linode and Aegir...

irishgringo's picture

If you are brave, I have done a couple of Aegir installs on Linode using the Omega8 distro. Its really awsome.
linode just rocks. I had tested aegir on about 5 hosting platforms, and Linode is the best so far.
Its really a pretty simple install script. Just edit the baraccuda and Octupus scripts.
The DNS server on Linode is really elegant, and once Aegir is setup, doing installs is just a couple of button clicks.
If you would like, you can contact me, and I can help out with the install. Its good practice.

Florida

Group organizers

Group categories

Florida Topics

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: