Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: vinnie on February 20, 2011, 03:32:07 AM

Title: Problem with create an extension
Post by: vinnie on February 20, 2011, 03:32:07 AM
Since I am not able to get unpacking in php I wanted to create the xampp package so that i can take apart with ondemand and do not spend ram.
However, installing the content folder in opt is much smaller than it should be and obviously i can not get to the localhost.
However, if i unsquash the package and replace /opt/lampp everything works magically!
This is the package, almost 90 mb:
Direct Link (http://anyhub.net/file/1T82-xampp.tcz) -- Direct Rapidshare (http://savefrom.net/get.php?d=40916777&t=a841242bebfb5b6eb10f345a361dc439) -- Rapidshare (http://rapidshare.com/files/448895522/xampp.tcz)

Pay attention, xampp require bash

The process of packaging that I used:
1 sudo tar xvfz xampp-linux-1.7.4.tar.gz -C /opt
2 sudo editor /opt/lampp/etc/httpd.conf to change user and group in tc & staff
3 create a simlink in /opt/lampp/htdoc/.www to /home/tc/.www for confort (if one does not have that folder, it goes unnoticed)
4 create a simlink in /usr/local/bin to /opt/lampp/lampp always for confort
5 create a script to /usr/local/tce.installed to autostart server after install:
Code: [Select]
#!/bin/sh

lampp start
6 move everything to a directory with the corresponding part of the filesystem, owner, group and permission ( in this case /opt/squash/opt... .../usr...)
7 sudo mksquashfs /opt/squash/ xampp.tcz

Repeat for clarity, installation is successful but i can not get the localhost in the browser and /opt/lampp is really small, instead unzip all by hand using unsquash i browsing perfectly on local page.

Please tell me a reason.