= Introduction =
It is hard to upload massive files into shared hosting services via FTP, as you know.
It often causes some missing uploading easily, and you will get many troubles after installing.
But, CGI will run with suExec under such shared hosting services.
This fact offers you to extract any archives via CGI.
You are always ower of extracted files.
And you can get the archive via wget.
(Note: the URI should not be depended on requests against the CGI. If you make such a CGI, it causes serious security holes)
Then, I've written a installer "Hodajuku Distribution for XCL2.1" (HD-1.0.2).
You can get it from here
= How to use =
- extract the zip
- upload hd_installer.cgi into DocumentRoot or its subfolder
- chmod 755 hd_installer.cgi
- access via web browser eg) http://www.example.com/hd_installer.cgi
It looks quite smooth.
You are free from:
- downloading the archive into your local computer
- uploading massive files into the server via ftp
- chmod uploads/cache/templates_c/mainfile.php
You must test the CGI at shared servers.
Because the CGI cannot run with almost local environment.
xampp: there is no bash
local linux: suExec disabled (perhaps)
You never forget removing hd_installer.cgi just after installation.
= Examination =
If you are interested this kind of installer, try to hack hd_installer.cgi
I wrote the script easy to hack as possible.
Just by modifying some lines of 'declare' in the top of the script, you can make "ImpressCMS Installer" or "XOOPS2.3 Installer".
The script is under licensed "New BSD".
This system must be really useful as "updater" of modules or the core.
As the updater can use information from mainfile.php, it might be moderately secure.
I'll make such a updating CGI by bash
It made me remember some script installer I tried with Mikhail on some free hosts ans shared hosting accounts.
cannot download http://downloads.sourceforge.net/hodajuku/hd_full_1_0_2.tar.gz
which curlしたら/usr/bin/curl だったので、curlはあるようです。fetchするプログラムを分岐すると対応サーバが増えそうです。