Dynadot — .com Transfer

Php and apache installation problems

NamecheapNamecheap
Watch

abhishek

New Member
Impact
0
:wave: Friends Help out
I have fedora core 1
I have httpd-2.0.51(apache)
and Php-4.3.8 and php-5.0.1
I want to make php ant version work with Apache
I had done following things to install them
tar -zxf httpd-2.0.51
tar -zxf mysql-4.0.16.tar.gz
tar -zxf Php-4.3.8 or php-5.0.1 (i had done same for both)

Compiling apache
cd httpd-2.0.51
#./configure –prefix=/usr/local/apache2 –enable-
mods-shared=most (enter)
#make
#make install
#vi /usr/local/apache2/conf/httpd.conf

then i put the following lines in httpd.conf

LoadModule php4_module modules/libphp4.so (for php-4.3.8)
DirectoryIndex index.html index.html.var index.php
AddType application/x-httpd-php .php

compiling mysql
#./configure –prefix=/usr/local/mysql –
localstatedir=/usr/local/mysql/data –
disable-maintainer-mode –with-mysqld-user=mysql –enable-large-files-without-debug

make
make install

#/usr/sbin/groupadd mysql

#/usr/sbin/useradd -g mysql mysql

#./scripts/mysql_install_db


# chown -R root:mysql /usr/local/mysql
# chown -R mysql:mysql /usr/local/mysql/data
#vi /etc/ld.so.conf

then put following line in ld.so.conf
/usr/local/mysql/lib/mysql

then
#/usr/local/mysql/bin/mysqld_safe –user=mysql &

#/usr/local/mysql/bin/mysqladmin -u root password new_password

compiling Php-4.3.8 or php-5.0.1
for this time i takeing php-4.3.8

#./configure –prefix=/usr/local/php –with-apxs2=/usr/local/apache2/bin/apxs –with
-mysql=/usr/local/mysql

make
make install
#cp php.ini-recommended /usr/local/php/lib/php.ini

#vi /usr/local/php/lib/php.ini
then i editted the following line
doc_root= “/usr/local/apache2/htdocs/”
file_uploads=Off


After that all installation
I wrote a test.php file
<?php phpinfo(); ?>
save it in in htdocs of apaches

But when i try to load test.php i got error "requested url not found in this server"
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
0
•••
Sounds to me like a paths wrong somewhere. Where exactly did you put the "test.php" file? Not having the PHP module loaded shouldn't present this problem since it would parse it as plain text. Maybe all it needs is a restart.
 
0
•••
hey adams_uk

iam going back to apache 1.3 let see wther it works with php5

Thanks any way
 
0
•••
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy — Zero Commission
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back