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 02-05-2006, 04:54 PM   #1
airswit
Member
 
Registered: Dec 2005
Distribution: Fedora 4
Posts: 89

Rep: Reputation: 15
re-configuring PHP


hi, i am relatively new to unix and all that, and i was wondering if you could help me in re-configuring my php install. I guess when it installed, it did not come with GD support (--without-gd), and i would like to be able to create images. Can anybody walk me through the re-build of php. i don't even know where the install directory is, so im not sure where to run ./configure. also, is there any easy way of just updating that 1 directive and keeping all the rest the same, or do i have to rebuild the whole thing. if so, where can i get a list of all the modules/options that were compiled last time? can i just copy/paste from phpinfo()?
 
Old 02-05-2006, 05:43 PM   #2
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
Use the phpinfo as your starting point, however because it was built on a different machine some of the configurations will need to be altered for your machine.

The best thing it do download the latest sources.

Once thing to be aware of is that since I guess you are using apache you will need to know where the apxs or apxs2 (for apache2) script it (that's the one that helps to link php with apache.)

Spend a little time on the php site they have a lot of installation answers there.

If all else fails... we're here to help

graeme.
 
Old 02-05-2006, 05:58 PM   #3
airswit
Member
 
Registered: Dec 2005
Distribution: Fedora 4
Posts: 89

Original Poster
Rep: Reputation: 15
well, i think that it was compiled on my machine (not sure) when i installed fedora. I'm not sure i really want to upgrade my PHP, since mysql support was dropped, last i heard.
basically, i think i can recompile it if i can figure out where to run the ./configure command. i have been poking around the php.net documentation, but it doesn't say anywhere that i have found yet where it installs, or where to install it
 
Old 02-05-2006, 07:02 PM   #4
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
When you do an install it just places the binaries on you machine, it doesn't actually compile them. So the machine that was used to compile PHP may very well have had the dependent libaries in different locations. Really there is no need since they are creating teh install, but in reality they almost always have some differences.
 
Old 02-05-2006, 07:05 PM   #5
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
Quote:
Originally Posted by airswit
...but it doesn't say anywhere that i have found yet where it installs, or where to install it
try Installations on Unix Systems

The path to get there: documentation ... view online (in my case English) ... and this brings up the table of contents, select your OS (Unix) and then select the web server.

graeme.
 
Old 02-05-2006, 07:28 PM   #6
airswit
Member
 
Registered: Dec 2005
Distribution: Fedora 4
Posts: 89

Original Poster
Rep: Reputation: 15
well, i installed it by entering: yum install php-gd, and i think it is working correctly now!
 
  


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
configuring php in Slackware 10.1 ankscorek Linux - Software 7 08-15-2005 08:16 PM
Configuring PHP linux_pioneer Linux - Software 3 01-21-2005 10:19 AM
configuring php fayax1 Linux - General 4 11-02-2004 02:03 PM
configuring php haobaba1 Linux - Networking 1 07-28-2003 02:43 AM
re-configuring PHP linoob Linux - General 1 07-02-2003 10:39 PM

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

All times are GMT -5. The time now is 05:03 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