<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.slackwiki.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Trashbird1240</id>
	<title>SlackWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.slackwiki.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Trashbird1240"/>
	<link rel="alternate" type="text/html" href="https://www.slackwiki.com/Special:Contributions/Trashbird1240"/>
	<updated>2026-05-02T08:19:06Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://www.slackwiki.com/index.php?title=Recompile_php_with_mcrypt&amp;diff=254</id>
		<title>Recompile php with mcrypt</title>
		<link rel="alternate" type="text/html" href="https://www.slackwiki.com/index.php?title=Recompile_php_with_mcrypt&amp;diff=254"/>
		<updated>2009-10-05T16:55:09Z</updated>

		<summary type="html">&lt;p&gt;Trashbird1240: removed note about editing slackbuild&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Tutorials]]&lt;br /&gt;
PhpMyAdmin (available at [http://www.SlackBuilds.org/ SlackBuilds.org]) works well when you compile PHP with the mcrypt extension.  After installing PhpMyAdmin, you may see a warning that it cannot find the mcrypt extension.    Unfortunately the official Slackware package does not include this extension.  Recompiling PHP is necessary, as is enabling the mcrypt.so extension in /etc/httpd/php.ini.  The first step is a little tricky, since compiling PHP requires a little trick: you must compile alpine during the PHP build.  It is fairly simple once you have things in place, but this tripped me up when I first tried to recompile PHP.&lt;br /&gt;
&lt;br /&gt;
== Install mcrypt and libmcrypt ==&lt;br /&gt;
&lt;br /&gt;
mcrypt is available from [http://www.SlackBuilds.org SlackBuilds.org].  First build and install mcrypt and libmcrypt before compiling PHP.&lt;br /&gt;
&lt;br /&gt;
== Recompile PHP ==&lt;br /&gt;
&lt;br /&gt;
Go to a Slackware mirror and download Pat's Slackbuild directory for php from the source/n directory.  I used &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;# wget --mirror &amp;lt;mirror&amp;gt;/n/php&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to download the whole directory.  You will also need to download the alpine/ directory into the parent of the newly-created php/.  In other words, you should have a parent directory with both php and alpine.  For example, mine is ~/SlackBuilds/n, where I have two subdirectories: one for alpine/ and one for php/.  An alternative to wget is to use a file manager capable of ftp with drag and drop, such as Nautilus.&lt;br /&gt;
&lt;br /&gt;
'''&lt;br /&gt;
Be sure to chmod +x both the alpine and php SlackBuilds before attempting to build.'''  If you don't, things may go for quite a while depending on the speed of the machine you're building on before you get an error (and you ''will'' get an error).&lt;br /&gt;
&lt;br /&gt;
The official PHP SlackBuild includes a configure flag for mcrypt, so there is no need to edit the SlackBuild.  You may want to specify a BUILD variable on the command line, so the package does not appear to be official (it is ''not'' official):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;# BUILD=3_&amp;lt;your initials&amp;gt; sudo ./php.SlackBuild&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Upgrade PHP ===&lt;br /&gt;
Install the new package with upgradepkg.  Keep in mind that you will need to repeat this process whenever there is a security alert for php.  In that case, download the new source, update the VERSION variable, recompile and upgrade.  For this reason, I've kept ~/SlackBuilds/n the way it is with alpine and php subdirectories.&lt;br /&gt;
&lt;br /&gt;
== Configure PHP ==&lt;br /&gt;
&lt;br /&gt;
Configuring PHP to use mcrypt is easy: add the line&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;extension=mcrypt.so&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to /etc/httpd/php.ini and then restart apache.  Now when you log in to PhpMyAdmin, you should no longer see the warning about mcrypt.&lt;/div&gt;</summary>
		<author><name>Trashbird1240</name></author>
	</entry>
	<entry>
		<id>https://www.slackwiki.com/index.php?title=User:Trashbird1240&amp;diff=210</id>
		<title>User:Trashbird1240</title>
		<link rel="alternate" type="text/html" href="https://www.slackwiki.com/index.php?title=User:Trashbird1240&amp;diff=210"/>
		<updated>2009-06-08T13:37:15Z</updated>

		<summary type="html">&lt;p&gt;Trashbird1240: user page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hello Fellow Slackers,&lt;br /&gt;
&lt;br /&gt;
I am a biology Ph.D. student at the University of North Carolina at Chapel Hill.  Being a Unix-nut, Slackware was the logical choice for me.  See my homepage [http://www.unc.edu/~adamsonj here] .&lt;/div&gt;</summary>
		<author><name>Trashbird1240</name></author>
	</entry>
</feed>