Fred wrote: > Hello > > I'd like to add my own PHP pages in mini-httpd's data directory, and > then > hopefully, be able to use the stand-alone version of SQLite so I don't need > to recompile PHP from scratch and somehow upgrade AstLinux so that it uses > my expanded version. > > However, after booting up from the CF card, vi fails writing a file: > > pbx www # mount > /dev/root on / type ext2 (ro,nogrpid) > none on /proc type proc (rw) > none on /dev type tmpfs (rw) > none on /var type tmpfs (rw) > none on /tmp type tmpfs (rw) > none on /dev/pts type devpts (rw) > none on /sys type sysfs (rw) > usbfs on /proc/bus/usb type usbfs (rw) > none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) > > pbx www # cat /etc/mini_httpd.conf > data_dir=/var/www > user=root > port=443 > logfile=/var/log/mini_httpd > pidfile=/var/run/mini_httpd.pid > charset=iso-8859-1 > ssl > cgipat=**.cgi|**.php|cgi-bin/* > certfile=/etc/ssl/mini_httpd.pem > > pbx www # cd /var/www/ > > pbx www # ll > drwxr-xr-x 4 root root 1024 Sep 11 04:41 . > drwxr-xr-x 5 root root 1024 Sep 11 04:33 .. > drwxr-xr-x 3 root root 1024 Mar 2 2007 admin > -rw-r--r-- 1 root root 230 Mar 2 2007 index.html > drwxr-xr-x 4 root root 1024 Sep 11 04:41 vm > > pbx www # vi test.php > > <?php > > echo > "test"; > > ?> > > ~ > > ~ > > :w! > Write error: Read-only file system > > Any idea why AstLinux is keeping me from writing into /var/www?
Fred, There are several ways to handle this. 1). Make sure you're using a version of Astlinux that support unionfs. I'll be building and uploading some versions from trunk later tonight. You'll need to follow the instructions at www.astlinux.org to setup your compact flash device (or whatever storage device you're using). Then with unionfs, you can put whatever files you want in /stat/var/www (which is what the symbolic link from /var/www points to). 2). If you're using an older version of Astlinux which does not support unionfs, you can always set your mini-httpd directory in rc.conf and keep the files where ever you want (presumably on /mnt/kd). Darrick -- Darrick Hartman DJH Solutions, LLC http://www.djhsolutions.com ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Astlinux-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to [EMAIL PROTECTED]
