instmodsh, a shell to examine installed modules. Used to easily list all the installed module from your server/PC.
[email protected] [~]# instmodsh
Available commands are:
l - List all installed modules
m <module> - Select a module
q - Quit the program
By hitting ‘l’, it will show you the list of installed module,
Installed modules are:
Hmmm….I am trying to get the PECL package from the site, but keep on getting an error from PECL :: Error.
Something is wrong with PECL website.
Today, I am getting an error while trying to install application from fantastico, however it is found out the database is not dump correctly but the database, user and password is done correctly.
After checking with cPanel team and Netenberg team. It is found out the problem was came from MySQL issue where I have upgrade the MySQL from 5.0 to 5.1.
To overcome the issue, DBD::MySQL is needed for an upgrade. However, it is found out WHM could not help to upgrade the DBD::MySQL. Hence I am performing the manually installation.
Below is the step,
1. Run from Shell.
perl -MCPAN -e shell
cpan> install DBD::mysql
3. Wait for the installation and you could retry again.
By default, Perl/CGI script will send the error to STDERR where it is the server standard error and normally it will store to the server Apache error log.
To setup private error_log from your Perl/CGI script, you may easily get them done with script below.
use CGI::Carp qw(carpout);
open(LOG, “>>/home/mickgenie.com/logs/cgi-error.log”) or
die(“Unable to open cgi-error.log: $!n”);
The carpout() used to call the error and send it to the log file that you set.
To setup error to send to browser,
use CGI::Carp qw(fatalsToBrowser);
die “Couldn’t open log file”;
Use the above script and it could send all the error to the Browser.
Assume that you have a sample Perl script that only print the clear text and you still got the premature end of script headers error.
Sample Perl Script used.
print “Content-type: text/html\n\n”;
print “Hello, Mick Genie!\n”;
Step to overcome the problem.
1. Check the Apache error_log or domain error log.
2. Check if the perl script come with permission 755 where this will allow the script to execute.
Continue reading Perl Script getting Premature End Of Script Headers Error
When you restarting the httpd services while the the server found high load, you might get these error.
ERROR: (28)No space left on device: mod_rewrite: could not create rewrite_log_lock
Why you will getting this error? The reason is the semaphore issue. What is semaphore? It is the process used to communicate between active process from Apache.
To check what is the semaphore used, you may use the command as below.
Continue reading No Space Left on Device