How to installed PHP CLI and GD Extension in Centos ?

kalista

New member
Joined
Dec 7, 2012
Messages
1
Hi,
Im using Centos 5 and directadmin.

In my script they are request.
Problem.jpg


How i can fix the red line?

"JPG support is not installed; will not be able to read/write JPEG images"

and

"The PHP CLI version could not be found. This will prevent you from using the link scanner function, cron, and may limit some of the other software functions
"


and here is php -v

"[root@root ~]# php -v
PHP 5.3.19 (cli) (built: Dec 6 2012 21:17:22)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
"

Thank you very much.
 
You probably need to recompile php with jpg support. The cli issue is nothing more than a path issue. php cli is installed at /usr/local/bin/php you will have to find a way to set that so your script knows the path to the file.

I am not sure why you dont have jpg support though because it should be default.

Try:

Code:
cd /usr/local/directadmin/custombuild
./build update
./build clean
./build php y

You might want to look at a phpinfo page too and see if you have jpg support enabled.

Just create a php page with the following code in it then surf to the url to look at the GD section to see if jpeg is enabled.

Code:
<?php phpinfo(); ?>
 
Back
Top