Click to See Complete Forum and Search --> : AHHHH MySQL Where are my Header files?
DJKAOS
11-23-2001, 09:19 PM
I'm going crazy I have been trying to install this stuff for 3 days.
First I installed MySQL rpm (a few weeks ago.) and it works fine, I have some databases and everything is cool.
Now i'm trying to install PHP and apache
I had all sorts of problems but my lates problem is this, when configuring PHP it can't find the MySQL header files...and I cant find them either where the heck are they? all the tutorials say they are in /usr/local/mysql but not mine...
I installed mysql from an RPM does that matter? Linux Mandrake 8.1
./configure --with-apache=../apache_1.3.22 --with-mysql=/??????/ --enable-track-vars
I need this stuff working soon I have a final project to do for school
Why are you using the --with-mysql configure option on php? You don't need to tell php where mysql is, acually , you might not want to compile php with BUILT IN mysql support *this doesn't mean php can't use mysql*
If you've already gotten mysql running with an rpm or not, then try this.
Download Apache from
http://www.apache.org/dist/httpd/
extract it
tar -zxvf apache_1.3.22.tar.gz
then go to that directory, and then
>
cd ../apache_1.3.22
./configure \
--prefix=/usr/local/apache --enable-module=most --enable-shared=max
then make it
make
then,
make install
download php at http://www.php.net
extract it then,
./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--with-config-file-path=/usr/local/apache/conf \
--enable-versioning \
--with-mysql \
--enable-ftp \
--enable-bcmath \
--disable-debug \
--enable-memory-limit=yes \
--enable-track-vars
make
make install
then, you've gotta edit your http.conf file. Let me know if it has gotten this far, and if you aren't sure how to edit your httpd.conf file.
[ 25 November 2001: Message edited by: SKoL ]
DJKAOS
11-25-2001, 10:28 PM
I got it all working.
Now I just need to figure out how I can make a user account or something so I dont have to be logged on as ROOT everytime I want to make web pages and put them on my server.
as it is now I have to be logged on as root in order to do anything with the files in
/usr/local/apache/htdocs/
cool man, did my example help?
Ok , do this :
groupadd httpusr
useradd -g httpusr httpusr
This creates the group httpusr, and then puts a user "httpusr" in the httpusr group.
Next, make sure you supply a password for the user
passwd httpusr
then, as root (still)
chown -R httpusr /www/directory
then, after you do this though you have to edit the httpd.conf and change the user that apache runs as to httpusr and the group to httpusr.
then, log in as httpusr to mess with the files.
joelmon
11-28-2001, 06:54 PM
Hey, this might help me too
How can one tell IF apache is installed? The raq 3 pdf documentation I had said it does but I can't find it on the server
and how would I know which 'make' would work
to install an apache? I might just upgrade make via rpm, but now knowing where apache is took priority. How would I know if I need to install it for php?
thanks
If you want to see if apache is installed via RPM, do
rpm -q apache
if it doesn't list anything, then try a
find / -name "apache" -print 2> /dev/null
joelmon
11-30-2001, 09:17 AM
Thanks, guys. I found confirmation later in the day yesterday of the version, the pdf docs were right, it's 1.3.6
I just wish MY raq 3 had php in it ahead of time. Bleh
But I'll get it up now that you guys and others I've talked to (You guys on other posts) are confident rpmfinder.net is reliable and the rpm's are stable
Thanks for your time