<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>SlackWiki - User contributions [en]</title>
		<link>https://www.slackwiki.com/Special:Contributions/Trashbird1240</link>
		<description>User contributions</description>
		<language>en</language>
		<generator>MediaWiki 1.40.0</generator>
		<lastBuildDate>Sat, 02 May 2026 08:19:10 GMT</lastBuildDate>
		<item>
			<title>Recompile php with mcrypt</title>
			<link>https://www.slackwiki.com/index.php?title=Recompile_php_with_mcrypt&amp;diff=254</link>
			<guid isPermaLink="false">https://www.slackwiki.com/index.php?title=Recompile_php_with_mcrypt&amp;diff=254</guid>
			<description>&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;</description>
			<pubDate>Mon, 05 Oct 2009 16:55:09 GMT</pubDate>
			<dc:creator>Trashbird1240</dc:creator>
			<comments>https://www.slackwiki.com/Talk:Recompile_php_with_mcrypt</comments>
		</item>
		<item>
			<title>User:Trashbird1240</title>
			<link>https://www.slackwiki.com/index.php?title=User:Trashbird1240&amp;diff=210</link>
			<guid isPermaLink="false">https://www.slackwiki.com/index.php?title=User:Trashbird1240&amp;diff=210</guid>
			<description>&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;</description>
			<pubDate>Mon, 08 Jun 2009 13:37:15 GMT</pubDate>
			<dc:creator>Trashbird1240</dc:creator>
			<comments>https://www.slackwiki.com/User_talk:Trashbird1240</comments>
		</item>
</channel></rss>