ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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()?
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.
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.