LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-06-2004, 06:41 PM   #1
Hockeyfan
Member
 
Registered: May 2004
Distribution: SuSe 10.0
Posts: 154

Rep: Reputation: 30
PHP Question


I am trying to install PHP 5 on my fedora core 1 box. I have looked through the install file bukt I am not sure which set of instructions to follow. Can someone tell me which set to follow for the install. I believe I have Apache 2.0 webserver on my computer.

I am also upgrading from mysql 3.8 to 4.1 Should I install mysql before php?

thanks

Hockeyfan
 
Old 09-06-2004, 10:43 PM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Yes you should probably install mysql before php.

Run httpd -l to check if you have mod_so.c installed. If it does not show up you will have to recompile apache to either add it, or staticly link in php. I'd suggest adding it and dynamically linking in php.

Run the php configure with at least these options:

Code:
--with-apxs=/usr/local/apache/bin/apxs
--enable-module=so
--with-mysql
--enable-trans-sid
--enable-shared
Build and install php. You find that the php .so file gets copied into the apache libexec directory. You will have to modify the apache conf file to include this object. See the php docs for details.

When you are done. Write the most usefull php program you will ever use to test php:
Code:
<?
phpinfo();
?>
 
Old 09-12-2004, 05:04 PM   #3
Hockeyfan
Member
 
Registered: May 2004
Distribution: SuSe 10.0
Posts: 154

Original Poster
Rep: Reputation: 30
I am about to upgrade my php version from 4.38 to 5.0.1. Before I start the complation I tested the location of apxs I could not find it anywhere on my system or anything named apache. I know that I have a web server running on my system. I believe that it is apache 2.0. Can anyone tell me why I can't find apxs on my system? Is it part of the php install and when I install it it goes into the directory that I specify?

Thanks
 
Old 09-12-2004, 06:10 PM   #4
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
If you have apache2 try locate apxs2


Last edited by Cedrik; 09-12-2004 at 06:16 PM.
 
Old 09-12-2004, 06:37 PM   #5
Hockeyfan
Member
 
Registered: May 2004
Distribution: SuSe 10.0
Posts: 154

Original Poster
Rep: Reputation: 30
Well I just did a locate on apxs2 and I don't have it. I created a php page that outputted all the info. And under apache enviornment the variable SERVER_Software it says Apache/2.0.50 (Fedora) Do I have to install the source code from the apache website?
 
Old 09-13-2004, 06:33 AM   #6
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
try man apxs to be sure before compile apache, if the man page exists, you probably have it installed somewhere.

On my system (slackware) it is :
/usr/sbin/apxs
 
  


Reply



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
PHP Question Hockeyfan Programming 3 08-01-2004 01:10 AM
PHP Question duerra Linux - Newbie 6 01-22-2004 06:37 PM
PHP question guild Programming 2 09-30-2003 09:31 PM
PHP Question. andrewt Programming 3 08-08-2003 10:58 AM
Another PHP question pkoebbe Debian 2 07-14-2003 07:06 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:13 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
Open Source Consulting | Domain Registration