LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   re-configuring PHP (https://www.linuxquestions.org/questions/programming-9/re-configuring-php-411998/)

airswit 02-05-2006 04:54 PM

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()?

graemef 02-05-2006 05:43 PM

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.

airswit 02-05-2006 05:58 PM

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

graemef 02-05-2006 07:02 PM

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.

graemef 02-05-2006 07:05 PM

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.

airswit 02-05-2006 07:28 PM

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


All times are GMT -5. The time now is 12:04 PM.