I have been researching how to increase the maximum file upload size for my site.

I found through phpinfo.php that my php.ini file is supposed to be located here: /usr/local/Zend/etc/php.ini

I just can't seem to find this path through my hosting service's file manager nor through my ftp client.

I guess the file is located outside my site's domain.

(I tried modifying .htaccess, but it didn't work.)

I'd appreciate any advice on how to get to this file.

Hosting service: site5.com

I'm using drupal 5.3

Comments

JohnForsythe’s picture

I'm not sure if you can change your php.ini on site5. Either way, you'd probably need shell access to read that file, it won't show up in FTP or File Manager.

Furthermore, you don't need that file to change settings, you just create your own php.ini in your site's directory (that's if site5 lets you.. I know my host does). Here's an example of what you'd put in it:

post_max_size = 30M
upload_max_filesize = 30M

--
John Forsythe
Need reliable Drupal hosting?

keypetery’s picture

Thanks, John.

By site's directory I guess you mean create a new text file called php.ini in /public_html ?

Anyway, is that the only 3 lines of code I need in the file?

I think I may have tried that already.

Anyway, I need to try at home. I somehow wiped my .htaccess file while trying to solve this and need to rewrite it using the backup I hope I have at home!!

keypetery’s picture

Just created a php.ini file in /public_html and it worked!

Thanks again, John.

This noob very pleased!