<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://studioware.com/wikislax/index.php?action=history&amp;feed=atom&amp;title=PHP</id>
		<title>PHP - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://studioware.com/wikislax/index.php?action=history&amp;feed=atom&amp;title=PHP"/>
		<link rel="alternate" type="text/html" href="http://studioware.com/wikislax/index.php?title=PHP&amp;action=history"/>
		<updated>2026-05-07T15:11:00Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.2</generator>

	<entry>
		<id>http://studioware.com/wikislax/index.php?title=PHP&amp;diff=34&amp;oldid=prev</id>
		<title>Wikislax: Created page with &quot;{{RightTOC}}  == What is PHP ? ==  [http://www.php.net PHP] is a widely-used general-purpose scripting language that is specially suited for Web development and can be embedde...&quot;</title>
		<link rel="alternate" type="text/html" href="http://studioware.com/wikislax/index.php?title=PHP&amp;diff=34&amp;oldid=prev"/>
				<updated>2017-12-06T21:33:55Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{RightTOC}}  == What is PHP ? ==  [http://www.php.net PHP] is a widely-used general-purpose scripting language that is specially suited for Web development and can be embedde...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{RightTOC}}&lt;br /&gt;
&lt;br /&gt;
== What is PHP ? ==&lt;br /&gt;
&lt;br /&gt;
[http://www.php.net PHP] is a widely-used general-purpose scripting language that is specially suited for Web development and can be embedded into HTML.&lt;br /&gt;
&lt;br /&gt;
== Compiling c-client ==&lt;br /&gt;
&lt;br /&gt;
The php imap option requires presence of library c-lient, which is part of Imap-uw, by the University of Washington. [ftp://ftp.cac.washington.edu/imap/c-client.tar.Z Download] the software, untar and install : &lt;br /&gt;
&lt;br /&gt;
 # gunzip c-client.tar.Z&lt;br /&gt;
 # tar -C /usr/local -xvf c-client.tar&lt;br /&gt;
 # cd /usr/local&lt;br /&gt;
 # chown -R root:root imap-2007f&lt;br /&gt;
 # chmod -R o-w imap-2007f&lt;br /&gt;
 # cd imap2007f&lt;br /&gt;
 # make slx EXTRACFLAGS=&amp;quot;-I/usr/include/openssl -g -O2 -fPIC&amp;quot; SSLCERTS=/etc/ssl/certs SSLKEYS=/etc/ssl/private&lt;br /&gt;
&lt;br /&gt;
== Compiling PHP ==&lt;br /&gt;
&lt;br /&gt;
As PHP is part of the Slackware distribution, it's possible to skip the compilation step. If this is your choice, please note that '''/etc''' will be used for configuration files '''/usr/local/etc''', and proceed to [[PHP#Configuring PHP|Configuring PHP]].&lt;br /&gt;
&lt;br /&gt;
Use '''./configure --help | less''' to review the configuration options. '''--with-apxs2''' is to work with apache 2. '''--with-mysql=/usr/local/mysql --with-mysql-sock=/var/run/mysql/mysql.sock''' specify mysql use. '''--enable-mbstring''' and '''--with-mcrypt''' are recommended by phpMyAdmin. Some other options are required by Horde : '''--with-gettext''' to provide local translations of text, '''--with-iconv --enable-mbstring --enable-mbregex''' to handle multibyte character sets, '''--with-gd''' to perform image manipulations. '''--with-zlib''' is for page compression and handling of zip and gz data. Other options reflect the network configuration and solftware installed earlier on this site.&lt;br /&gt;
&lt;br /&gt;
We also create a few hard links as by default php searches for libraries in lib and cannot find the libraries in lib64.&lt;br /&gt;
&lt;br /&gt;
 # tar -C /usr/local -xvf php-x.y.z.tar.gz&lt;br /&gt;
 # cd /usr/local/php-x.y.z&lt;br /&gt;
 # ln -s /usr/lib64/libjpeg.so /usr/lib&lt;br /&gt;
 # ln -s /usr/lib64/libpng.so /usr/lib&lt;br /&gt;
 # ln -s /usr/local/lib64/libldap.so /usr/local/lib&lt;br /&gt;
 # ln -s /usr/local/lib64/libldap_r.so /usr/local/lib&lt;br /&gt;
 # ln -s /usr/local/lib64/liblber.so /usr/local/lib&lt;br /&gt;
 # mkdir /usr/local/mysql/lib&lt;br /&gt;
 # ln -s /usr/local/mysql/lib64/libmysqlclient.so /usr/local/mysql/lib&lt;br /&gt;
 # ln -s /usr/local/mysql/lib64/libmysqlclient.so.18 /usr/local/mysql/lib&lt;br /&gt;
 # ln -s /usr/local/mysql/lib64/libmysqlclient_r.so /usr/local/mysql/lib&lt;br /&gt;
 # less INSTALL&lt;br /&gt;
 # ./configure --help | less&lt;br /&gt;
 # CFLAGS=&amp;quot;-g -O2 -fPIC&amp;quot; ./configure --libdir=/usr/local/lib64 --sysconfdir=/etc \&lt;br /&gt;
 --with-apxs2=/usr/local/bin/apxs --with-mysql=/usr/local/mysql --with-pdo-mysql \&lt;br /&gt;
 --with-mysql-sock=/var/run/mysql/mysql.sock --enable-mbstring --with-mcrypt \&lt;br /&gt;
 --with-gettext --with-iconv --enable-mbregex --with-gd --with-zlib --disable-ipv6 \&lt;br /&gt;
 --enable-ftp --with-openssl --with-ldap=/usr/local --with-ldap-sasl \&lt;br /&gt;
 --with-imap=/usr/local/imap-2007f --with-imap-ssl --enable-opcache=no&lt;br /&gt;
 # make&lt;br /&gt;
 # make test&lt;br /&gt;
 # removepkg /var/log/packages/php-x.y.z&lt;br /&gt;
 # /etc/rc.d/rc.httpd stop&lt;br /&gt;
 # make install&lt;br /&gt;
 # make clean&lt;br /&gt;
 # cp php.ini-production /etc/httpd/php.ini&lt;br /&gt;
&lt;br /&gt;
== Configuring PHP ==&lt;br /&gt;
&lt;br /&gt;
The PHP configuration is defined in file '''php.ini''' and seems to be possibly installed in various locations, for example '''/etc/httpd''' or '''/usr/local/lib64/php.ini'''. Edit '''/etc/httpd/httpd.conf''' and add line '''LoadModule php5_module modules/libphp5.so''' to load the php module. The '''make install''' might have added this for you but be sure to check. Also tell apache to parse certain extensions as PHP adding line '''AddType application/x-httpd-php .php''', and to show highlighted PHP source adding line '''AddType application/x-httpd-php-source .phps'''. Last restart apache using '''/etc/rc.d/rc.httpd start'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Note&amp;lt;/u&amp;gt; : when requiring to recompile or play around with configuration options, be sure to clear your browser's cache between trials.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{pFoot|[[Apache]]|[[Main Page]]|[[PhpMyAdmin]]}}&lt;/div&gt;</summary>
		<author><name>Wikislax</name></author>	</entry>

	</feed>