Hi Sadhiq,

           you have to compile php with apache. first download php, mysql & 
httpd  tar package and compile it.
by this u will compile php+mysql+apache. but before this u have to install 
dependencies. 

dependencies are:-
yum -y install gd-devel.x86_64
yum -y install zlib-devel.x86_64
yum -y install libpng-devel.x86_64
yum -y install ImageMagick.x86_64
yum -y install libungif.x86_64
yum -y install flex.x86_64
yum -y install libxml2-devel.x86_64
yum -y install libjpeg.x86_64
yum -y install libjpeg-devel.x86_64
yum -y install libpng-devel.x86_64
yum -y install ntp.x86_64
yum -y install samba-client.x86_64
yum -y install vsftpd.x86_64
yum -y install curl.x86_64
yum -y install curl-devel.x86_64
yum -y install gcc-c++.x86_64

ln -s /usr/lib64/libpng.so /usr/lib/libpng.so
ln -s /usr/lib64/libpng.a /usr/lib/libpng.a
ln -s /usr/lib64/libjpeg.so /usr/lib/libjpeg.so
ln -s /usr/lib64/libjpeg.a /usr/lib/libjpeg.a
ln -s /usr/lib64/libexpat.so /usr/lib/libexpat.so

cd /tar/httpd-2.2.4
./configure --prefix=/usr/local/apache --enable-so --enable-status 
--disable-userdir --disable-negotiation --disable-autoindex --disable-asis 
--disable-imap --enable-env --enable-actions --enable-rewrite 
--with-mpm=prefork --enable-deflate --with-expat=builtin
make
make install



mkdir /usr/local/mysql
tar -zxvf mysql-5.0.45-linux-x86_64-icc-glibc23.tar.gz
cd mysql-5.0.45-linux-x86_64
mv * /usr/local/mysql/
cd /usr/local/mysql
groupadd mysql
useradd mysql -g mysql
chown -R mysql .
chgrp -R mysql .
yum install compat-libstdc++-33.x86_64   ( library files for mysql )
scripts/mysql_install_db --user=mysql  ---Used for installing Mysql tabel.
chown -R root . 
chown -R mysql data
bin/mysqld_safe --user=mysql &
./bin/mysqladmin -u root password redhat




./configure --prefix=/usr/local/apache/php 
--with-apxs2=/usr/local/apache/bin/apxs 
--with-config-file-path=/usr/local/apache/php --with-zlib 
--with-mysql=/usr/local/mysql --with-mysql-sock=/tmp/mysql.sock 
--enable-sigchild --enable-inline-optimization --disable-debug 
--enable-track-vars --enable-shmop --with-curl --with-imagick --with-jpeg 
--with-gd --with-jpeg-dir --enable-mbstring=all --enable-memory
make
make install




________________________________
From: b.sadhiq <[email protected]>
To: [email protected]
Sent: Friday, 13 March, 2009 7:46:16 PM
Subject: [Linux_Mantra] Re: apache problem plz help


--- In Linux_Mantra@ yahoogroups. com, Mahesh Patil <linuxmahesh@ ...> wrote:
>
> Hi group how to run php, xml file through apache plz help its urgent 
> 
> 
> Thanks group 
> 
> 
> 
> Add more friends to your messenger and enjoy! Go to http://messenger. 
> yahoo.com/ invite/
> 
> [Non-text portions of this message have been removed]
>

Hi Mahesh,

If u have installed php then copy the libphp.so file from installed path (or 
use windows search engine for libphp.so) and copy to your apache home folder 
(C:\Program Files\Apache Software Foundation\ApacheX. X\modules\ )

Open your apacheconf file with notepad ( use notepad++) search for the 
LoadModule line and Append the following

LoadModule php_module modules/libphp. so

AddType Application/ x-httpd-php .php

Now for testing create one index.php file in the document root and insert the 
following

<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php phpinfo(); ?>
</body>
</html>

save & restart Apache

For different steps refer the following
http://www.netbeans .org/kb/docs/ php/configure- php-environment- windows.html

If you want for testing purpose then use XAMPP 
http://www.apachefr iends.org/ en/xampp- windows.html

For xml,
In the context of a web server, there's no such thing as "understanding" an XML 
file. Could you please be a bit more specific about what you're trying to 
achieve

If any querry feel free to call

Regards.
B.Sadhiq





      Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

[Non-text portions of this message have been removed]

Reply via email to