which php.ini?

Which php.ini would be edited to modify the below?

upload_max_filesize
post_max_size

/etc/php.ini

That’s if you’d like to change it globally (Server wide). You can also change it per account by editing /etc/httpd/conf.d/domainname.com.conf. You’ll see:

php_admin_flag engine On

And after that you can add them as:

php_admin_value upload_max_filesize 16M
php_admin_value post_max_size 8M

or whatever value. Then save and restart apache “service httpd restart”

How would you enable GD Library?

I have a client that is getting a message in joomla saying GD Library not found. Any ideas. I’ve ran yum install php-gd but now don’t know what to do to get GD to show up in our test file info.php page.

Do you have a gd.ini file in /etc/php.d with the following in:

; Enable gd extension module
extension=gd.so

??

Yes, I have this in /etc/php.d/gd.ini

[SIZE=1]; Enable gd extension module
extension=gd.so

How then do I test to see if it’s installed, I don’t know what my client is doing or where he got that message, but am I at a point now where I can ask him to try whatever he was doing again with joomla?
[/SIZE]

Make a php script that runs


<?
phpinfo();
?>

and check the output for GD module support.

http://s4nhost.com/info.php

I just get:

‘–enable-gd-native-ttf’ ‘–without-gdbm’ and --without-gd’

Doesn’t seem like there is any actual indication that GD is installed or enabled.

what happens if you try

yum install php-gd

?

i already did it, but I did it again and got this:

yum install php-gd
Setting up Install Process
Parsing package install arguments
Package php-gd - 5.1.6-20.el5_2.1.i386 is already installed.
Nothing to do

There definitely should be a “gd” section in there. You also have to restart the webserver after installing php-gd, can you double check that?

Paul

Ahh, that did it! I restarted apache and it’s all good now. Thank you so much!!