Xampp running from a USB pendrive problems


Forum: Apps
Topic: Xampp running from a USB pendrive problems
started by: Big_Pc_Man

Posted by Big_Pc_Man on July 17 2007,13:33
Trying to get Xampp running from a USB pendrive with persistent /opt dircectory. No success yet.

System details:
DSL 3.4 Iso CD
Xamp 1.6.2 Download
Target Computer - pentium 3 600Mhz laptop - CD drive, 1GB USB pendrive (replace with tiny usb hard drive later), No ata hard drive, 192MB memory.

I'm Using a Dell C640 laptop with 1GB of memory to get everything working and a usb pendrive as a persistent directory /opt source for Xampp. Once everthing is working I will move it on to the target computer.

1. I have DSL (booted from CD) with Xampp (from download) running fine on the Dell laptop with /home and /opt in ramdisk.
2. I created a 900MB unix partition using fdisk on the usb pendrive.
3. The pendrive partition is recognized by DSL as sda1.
4. As su I mounted sda1.
5. As su I created a /opt directory within /mnt/sda1 and changed all permissions using "chmod -R 777 /sda1".
6. With Xampp stopped, I copied the /ramdisk/opt directory to /mnt/sda1 using "cp -pr /ramdisk/opt /mnt/sda1" (also tried -ar option)
7. This operation completed with "failed to preserve ownership for /mnt/sda1/opt/..." for many of the files.
8. The /mnt/sda1/opt directory ended up with all the files copied to it from /ramdisk/opt.
9. Rebooted DSL with the cheat code dsl opt=sda1. It successfully Mounted automatically.
10. The /opt directory is now coming from sda1 as a persistent directory and has replaced /ramdisk/opt.
11 As su I tried to start Xamp with /opt/lampp/lampp start. Received the following results:


Starting XAMPP for Linux 1.6.2...
XAMPP: Starting Apache with SSL ...
XAMPP: Error 127! Couldn't start Apache!
XAMPP: Starting diagnose...
XAMPP: I'm Sorry, I've no idea what's going wrong.
XAMPP: Please contact our forum < http://www.apachefriends.org/f/ >
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP: /opt/lampp/sbin/proftpd: error while loading shared libraries: libmysqlclient.so.15:
cannot open shared object file: No such file or directory
XAMPP: Error 127! Couln't start ProFTPD!
XAMPP for Linux started.

I piped the terminal output to a log file and edited it with windows notepad to include in this message. Anyway, clearly the above procedure did not work.

I'm not quite sure where to begin debugging this. Has anyone out there got this type of setup to work? Any ideas as to what is going wrong?

Seems like others have got this to work on hard drive installs but not on usb devices based on these threads.
< http://damnsmalllinux.org/cgi-bin....0;st=30 >
< http://damnsmalllinux.org/cgi-bin....l=xampp >
< http://damnsmalllinux.org/cgi-bin....l=xampp >
< http://damnsmalllinux.org/cgi-bin....43;st=5 > (closest to what I'm doing)
< ]http://damnsmalllinux.org/cgi-bin....B] >

Please help.
Big_Pc_Man

Posted by curaga on July 17 2007,13:56
in which point did you format that 900mb partition? you didn't mention..
Posted by Big_Pc_Man on July 17 2007,16:55
Oh yeah, that was a stupid mistake. I forgot to mkfs after the creation of the partition. Now it works fine.

Thank you
Big_Pc_Man

Posted by mikshaw on July 17 2007,18:02
Quote
5. As su I created a /opt directory within /mnt/sda1 and changed all permissions using "chmod -R 777 /sda1".
This is a _really_ bad idea. You are opening up everything on that device to be written by anyone, any script, any program, with no restrictions. Unix ownerships and permissions are a fundamental part of system security, protecting things not only from malicous attack but also from poorly coded programs and user mistakes. If there is anything a user should fully learn, it's how to understand and properly handle file permissions.

Quote
6. With Xampp stopped, I copied the /ramdisk/opt directory to /mnt/sda1 using "cp -pr /ramdisk/opt /mnt/sda1"
As root? A normal user cannot do this unless all files are owned by him. #7 should give you a hint that something went wrong.

From looking at your error messages, it seems like your xampp files are not entirely there.  I can't make any more guess at this time.

Posted by Big_Pc_Man on July 23 2007,21:08
Thanks for the feedback MikShaw. Those of us that use this forum greatly appreciate your help.

Big Pc Man

Posted by lucky13 on July 23 2007,21:16
Quote
This is a _really_ bad idea. You are opening up everything on that device to be written by anyone, any script, any program, with no restrictions.

Agreed. I didn't catch this thread earlier, but XAMPP makes it clear that their focus isn't on security:
< http://www.apachefriends.org/en/xampp-linux.html#381 >

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.