LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-07-2001, 02:27 PM   #1
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Rep: Reputation: 30
RH/Apache/MySQL/PHP


I am trying for a while now to install two application on my web server without any success:PHP_Nuke web portal and Ganesha e-learning platform.
They both have one thing in common, they requires a web server with mysql service and php support.
I have very, very limited knowledge in linux and this is what i have done so far.
I installed a custom server RH7,1
I desable progressql with setup/system services/checkoff progressql/ quit
I download Mysql 3.23.46 as a rpm,
i install in gui: right click on file/select install /done
I download PHP 4.0.6 tar.gz file,
i install in term mode doing:
tar -xzvf filename
./configure
make
I download the software package, unpack in www/html directories e-learn and web-portal
Go the a workstation and address the directories with my browser index.php and i have errors with the sql.
-unknown sql-server name in one case
and again a sql problem line something in the second...
I have no idea how to configure mysql!
How can i diagnose this problem, where should i start??? where to get more info?, the verbose kindof info...
Please help.
thx
--------------------

Learn till you die, otherwise your dead.
My z is for zero I.Q.
 
Old 12-09-2001, 04:22 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
search for it on google
 
Old 12-09-2001, 05:09 PM   #3
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Original Poster
Rep: Reputation: 30
Search what???
 
Old 12-09-2001, 07:17 PM   #4
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 58
Quote:
I download PHP 4.0.6 tar.gz file,
i install in term mode doing:
tar -xzvf filename
./configure
make
Er, you did run make install too right?

I don't know dink about mysql, but as far as getting the php mod to work correctly, have you checked through your httpd.conf file to see that the mods are enabled?

I know you have to enable the one for php, but I'm not sure there's anything special for mysql.

Sorry if I'm barking up the wrong tree mate.

-Cheers,

Finegan
 
Old 12-10-2001, 05:47 AM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
if you did not get it yet,

when I said search on google I meant to put the error your getting in the search and it will probably turn up something
 
Old 12-22-2001, 10:19 AM   #6
te_conway
Member
 
Registered: Apr 2001
Location: MA
Distribution: redhat 7.2
Posts: 182

Rep: Reputation: 30
I struggled getting PHP to work after the default was installed by redhat 7.1, it's finally working correctly. If your still looking for a solution.

I had a couple of conflicts from multiple failed attempts so I uninstalled the redhat php rpm's

rpm -e php-4.0.4pl1-9, this had 2 dependencies that had to be removed first.

instructions are basically per this link http://www.mysql.com/articles/ddws/6.html

get the latest apache DEVEL source

ftp://updates.redhat.com/7.1/en/os/S...-1.7.1.src.rpm

Install the apache rpm

rpm -i apache-1.3.22-1.7.1.src.rpm

this will not have any effect on your current apache config but will install /usr/sbin/apxs

Download php from php.net (not redhat) into /tmp, I downloaded the latest 4.1.0

tar xfz php-4.1.0.tar.gz
cd php-4.1.0

% ./configure \
--prefix=/usr/local/php \
--with-config-file-path=/usr/local/php \
--with-apxs=/usr/sbin/apxs \
--enable-track-vars \
--enable-magic-quotes \
--enable-debugger

make
make install
I got an error on the install "/usr/lib/php4/build not a directory", it must be an install script error, so I created it, then reran the make intall and it works great!

The problem with the redhat rpms is they tailored for redhat. The apache rpm doesn't have the apxs and the php rpm just doesn't work following the above example.

good luck
 
Old 12-22-2001, 12:43 PM   #7
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Original Poster
Rep: Reputation: 30
Well, this a chrismas gift for me!
I will get on that as soon as the holiday is over.
Many thanks,
Dan
 
Old 12-24-2001, 04:51 PM   #8
[BHBS]=TK
Member
 
Registered: Aug 2001
Location: Salt Lake City, UT
Distribution: REDHAT 7.1
Posts: 32

Rep: Reputation: 15
----------------------------------------------
Installing Apache + PHP
----------------------------------------------
Don't use an RPM for apache install

Download latest version from http://httpd.apache.org/dist/httpd/

1. gunzip apache_1.3.x.tar.gz
2. tar xvf apache_1.3.x.tar
3. gunzip php-x.x.x.tar.gz
4. tar xvf php-x.x.x.tar
5. cd apache_1.3.x
6. ./configure --prefix=/www
7. cd ../php-x.x.x
8. ./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars
9. make
10. make install
10a)* you may need to copy /usr/local/php*/libphp4.a
/usr/local/apache/src/modules/php/
11. cd ../apache_1.3.x
12. ./configure --activate-module=src/modules/php4/libphp4.a
13. make
14. make install
15. cd ../php-x.x.x
16. cp php.ini-dist /usr/local/lib/php.ini
17. Edit /usr/local/apache/conf/httpd.conf and uncomment line (look for php):
AddType application/x-httpd-php .php

18. /usr/local/apache/bin/apachectl restart

* I had lots of problems installing apache with php. The php install copied and
modified the libphp4.a into apache. It renamed this file to libmodphp4.a and
changed the header includes for the gcc compile statements. This made apache
error when you make(d) it, it reported that it can't find certain header files
(zend.h, php.h etc). Anyway I copied the original file libphp.a into apache
confgirued and make(d) with that, it worked. I reported this bug and it may be
fixed for future installs.
 
Old 12-24-2001, 08:05 PM   #9
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Original Poster
Rep: Reputation: 30
many thxs
Dan
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache _ php +mysql rmocius@auste.e Slackware 0 03-02-2004 10:49 AM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 09:59 PM
Apache+Mysql+php c0c0deuz Linux - Software 0 08-14-2003 03:14 PM
php-nuke with apache php mysql c0c0deuz Linux - Software 0 03-30-2003 07:23 AM
PHP, MySQL and Apache miker Linux - Newbie 1 03-27-2002 02:29 PM


All times are GMT -5. The time now is 02:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration