Apps :: Xampp running from a USB pendrive problems
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?
Please help. Big_Pc_Manin which point did you format that 900mb partition? you didn't mention..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
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.Thanks for the feedback MikShaw. Those of us that use this forum greatly appreciate your help.