Why does FormMail not work?

Posted in category CGI / SSI / PHP

Due to a security spam hole in Formmail script, Cpanel’s Formmail is been disabled for now on all servers.

If you need formmail functionality, please use one of the following scripts:

http://phorm.com

http://nms-cgi.sourceforge.net/scripts.shtml

After installing the recommended formmail, please do not leave it in the cgi-bin called 『formmail』 please rename it to something else like monkey.pl. That way if a script is found to be exploitable in the future (although please do upgrade when one becomes available), its harder for spammers to find. We put the redirect in the httpd.conf to point all FormMail.pl and formmail.pl scripts to say Google since May 31, 2003.

We sincerely apologize for the inconvenience that may have been caused by this. Thank you for your time and for understanding.

Can you install script for me?

Posted in category CGI / SSI / PHP

Yes, we can install it for you. Please contact us to inquire the fee to set it up. We do not provide free support for the script, configuration and debugging your scripts. However we will waive that fee if it turns out that the problem is with our system.

What is the path of ImageMagick for use with 4Images?

Posted in category CGI / SSI / PHP

/usr/bin/convert

How do I protect my PHP source code?

Posted in category CGI / SSI / PHP

You could find some free PHP encoders by visiting the following URL:

MicroCode

http://sourceforge.net/projects/microcode

PHTML-Encoder

http://www.rssoftlab.com/phpenc.php4

POBS

http://pobs.mywalhalla.net

bcompiler

http://pear.php.net/package-info.php?package=bcompiler

PHP Screw

http://sourceforge.net/projects/php-screw

Tags: ,

Why do I keep on getting a 『500 Internal Server Error』?

Posted in category CGI / SSI / PHP

Please make sure the following have been done:

  • upload your script in ASCII transfer mode
  • chmod it to 755 or rwxr-xr-x
  • have the right perl path
  • does your script generate an error, print to stdout and all that before the content-type header? Try with the content-type header at the very beginning.
Tags: , , , ,

How to run cgi scripts from my subdomains?

Posted in category CGI / SSI / PHP

All new sub domains are created with their own independent cgi-bin. This means your new sub domain operates independently of everything else, and is almost like having a whole new domain. Please put your cgi script in subdomain/cgi-bin then run it via http://subdomain.yourdomain.com/cgi-bin/xyz.cgi.

Where can I find useful scripts?

Posted in category CGI / SSI / PHP

The following sites have a great collection of scripts.

http://www.cgi-resources.com

http://php.resourceindex.com

http://www.hotscripts.com

Tags: , ,

Why does my CGI script give me a Permission Denied Error?

Posted in category CGI / SSI / PHP

CGI scripts need to be set executable. You need to change the mode, or permissions, of your programs with your FTP program, and make them 755, or rwxr-xr-x.
Note: A lot of scripts out there will tell you need to make them 775 or even 777. This is not good! It means anyone on the server can write to your script, and since its executable and executes as you, it could delete all your files!

What are some of the paths?

Posted in category CGI / SSI / PHP

Physical Path to CGI-Bin: /home/username/public_html/cgi-bin/
The paths to some commonly used programs for CGI scripts are..
/usr/bin/perl
/usr/sbin/sendmail
/bin/date

Where do I put my CGI scripts?

Posted in category CGI / SSI / PHP

Put your cgi-bin scripts in the subdirectory named 『cgi-bin』.