Link to home
Start Free TrialLog in
Avatar of rawandnet
rawandnet

asked on

php without-mysql or gd

Hi

my phpinfo() shows that the following files are not available on my redhat server.
'--without-mysql' '--without-gd'

how can i install those?
ASKER CERTIFIED SOLUTION
Avatar of gplana
gplana
Flag of Spain image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rawandnet
rawandnet

ASKER

I used yum to install php, and if i use yum to reinstall apache what option do i need to add to enable with-mysql and with-gd?
no, this isif you recompile it.
You can see the php installation and configuration documentation at http://www.php.net/manual/en/install.php
Hope it helps.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hmm... submitted that last post before finishing...

If the above does not work (due to the --without-mysql' '--without-gd being flagged up) then either compile it as suggested above of remove it and do a complete installation with YUM. With repository managers there is really no reason to compile anything. On Debian I find the quickest way to install MySQL, Apache and PHP5 is to type

apt-get install phpmyadmin

and the dependency manager installs everything else so that phpmyadmin can run.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
To revise you guys, I have already installed Apache php and MySQL using Yum command, I don't want to recompile Apache using source code because is too complicated for me to connect Apache and php and MySQL.  I installed php-gd using YUM command, but still shows '--without-gd' on my phpinfo() page.  Is there any way to enable gd without recompiling Apache or php? if not, is there a command can be used with YUM to enable gd on php.
I think the easier way should be to install xampp (http://www.apachefriends.org).
Is this a production server or a testing/development server ?
@rawandnet: Did you restart everything?  If you did that and still found no GD, the install did not work, but if you have not restarted yet it is worth trying.