To install onPowWeb , use "Extra Tools automatic installer"On Linux or other system, install Ocaml and then place'easycgi.ml' 'oced.ml' in a directory to compile binary cgi.Commandline:ocamlopt.opt -a easycgi.ml -o easycgi.cmxaocamlopt.opt unix.cmxa str.cmxa easycgi.cmxa oced.ml -o oced.ml.cgiSubsequent recompile can be done withinOcamlEditor itself,using real source code 'oced.ml.ml'OcamlEditor is a simple site-management tool + Ocaml based CGI developpement environment.It also allows you to create shellscript CGI very easily.If you don't want the Ocaml cgi developpement capability, you can download only main binary cgi and dl.cgi to use site management/generic editor capability.The source code is found in the package, in lib/ocaml:oced.ml.ml and easycgi.ml'oced.ml.ml' contains small extensions to the Ocaml syntax,and it's preprocessed byOcamlEditor just before compilation.The preprocessed source is saved as 'oced.ml'.ForPowWeb (FreeBSD 4.11): main cgi oced.ml_cgi(Put it as oced.ml.cgi and set permission to 700)Linux: main cgi oced.ml_cgi.Linux(Put it as oced.ml.cgi and set permission to 700 or 755 for nonSuExeced host)helper cgi for showing/downloading files dl.cgi( Put it as dl.cgi and set permission to 700 or 755 for nonSuExeced host)Source code:oced.ml.ml (Requires oced.ml.cgi to compile)Preprocessed source: oced.mlEasycgi library: easycgi.ml
This is a very simple (primitive) guestbook CGI.It generates guestbook page from a template, and keep addingnew post as it arrives.No admin feature, not much security feature, nada.(I added double post prevention, and minimum interval between poststo prevent repetetive SPAM attack and possible file corruption.)As it is so simple, virtually no setup is needed.You can just put the precompiled CGI binary (with executable permission, 700 or 755 depending on the host) and sample template in the same directory, and it'll start working.Since it's written in Ocaml and compiled to native code, it is very light, too.Ideal for the servers with limited resources.By modifying the template, it's very easy to fit into existing site.If you need more features, simply edit the source and recompileusingOcamlEditor .I may add a little more features, later.The concept of this guestbook is very simple, and it can be easilyimplemented with other languages if someone wishes so.ForPowWeb (FreeBSD 4.11): precompiled cgi gb.ml_cgi(Rename it as gb.ml.cgi, permission: 700)Linux: precompiled cgi gb.ml_cgi.Linux(Rename it as gb.ml.cgi, permission:700 or 755 for nonSuExeced host)Sample template gbtemplate.html
- MiniTar
This is a mini extraction/compression utility.A front end for zip, tar, gunzip, bzip2.It'll let you extract/compress files and/or directories, very easily.This script works as a CGI and also as a command line tool.I made it out of MiniSqlDump.For more detail, please see: MiniTar(Still under testing.)
- MiniSqlDump
This is a minisql utility for backup(dump) and restore operation of MySQL database.This script works as a CGI and also as a command line tooland it can be used in crontab, in other script/CGI/PHP.It's quicker than mysqldump, and produces smaller data.And it can compress the data automatically if specified.It can act as a front end for 'mysqldump', and also restore database using the backup(dump) produced by mysqldump or other utilities.Please check this link for more detail: MiniSqlDump(Still under testing.)
- MiniSqlAdmin
This script allows you to execute MySQL query via simple CGI interface.It can restore/backup DB (all tables, or tables of your choice) acting as a front end for MiniSqlDump, too.Check this link for more detail: MiniSqlAdmin(Still under testing.)
- MySQL restore
This script restore MySQL Database from .sql file dumped by mysqldump.It strips INSERT lines from .sql file and put data in separate files,and use LOAD DATA LOCAL INFILE for better performances.
- Scripts for MySQL backup and restore
Other scripts and tips.
PowWeb specific tools
You can use automatic installer or install manually.These tools should be placed within a protected directory (preferably other than cgi-bin).CGI must have the permission of 700 (Read/Write/Execute for the owner, and nothing for others).
- Extra Tools automatic installer (Change the extension to ".php")
This scirpt will let you install/update, browse source, and download tools found in this page.Install this one, first, if you are interested in any of these tools !
- Easy Log tool (Change the extension to ".cgi" and set permission of 700)
This scirpt will let you download, see, and copy current and past logs, both access_log and error_log.If you are curious about logs, need one stop solution for raw_log related needs, you should have this tool.Also, there are other tools in this thred.Easy Log Tool (PowWeb Forum thread.)Note:
PowWeb has been improving its OPS/sitemanager, and now you canbrowse/download all log files in "Log view" tab of sitemanager (Use OPS username/password)
- CronAid Crontab checker/editor (Change the extension to ".php")
This script will check several common errors related with crontab, and correct some of them, as well as let you edit the crontab, and optioanlly execute them.It has already removed cronical cron related pains of many people !When it comes to trouble shooting cron related matter, you can't miss this tool.Note:
PowWeb's sitemanager has now crontab editing capability!Use OPS username/password to login.https://ops.powweb.com/?module=packages&submodule=sitemanager&page=%3Fmodule%3Dcrontab
- Simple password protection aid (simplepass.php) (Change the extension to ".php")
This script can create password protection, add new user, change passwordfor the directory it's placed.It's a basic, very simple password protection manager to satisfy basic needs.Currently you have to manually edit password file, to remove a user.
- php.ini control center (Change the extension to ".php")
This scirpt will let you create/modify customized php.ini, including for "Easy new method" subdomains.Also, it will create directories and associated crontab entries for refreashing php.ini with the new copy of Powweb, as well as setup crontab for session file cleanup, if you choose.It offers "Easy setup menu" and "Detailed setup menu" to satisfy both novice and more advanced users.Although I made it for Powweb users, I think it can be used on other setups with very small modification.I wrote this in PHP despite my dislike for the language, simply because it's for PHP users.It would be insulting for PHP lovers if I did small neat script in other language to take care of PHP madness.Also this way, PHP people can correct/modify as they want.
- The easiest pointed/serviced domain setup script (Follow the instruction in the file)
This is the easiest method for setting up pointed/serviced domain.There is no choice to make. Nothing to edit.Not much to think/learn.It's automatic and easy.It comes with the fix for missing trailing slash problems.Recommended for novice users and people who have problem with other methods.For other methods and more informations, please read this page.
- Domain manager (To install, please use "Extra Tools automatic installer")
This tool assists you to manage
- Easy new method subdomains
- Traditional .htaccess sub/pointed domains
- Generic .htaccess sub/pointed domain (not implemented, yet.)
By using this tool, you will have better quality code automatically generated, and avoid many mistakes that may take hours to resolve.This tools comes with lots of safty feature, and subtools that will help you to debug Rewrite/Redirect code.
- genht.php (auto setup script for sub/pointed domain)
This script setup .htaccess and associated wrapper CGI for Generic .htaccess method sub/pointed domains.Read following link for more detail.This isn't a tool, although it comes with a wrapper CGI script.This is aRewriteRule that goes into .htaccess and script combofor creating an easy system for creating/maintaining sub/pointed/serviced domains,just like Domain Manager.It will be integrated into Domain Manager ... sometime later.Please just read the page if you want to have multiple domains in yourPowWeb package.
- Python package (To install, please use "Extra Tools automatic installer")
There are two Python package. Mini and FUll.If you plan to use additional modules, install Full package.
- SQLite for Python
This is an alternative SQLite library for Python.To use, download apsw.so and put it intowww/U/USER/py24/lib/python2.4/lib-dynloadIf you want to compile by yourself on Powweb server, you need to replace the source code "apsw.c" with this one.See the author's home page for more details.
- MySQL-Python (Require Python package) (Change the extension to ".cgi" and set permission of 700)
This is an automatic installer for MySQL-Python Library.Simply put it in a protected directory and set permission of 700,and access it. (MySQL 4.1.11, MySQL-Python 1.2.0)To use, just import it; import MySQLdbhttp://www.kitebird.com/articles/pydbapi.html
- Debugging aid nph-debug.cgi (Change the extension to ".cgi" and set permission to 700)
This is a very simple debugging aid for Perl and other CGI/PHP.It checks the permission, line ending, and syntax errors of Perl/shell/php.
- phpwrap.cgi (Change the extension to ".cgi" and set permission of 700)
This script allows you to call php script from cronjob just like using wget, but with more efficiency.
- Realtime Bandwidth checker (Change the extension to ".cgi" and set permission of 700)
This scirpt check the bandwidth usage in real time. It is as acurate as the raw log you get .....Realtime Bandwidth checker (PowWeb Forum thread.)
- hitcount.cgi (Change the extension to ".cgi" and set permission to 700)
This scirpt will show total hit during the past hour. You can also specify the hour to count the hit.