Blog Forum Wiki Links Contact Us NetbookUser
RunCore Pro IV SSD Transforms your ASUS EEE PC by increasing 
performance 5-40X. Your satistfaction guaranteed RunCore Pro 70mm SATA Mini PCI-e SSD
RunCore Pro IV 70mm SATA II Mini PCI-e SSD
RunCore Pro IV 2.5 Inch SATA II SSD

You are not logged in.

#1 2007-11-19 4:22:54 pm

stenk
Senior Member
Registered: 2007-11-18
Posts: 126

LAMP on Eee PC.

Hello,

I am very excited about getting the Eee PC. I have a question about setting up a small development environment on the Eee PC when I get it.

I would like to install MySQL, PHP and Apache on a separate SDHD card, the MySQL database will not get any bigger then 200Mb.

Is this possible on the EeePC? I would like to use the default OS if I can as most of the time it will be used on the road just for email etc...

Thanks in advance.


Sten

Offline

 

#2 2007-11-19 8:22:22 pm

technoronin
Member
Registered: 2007-09-29
Posts: 38

Re: LAMP on Eee PC.

Possible?  Yes!  Practical?  Probably not.  The default packages will probably want to install under /usr/local, so you will either need to rebuild Apache, MySQL & PHP to live in a different location or play some serious games with symbolic links.

I recommend just installing everything in the internal flash with possibly the MySQL storage on the SD card.

Offline

 

#3 2007-11-19 8:37:46 pm

stenk
Senior Member
Registered: 2007-11-18
Posts: 126

Re: LAMP on Eee PC.

Thanks for your reply.

I was looking into XAMPP for Linux.

Seems there is very little to configure!

http://www.apachefriends.org/en/xampp-linux.html#385

Any ideas if this would work?

I work mostly with WAMP Server which is so easy to use and install, but the idea of a ultra portable development environment is pretty fascinating!

The way you recommend installation I.E .having everything bar the MySQL Dbs is exactly how I want it installed.

Regards,

Sten

Offline

 

#4 2007-11-19 9:47:03 pm

technoronin
Member
Registered: 2007-09-29
Posts: 38

Re: LAMP on Eee PC.

Or you could look at Ruby on Rails for web development....

Offline

 

#5 2007-11-19 9:51:30 pm

stenk
Senior Member
Registered: 2007-11-18
Posts: 126

Re: LAMP on Eee PC.

Thanks technoronin!

Might look into Ruby also.

Cheers,

Sten

Offline

 

#6 2007-11-20 12:57:54 am

wyopistachio
Senior Member
From: Wyoming, USA
Registered: 2007-09-22
Posts: 113

Re: LAMP on Eee PC.

here is a forum post from someone who installed a LAMP on the eee...
http://forum.eeeuser.com/viewtopic.php?pid=16176#p16176


Happy eeePC owner since 11-2-07

Offline

 

#7 2007-11-20 2:43:36 am

stenk
Senior Member
Registered: 2007-11-18
Posts: 126

Re: LAMP on Eee PC.

Thank you for that wyopistachio.

Very kind of you!

Offline

 

#8 2007-12-27 12:43:25 pm

IAmAI
Member
From: UK
Registered: 2007-12-25
Posts: 17

Re: LAMP on Eee PC.

I've been interested in setting up a LAMP development environment on my Eee. The Ubuntu Wiki has a nice article on setting up LAMP. With the Xandros repositories setup I found the process was very similar, so I adapted the guide for the Eee PC and saved it in the wiki here. I'd be grateful of testing and feedback, particularly with PHP5 which I've not tested myself.

One of the issues I've had with setting up LAMP was installing the package libapache2-mod-auth-mysql, which the Ubuntu Wiki guide suggests. I get a dependency when I install it:

libapache2-mod-auth-mysql: Depends: libc6 (>= 2.5-5) but 2.3.6.ds1-13 is to be installed

With some digging around I may be able to figure out how to install a version of libapache2-mod-auth-mysql (looks like it's something to do with pinning). I've left it out of the guide for now as, so far, I've not noticed anything failing, although I also don't know if I've tested the set up sufficiently. Any feedback on this is welcome!

Offline

 

#9 2008-01-04 7:28:07 pm

Webby
Member
Registered: 2007-12-26
Posts: 10

Re: LAMP on Eee PC.

This reply is for stenk ...

I successfully installed XAMPP using the instructions here:
http://www.apachefriends.org/en/xampp-linux.html#374

The only tricky part was modifying the extraction command "tar xvfz xampp-linux-1.6.5a.tar.gz -C /opt" to point at the correct directory, in my case "My Documents/Downloads2008Q1/xampp-linux-1.6.5a.tar.gz".

Last edited by Webby (2008-01-04 7:28:30 pm)

Offline

 

#10 2008-01-29 7:57:39 pm

gmc2drrwd
New member
Registered: 2008-01-29
Posts: 3

Re: LAMP on Eee PC.

I followed the directions on greenhughes.com about how to set up the lamp.
http://www.greenhughes.com/content/sett … t-asus-eee

I even did the F9 move to wipe my eee pc clean beforehand to start fresh and reduce problems.

As per the instructions after installing the software I went to
http://localhost/phpmyadmin
and it asked me to sign in.  The installation, let alone the entire computer was virginized minutes before.  There is no way anyone could have already passed theu this way and set up some sort of password.

I am supposed to be editing the root properties under priveleges, and creating a password, but I am not allowed inside.  Any Ideas?

Last edited by gmc2drrwd (2008-01-29 7:58:35 pm)

Offline

 

#11 2008-01-30 4:35:23 pm

liamgh
New member
From: Milton Keynes, UK
Registered: 2008-01-30
Posts: 3
Website

Re: LAMP on Eee PC.

gmc2drrwd wrote:

I am supposed to be editing the root properties under priveleges, and creating a password, but I am not allowed inside.  Any Ideas?

When you first install MySQL the default password is blank, so you can just leave the password box empty. I've added a comment to my blog post to clarify this.

Hope this helps!

Offline

 

#12 2008-02-02 9:51:09 am

gmc2drrwd
New member
Registered: 2008-01-29
Posts: 3

Re: LAMP on Eee PC.

When I set up apache it asks my domain and server name IE: myserver.com and www.myserver.com.  I am only setting this lamp up to learn about databases and their creation.  I won't be running a real webserver.  What should I enter as the domain names / do? Thanks alot!

Offline

 

#13 2008-02-03 7:16:05 am

liamgh
New member
From: Milton Keynes, UK
Registered: 2008-01-30
Posts: 3
Website

Re: LAMP on Eee PC.

gmc2drrwd wrote:

When I set up apache it asks my domain and server name IE: myserver.com and www.myserver.com.

I don't think I got asked this, but did have to add an entry in the config file for apache. Try entering localhost for these values and that should do the trick,

Offline

 

#14 2008-02-03 8:08:37 am

HomeBrew
Senior Member
From: Massachusetts, USA
Registered: 2008-01-26
Posts: 248

Re: LAMP on Eee PC.

You might also take a look at the selection of Bitnami stacks.

BitNami stacks make it incredibly easy to install your favorite open source software. Application stacks include an open source application and all the dependencies necessary to run it, such as Apache, MySQL and PHP or Ruby. All you need to do is download the Stack, provide a few pieces of information when prompted by the installation wizard, and that's it. By the time you click 'finish', your new application will be ready to run. All stacks have been packaged using BitRock's multiplatform installer.

If you're not interested in a stack with an included application (WordPress, Joomla, MediaWiki, etc.), you can grab one of the so-called "Infrastructure Stacks": LAMPStack (Apache, MySQL, PHP for Liniux), MAMPStack  (Apache, MySQL, PHP for Mac), SAMPStack (Apache, MySQL, PHP for Solaris), WAMPStack (Apache, MySQL, PHP for Windows), or the RubyStack (Ruby, Rails, MySQL and Subversion prepackaged for  Windows, Linux, or the Mac).


[ Black 701C 4G | 2Gb Ram | 16Gb SDHC | Xandros | BIOS v0401 ]

Offline

 

#15 2008-04-07 12:51:07 pm

colinmcc
New member
Registered: 2008-04-02
Posts: 9

Re: LAMP on Eee PC.

I've just purchased a eeepc and it is my first (but not last ;-) venture into the Linux world, I'm really happy with it.

I'm searching here for help in installing  a LAMP environment on it for use at college  (where WAMP is in common use) and found this thread on using the bitnami stack to automate installation. I've been reading the info at  http://bitnami.org/stack/lampstack which indicates that it is still a 'rough' package and may contain flaws.

Has anyone used it for an install on the eee pc, and if so, how did it go?

Thanks!

Offline

 

#16 2008-04-09 10:53:17 am

PeteyD
New member
Registered: 2008-02-15
Posts: 5

Re: LAMP on Eee PC.

I got XAMPP up and running on my 4Gb in no time. Installation was simple, and it works like a champ!

http://www.apachefriends.org/en/xampp-linux.html

Offline

 

#17 2008-04-09 7:46:09 pm

colinmcc
New member
Registered: 2008-04-02
Posts: 9

Re: LAMP on Eee PC.

Hi PeteyD,

You're going to have to help me I'm afraid, I'm sure it should be simple but... (this is my first attempt at installing/doing anything at the command line  under linux)

I followed the link & downloaded the file xampp-linux-1.6.6.tar.gz which has been saved on my eeepc in the default tmp directory.

Open a console with Ctrl-Alt-T I'm now at the  /home/user> prompt.

Instruction 1:

Go to a Linux shell and login as the system administrator root:

su

So I type su as instructed.. I'm asked for a password. I'm not aware that I ever set one...???

Can get no further..

I tried entering sudo tar xvfz xampp-linux-1.6.6.tar.gz -C /opt

Which tells me no such file... So I now presume I have a path problem.

I've tried to move into the tmp directory with cd/tmp but am told no such file or directory.

I've tried to simply move to the parent directory with cd.. expecting to go to /home but I'm told 'command not found'

I've been looking up various linux pages on the web I think that cd should be a valid command so what am I doing wrong?

Thanks!

Offline

 

#18 2008-04-09 8:01:04 pm

colinmcc
New member
Registered: 2008-04-02
Posts: 9

Re: LAMP on Eee PC.

Aaah! A space between cd and /tmp helps!

Moved into /tmp and ran sudo tar xvfz xampp-linux-1.6.6.tar.gz -C /opt

It ran.. ;-)

Played with cd, moving round the filesystem all seems ok with that. I'd still like to know what the default su password is though.

Now to try and start apache..

Offline

 

#19 2008-04-09 8:15:26 pm

colinmcc
New member
Registered: 2008-04-02
Posts: 9

Re: LAMP on Eee PC.

It worked! apache/php5 is on the eeepc and runs at localhost.

It also seems to have installed and started ProFTPd which seem to be a standalone ftp server, I'm going to shut that down since I can't see (yet) how to benefit from that running, and, presumably consuming resources.

Thanks!

Offline

 

#20 2008-04-16 10:00:13 am

DannyB
Member
Registered: 2007-12-19
Posts: 60

Re: LAMP on Eee PC.

If you need a quick and dirty, and temporary web server you can always use the POW (Plain Old Webserver) extension for FireFox.  Then you have a web server running entirely within FireFox.  It even allows scripting (server side) of pages using embedded JavaScript.

Use cases (eg, why this would be useful...)

Alex needs to share some files with Bob.  Alex can run the PoW extension in firefox and put some files into the web server folder.  Bob can then surf to Alex's IP address and retrieve the files.

Bill wants to show Tom his web page design.  Bill can run PoW in firefox.  Tom can connect and see what the page looks like when rendered in a browser.

Don needs to trick a nearby IE user into visiting a page of exploit code so that he can . . . . . .

Offline

 

#21 2008-06-02 11:30:30 am

cybeee
Senior Member
Registered: 2008-05-02
Posts: 777

Re: LAMP on Eee PC.

I have gone with lighttpd, sqlite, fastcgi, flup and python. Keeping it liteweight, but not too restrictive.

A webserver is always useful nowadays, and they are good places to keep projects that are not even designed for web usage.

Offline

 

#22 2008-06-24 7:45:21 am

eeelectron
New member
Registered: 2008-06-24
Posts: 9

Re: LAMP on Eee PC.

I have just bought a eee PC 900, the battery debacle aside (something so portable needs decent battery life, hopefully they will sort out something eventually for us...), I'm very happy with it. I’m also new to Linux, having been a windows user to date.

I would like to install XAMPP. I have read the posts above and tried installing as per instructions on-

http://www.apachefriends.org/en/xampp-linux.html#385

But have been unsuccessful.

When I selected the file on the website it asked to ‘open?’ or ‘save to disk?’. I saved to disk in the ‘My Documents’ folder.

When I enter ‘su’ as instructed it asks for a password…..and I cannot do anything else. Does anyone know if this part is ok to ignore?

I notice that posters have tried to just change the directory in order to run the extraction command. I attempted to change to ‘My Documents’ using cd /My Documents it but didnt work….

Can someone from this great forum help me please?

Thanks


Galaxy Black Asus EEE PC 900, 20 GB SSD Hard Drive, Linux...and 4400mAh battery boo hoo! Bought from eBuyer.

Offline

 

#23 2008-06-24 5:23:19 pm

IAmAI
Member
From: UK
Registered: 2007-12-25
Posts: 17

Re: LAMP on Eee PC.

Try sudo bash instead of su.

Offline

 

#24 2008-06-25 3:57:39 am

eeelectron
New member
Registered: 2008-06-24
Posts: 9

Re: LAMP on Eee PC.

Done it!

I have started and stopped it but havent used it yet though...

Thanks IAmAI sudo bash did let me in 'as root' (some of the text turn red. Apparently have to be v careful...) which I suppose means some sort of linux admin mode...

Heres what I did-

In order to extract the file, you need to be able to access it in root mode, in the same directory. I deleted my original download to my documents, as I couldnt change directory to 'my documents' for some reason...

I tried to save the file in the /opt folder but it didnt work...

I noticed that when I opened a window with ctrl alt T it was in the home/user directory. So I saved the file from the website 'to disk' in the 'user' folder (that was quoted) which in file manager is called 'my home' (bit confusing...).

Then I entered the extract command-

sudo tar xvfz xampp-linux-1.6.6.tar.gz -C /opt

I suddenly saw a long list of code as the file was extracted. Success! smile

Some of the above may be obvious to seasoned linux users, but for us linux novices its all new and so we need stuff spelt out....wink

Need to find a way of switching xampp on and off without typing a command via ctrl alt T, root mode etc, seems a bit long winded to me...Does anyone have any tips?

Thanks


Galaxy Black Asus EEE PC 900, 20 GB SSD Hard Drive, Linux...and 4400mAh battery boo hoo! Bought from eBuyer.

Offline

 

#25 2008-06-25 10:56:16 am

hawkfire
Senior Member
From: Ottawa, ON, Canada
Registered: 2007-11-22
Posts: 100

Re: LAMP on Eee PC.

eeelectron wrote:

Need to find a way of switching xampp on and off without typing a command via ctrl alt T, root mode etc, seems a bit long winded to me...Does anyone have any tips?

Thanks

I set up two icons on one of my tabs using e3portal's LauncherTools.  The command would be:

Start

/usr/bin/sudo /opt/lampp/lampp start

Stop

/usr/bin/sudo /opt/lampp/lampp stop


I've also managed to move XAMPP over to an ext3 partition on my SDHC card to save space.  I just need to find the time to start some development work with it.

Last edited by hawkfire (2008-06-25 10:56:35 am)

Offline

 

Board footer

Powered by PunBB 1.2.15
© Copyright 2002–2005 Rickard Andersson