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:
  #1  
Old February 15th, 2002, 10:41 PM
gitane gitane is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Location: Ontario
Posts: 3 gitane User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
apache/php4 installtion problems

Hi,

I am one of those people who learned linux with Corel linux (Debian) and still using it
I installed Mysql successfully but when I tried to install PHP4 I ran into some problems!

I went to e-gineer.com and follow their instructions. I ran into a problem when I execute the following command:

./configure --with-mysql=/usr/local/mysql --with-config-file-path=/www/conf --with-apache=../httpd --enable-track-vars

"configure:error.... unable to find httpd.h....."

I also went to webmonkey.com and read Julie Meloni's instructions which is a bit differ from e-gineer.com's:

./configure --with-mysql=/[path to mysql] --with-apxs=/[path to apxs]


My questions:
1) error message says "error.... unable to find httpd.h" where is this file and where it locates?? I tried looking in /etc/apache/conf and using whereis command but still can't find httpd.h

2) with e-gineer.com's instruction ....--with-config-file-path=/www/conf ..... what kind of config is this??? Apache's?? or PHP's?

3)with Julie Meloni's instruction ....--with-apxs=/[path to apxs].... what is apxs??

I am installing PHP and MYSQL as root and Aapache is preinstalled. http.conf is located at /ect/apache/conf but log files are in /var/log/apache

Sorry for the long message and I hope I didn't post in the wrong place!

Reply With Quote
  #2  
Old February 15th, 2002, 11:20 PM
Bob Loblaw Bob Loblaw is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 174 Bob Loblaw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
'./configure' '--with-apxs=/usr/local/sbin/apxs' '--with-config-file-path=/usr/local/etc' '--enable-versioning' '--with-system-regex' '--disable-debug' '--enable-track-vars' '--with-zlib' '--with-mcrypt=/usr/local' '--with-mhash=/usr/local' '--with-mysql=/usr/local' '--with-pgsql=/usr/local' '--with-openssl=/usr' '--with-xml' '--with-expat-dir=/usr/local' '--enable-xslt' '--with-xslt-sablot' '--with-expat-dir=/usr/local' '--with-dom=/usr/local' '--enable-ftp' '--with-curl=/usr/local' '--with-gettext=/usr/local' '--with-iconv=/usr/local' '--with-pspell=/usr/local' '--enable-mbregex' '--enable-mbstring' '--enable-yp' '--enable-bcmath' '--with-hyperwave=yes' '--with-ming=/usr/local' '--with-mcal=/usr/local' '--enable-sockets' '--enable-trans-sid' '--with-iconv=/usr/local' '--prefix=/usr/local'

on my machine /usr/local/include/apache/httpd.h

there is alot of stuff involved with apache do a search for apxs. from the above config take what you want what you need also do yourself a favour install slackware

Reply With Quote
  #3  
Old February 16th, 2002, 06:30 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
Unfortunately, it'd be tough for a Linux newbie to follow the standard (specifying /usr/local as the PREFIX at all time), maybe it's time to ditch Linux and give BSD a try.

1) httpd.h is in the Apache's src. Say you extracted apache_1.3.23.tar.gz to /usr/local/src/ then httpd.h would be at: /usr/local/src/apache_1.3.23/src/include/httpd.h
That said, --with-apache=../httpd is probably incorrect because that should be the path to your Apache src at /usr/local/src/apache_1.3.23

2) That's to tell PHP where to install/locate php.ini. For example, /usr/local/etc.

3) apxs is so-called the DSO method. When adding modules to Apache, you do not have to recompile. Instead, you tell Apache your module will be installed as share module so you can load it dynamically. BTW this is the right approach to build any module these days.
So how to enable apxs?
When Apache is configured with at least one module as shared then mod_so will be automatically enabled.
For example:

./configure --prefix=/usr/local --enable-module=most --enable-shared=max

>> http.conf is located at /ect/apache/conf

You are trying to build Apache manually so that's local stuffs. /etc is for system-wide. You need to install local stuffs to /usr/local. So the appropriate location should be /usr/local/etc/apache/httpd.conf. Currently you are putting files all over the places.

Reply With Quote
  #4  
Old February 16th, 2002, 07:33 PM
gitane gitane is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Location: Ontario
Posts: 3 gitane User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thank you Bob and freebsd for all your helps! Thanks for such of detailed descriptions and explanation! I will give it a tried tonight and soon it will be time for me to learn FreeBSD!

thxs!!

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > apache/php4 installtion problems


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 6 hosted by Hostway
Stay green...Green IT