Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old July 16th, 2001, 04:16 AM
emkay emkay is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: Mumbai, India
Posts: 4 emkay User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to emkay
Unhappy Apache-PHP Installation problem

I had successfully installed Apache, PHP and Mysql.
Apache are Mysql are working perfectly fine.
The Root directory of Apache is /home/www. For safety
I have also symbolically linked it under /usr/local.

But even after enabling the AddType line for php4
my php scripts dont execute on the Server. I have
tried enabling the AddModule for php4.so. In such
case on running apachectl configtest I get the
following error
API module structure `php4_module' in file /home/www/libexec/libphp4.so is garbl
ed - perhaps this is not an Apache module DSO?

Could any one guide me reg. what corrective steps to be
taken ?

Reply With Quote
  #2  
Old July 16th, 2001, 10:13 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> For safety I have also symbolically linked it under /usr/local

Mind to clarify this?

>> Could any one guide me reg. what corrective steps to be taken ?

Yes but you should first tell us how did you install Apache + PHP (what configure options).

Reply With Quote
  #3  
Old July 16th, 2001, 11:56 PM
emkay emkay is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: Mumbai, India
Posts: 4 emkay User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to emkay
Unhappy Further details..

The downloads for apache and php were downloaded
under an area /home/pccs and unzipped/untarred.
The installation material was therefore copied under
/home/pccs/apache_1.3.12 and
/home/pccs/php-4.0.2.

The the installation was carried out using the procedure
mentioned under INSTALLATION file of php. The code used
is as follows :
gunzip -c apache_1.3.x.tar.gz | tar xf -
$ cd apache_1.3.x
$ ./configure
$ cd ..

$ gunzip -c php-4.0.x.tar.gz | tar xf -
$ cd php-4.0.x
$ ./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars
$ make
$ make install

$ cd ../apache_1.3.x
$ ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a
(The above line is correct! Yes, we know libphp4.a does not exist at this
stage. It isn't supposed to. It will be created.)
$ make
(you should now have an httpd binary which you can copy to your Apache bin dir)
$ cd ../php-4.0.x
$ cp php.ini-dist /usr/local/lib/php.ini
Edit your httpd.conf or srm.conf file and add:
AddType application/x-httpd-php .php

( NOTE : All operations were performed as root )


I had also tried static installation. I am not very clear
reg. which to use for my system by the way..

Reply With Quote
  #4  
Old July 17th, 2001, 05:49 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
From your previous post:

>> php4_module' in file /home/www/libexec/libphp4.so is garbl

But you had $ ./configure --prefix=/www which the --prefix don't match.

>> $ cp php.ini-dist /usr/local/lib/php.ini

From the configure script of php source:

ac_help="$ac_help
--with-config-file-path=PATH
Sets the path in which to look for php.ini,
defaults to PREFIX/lib"

But your PREFIX was /www, so php.ini should be located in /www/lib/php.ini, UNLESS you have specified --with-config-file-path but you haven't.

>> $ ./configure --with-mysql

--with-mysql alone without specifying the path would fail to add mysql support 99.9999% of the time because your mysql more than likely was installed to a non-standard location.

Anyhow, I suggest you to follow the DSO method and redo everything again.

Reply With Quote
  #5  
Old July 18th, 2001, 03:25 AM
niyogi niyogi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Austin,TX
Posts: 62 niyogi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 58 m 55 sec
Reputation Power: 0
check out my guide to setting up apache on linux (unfortunately with interbase for you)... this system is pretty much foolproof. Post if you have any problems.

-S

Reply With Quote
  #6  
Old July 18th, 2001, 03:55 AM
emkay emkay is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: Mumbai, India
Posts: 4 emkay User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to emkay
Thanks Niyogi for the reply..
Where is your guide located ?????

bsd4...
I had removed previous installatiosn and again tried
the Aapache..PHP4 installation ( DSO ).
Still the apachectl configtest gives the error
for the php4.so file ( garbled file..).

I am now thinking of downloading latest php source version
and trying again..

Reply With Quote
  #7  
Old July 18th, 2001, 04:07 AM
niyogi niyogi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Austin,TX
Posts: 62 niyogi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 58 m 55 sec
Reputation Power: 0
bajaar.com

-S

Reply With Quote
  #8  
Old July 18th, 2001, 04:14 AM
emkay emkay is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: Mumbai, India
Posts: 4 emkay User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to emkay
Is your server up ???
I am getting connection failure to it ..both on name
and IP addr.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Apache-PHP Installation problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway