Local LAMP server

Status
Not open for further replies.

DaveEMG

Pwner.
Jan 11, 2007
889
7
0
Silicon Valley, CA
www.evokemg.com
I am so fucking over my head.

Anyways, here's the short & sweet.

I just picked up a new junk machine to run as a local PHP / MySQL dev server (mind you, I'm a Windows guy, so I'm really out of my element).

I downloaded & installed Ubuntu 7.04, including the LAMP option, so as far as I know I've got PHP running and MySQL running, etc. What do I do next?

I can ping the server from my windows machine, so I know it's up and running, but I don't know what the hell I'm doing. All I want is to be able to write my code and manage my database.

Suggestions?

Rep points will be rewarded religiously. ;)
 


Let's pretend that I'm the biggest fucking retard you know, and not overcomplicate this situation with 2 part questions.

If I go to cPanel® -- which I guess is the default location for a local host? -- I can see that there's something running (but no file comes up). I can ping that too. I called my machine stewie (tribute to Family Guy).

So, I just ran
sudo apt-get install ubuntu-desktop
which I guess is installing the Ubuntu GUI on the machine now. Taking a while though.

I am totally comfortable setting up nearly anything in Windows, but I just can't find a nice clean solution for how to get this beast running. Maybe the GUI will help.
 
find a linux users group in your area - i'm sure there are lots of linux geeks close by dying to teach you this.
 
CPanel + Web Host Manager is a great way to get around actually using command line to manage your sites and mysql databases. Although I'm not sure what the license costs, and I probably wouldn't pay for it just to put on a dev server... so yeah, that probably doesn't help you much :)
 
Google is your friend. Take it step by step and ask it questions. When there's a word you don't understand in the tutorial, google "define <word>" or "definition of <word>".
 
Man, I really did NOT expect this to be as difficult as it's been. I think I need to take a step back from it tonight, and revisit it tomorrow with fresh eyes.

Honestly, I thought... Plop CD in... Configure installation... specify "LAMP" deployment... Name the machine... Surf to it from my other box... All set to go!

Somewhere along the way it turned in to the clusterfuck it's become.

Linux has successfully made me feel like a fucking moron today.
 
xampp (by apachefriends) is the easiest (for a windows machine). just install it (straight from an exe), you have php, mysql, and some other goodies. run it, go to 127.0.0.1 and you're sorted.
 
  • Like
Reactions: DaveEMG
Okay okay okay... All may not be lost.

I just need a little nudge in the right direction.

I can now browse on my workstation to 192.168.0.131 -- the IP of my Linux box. I can see it, and I click "apache2-default" and a web page pops up! This is progress.

Now I'm having a permissions issue. I think installing the graphical desktop was a bad idea. :( I can't login as the root user to the "graphical" desktop; but I can't give my main user permissions like the su account, which I need to do to change the base www directory, etc.

Ugh. I get the feeling I screwed something up. And it seems like I'm extra fuct because I don't have a fixed IP address for this box. Almost all the documentation I can find is for how to configure the machine as a live web server... I don't want it exposed to the world; I want to do the dev locally and then once everything is finished upload the beast to the universe.

Thanks for the virtualization suggestions. In retrospect virtualization on the XP Pro that's already on this Dell might (and may still) be the way to go. And yes, lots of stragne ones coming out of the craigslist cry for help. Any SoCal WF members wanna give me a hand? $100 cash to swing by and get me out of this mess. :)
 
A lot of modern Linux distros are designed to restrict access to the root account, since many people use it all the time and end up hosing their system with an rm in the wrong place.

The installation should have given you info on what your root password is, or let you assign a root-capable user.

Try "sudo sh" to get a root shell, and see if it prompts you for the root password. Sudo is a program that lets you run programs as someone else, usually the intention is to let users become root just to execute certain commands.
 
in regards to Ubuntu, it should have asked you to create a new account - the root password will be identical to the password of your new account
 
In retrospect virtualization on the XP Pro that's already on this Dell might (and may still) be the way to go.

I have a simple rule my time is money don't waste it on seting up test they may or may not work just simple VMware appliances save your time for projects that are making you money.
 
Can you say exactly what the permissions error is? Are you seeing it in the browser or in a log file somewhere? You need to find the document root and give the user apache runs as permission to the files there. For Ubuntu out of the box it should be /var/www.

Code:
sudo su -
chown -R nobody.nobody /var/www

Put a file in there to test if PHP is working. So in /var/www create a file called index.php and put this in it:

Code:
<?php phpinfo(); ?>

Go to http://192.168.0.131/ and you should see a PHP Test page.

The config file for apache should be in /etc/apache2/sites-available/default. To restart apache after you make config file changes...

Code:
/etc/init.d/apache2 restart

If you give me more info on your error messages, I'll work with you to get it up and running if what I've said doesn't work. Sounds like you're very close.
 
Status
Not open for further replies.