https://www.slackwiki.com/index.php?title=Mod_perl&feed=atom&action=historyMod perl - Revision history2024-03-29T11:56:08ZRevision history for this page on the wikiMediaWiki 1.40.0https://www.slackwiki.com/index.php?title=Mod_perl&diff=135&oldid=prevErik: Copy from old, had no category, placed in Tutorials2009-06-04T05:20:46Z<p>Copy from old, had no category, placed in Tutorials</p>
<p><b>New page</b></p><div>[[Category:Tutorials]]<br />
This is an example of installing mod_perl on SlackWare 12.0 using the SlackBuild system. I put everything in /root/SlackBuild_mod_perl and I did all the following commands as root. I figured it out from this page: http://slackbuilds.org/howto/<br />
<br />
First, I downloaded everything. I went to http://slackbuilds.org/repository/12.0/development/mod_perl/ and I downloaded the "slackbuild" file, mod_perl.tgz, and the source, mod_perl-2.0.3.tar.gz, into /root/SlackBuild_mod_perl<br />
<br />
I unpacked the SlackBuild package:<br />
<pre><br />
root@pecan:~# cd ~/SlackBuild_mod_perl/<br />
root@pecan:~/SlackBuild_mod_perl# tar xzvf mod_perl.tgz <br />
mod_perl/<br />
mod_perl/README<br />
mod_perl/doinst.sh<br />
mod_perl/mod_perl.SlackBuild<br />
mod_perl/mod_perl.conf<br />
mod_perl/mod_perl.info<br />
mod_perl/slack-desc<br />
root@pecan:~/SlackBuild_mod_perl# <br />
</pre><br />
<br />
I moved the mod_perl source into the mod_perl SlackBuild directory, and editted the SlackBuild script:<br />
<pre><br />
mv mod_perl-2.0.3.tar.gz mod_perl<br />
cd mod_perl<br />
emacs mod_perl.SlackBuild<br />
</pre><br />
<br />
When editting, I just checked that the VERSION= line matched the actual version of the source (2.0.3).<br />
<br />
Then I executed the SlackBuild script:<br />
<pre><br />
./mod_perl.SlackBuild<br />
</pre><br />
<br />
That command ran for quite a while and produced a lot of compiling output.<br />
<br />
When it was done, there was a package left in /tmp. I moved it to /root so it would not be deleted later.<br />
<br />
I installed it with installpkg:<br />
<pre><br />
root@pecan:~# installpkg mod_perl-2.0.3-i486-1_SBo.tgz <br />
Installing package mod_perl-2.0.3-i486-1_SBo... <br />
PACKAGE DESCRIPTION:<br />
mod_perl: mod_perl (Perl Interpreter for Apache)<br />
mod_perl:<br />
mod_perl: Mod_perl incorporates a Perl interpreter into the Apache web server<br />
mod_perl: so that the Apache web server can directly execute Perl code.<br />
mod_perl: Mod_perl links the Perl runtime library into the Apache web server <br />
mod_perl: and provides an object-oriented Perl interface for Apache's C<br />
mod_perl: language API. The end result is a quicker CGI script turnaround <br />
mod_perl: process, since no external Perl interpreter has to be started.<br />
mod_perl:<br />
mod_perl: Homepage: http://perl.apache.org/<br />
mod_perl:<br />
Executing install script for mod_perl-2.0.3-i486-1_SBo...<br />
root@pecan:~# <br />
</pre><br />
<br />
At this point I checked that the file /usr/lib/httpd/modules/mod_perl.so existed, and it did. I editted /etc/httpd/httpd.conf and uncommented the line that included /etc/httpd/mod_perl.conf, and then ran httpd -t to make sure there were no syntax errors.<br />
I ran "/etc/rc.d/rc.httpd restart" to restart the apache server, and it appeared to work. The web page still worked, and perl scripts still ran. <br />
<br />
How can I tell if mod_perl or perl cgi is being used ? I'm not sure, please add that info you know.</div>Erik