Difference between revisions of "InstallingAboutUsOnLinux/InstallPhp"

m (Installing FreeType: Corrected Path)
 

(9 intermediate revisions by 3 users not shown)



Line 1: Line 1:
 +
Back to [[InstallingAboutUsOnLinux]]
 
==Installing FreeType==
 
==Installing FreeType==
 
<pre>
 
<pre>
curl -O http://download.savannah.gnu.org/releases/freetype/freetype-2.1.10.pre-20050511.tar.bz2
+
cd /www/source/
 +
wget http://download.savannah.gnu.org/releases/freetype/freetype-2.1.10.pre-20050511.tar.bz2
 
tar jxvf freetype-2.1.10.pre-20050511.tar.bz2
 
tar jxvf freetype-2.1.10.pre-20050511.tar.bz2
 
cd freetype-2.1.10.pre-20050511
 
cd freetype-2.1.10.pre-20050511
Line 12: Line 14:
 
<pre>
 
<pre>
 
cd /www/source
 
cd /www/source
curl -O http://us.php.net/distributions/php-5.2.5.tar.bz2
+
wget http://us.php.net/distributions/php-5.2.5.tar.bz2
 
tar jxvf php-5.2.5.tar.bz2
 
tar jxvf php-5.2.5.tar.bz2
 
cd php-5.2.5/
 
cd php-5.2.5/
Line 20: Line 22:
 
   --with-config-file-path=/www/lib \
 
   --with-config-file-path=/www/lib \
 
   --with-zlib \
 
   --with-zlib \
   --enable-soap \
+
   --enable-soap \
 
   --with-gmp  \
 
   --with-gmp  \
 
   --enable-bcmath \
 
   --enable-bcmath \
   --with-gd \
+
   --with-gd \
 
   --with-png-dir=/www \
 
   --with-png-dir=/www \
 
   --with-zlib-dir=/www \
 
   --with-zlib-dir=/www \
   --with-freetype-dir=/www
+
   --with-freetype-dir=/www \
 +
  --with-jpeg-dir=/www/lib
 
make
 
make
 
make install
 
make install
  
 
echo "AddType application/x-httpd-php .php" >>/www/conf/apache2.conf
 
echo "AddType application/x-httpd-php .php" >>/www/conf/apache2.conf
 +
echo 'include_path = ".:/php/includes:/www/lib/php:/www/lib/php/includes
 +
session.save_path = "0;0777;/www/tmp/sessions' >>/www/lib/php.ini
 
</pre>
 
</pre>
  
Line 36: Line 41:
 
<pre>
 
<pre>
 
cd /www/source
 
cd /www/source
curl -O http://openidenabled.com/files/php-openid/packages/php-openid-2.0.0.tar.bz2
+
wget http://openidenabled.com/files/php-openid/packages/php-openid-2.0.0.tar.bz2
tar jzvf php-openid-2.0.0.tar.bz2
+
tar jxvf php-openid-2.0.0.tar.bz2
 
cd php-openid-2.0.0
 
cd php-openid-2.0.0
 
cp -r Auth /www/lib/php/
 
cp -r Auth /www/lib/php/
 
</pre>
 
</pre>

Latest revision as of 07:03, 25 January 2008

Back to InstallingAboutUsOnLinux

Installing FreeType

cd /www/source/
wget http://download.savannah.gnu.org/releases/freetype/freetype-2.1.10.pre-20050511.tar.bz2
tar jxvf freetype-2.1.10.pre-20050511.tar.bz2
cd freetype-2.1.10.pre-20050511
./configure --prefix=/www
make
make install

Installing PHP

cd /www/source
wget http://us.php.net/distributions/php-5.2.5.tar.bz2
tar jxvf php-5.2.5.tar.bz2
cd php-5.2.5/
./configure --with-apxs2=/www/bin/apxs \
  --with-mysql \
  --prefix=/www \
  --with-config-file-path=/www/lib \
  --with-zlib \
  --enable-soap \
  --with-gmp  \
  --enable-bcmath \
  --with-gd \
  --with-png-dir=/www \
  --with-zlib-dir=/www \
  --with-freetype-dir=/www \
  --with-jpeg-dir=/www/lib
make
make install

echo "AddType application/x-httpd-php .php" >>/www/conf/apache2.conf
echo 'include_path = ".:/php/includes:/www/lib/php:/www/lib/php/includes
session.save_path = "0;0777;/www/tmp/sessions' >>/www/lib/php.ini

Install OpenId

cd /www/source
wget http://openidenabled.com/files/php-openid/packages/php-openid-2.0.0.tar.bz2
tar jxvf php-openid-2.0.0.tar.bz2
cd php-openid-2.0.0
cp -r Auth /www/lib/php/


Retrieved from "http://aboutus.com/index.php?title=InstallingAboutUsOnLinux/InstallPhp&oldid=14603368"