View Full Version : where do I find the php.ini file?
splateye
08-18-2006, 05:08 AM
I want to amend it to allow uploads bigger than 2M - but where do I find it?
I'm using joomla - going to system info it tells me that the path is
/usr/local/Zend/etc/php.ini
But after an hour stumbling around I give up - using filezilla, these are my root files: (http://sanguma2005.googlepages.com/site_root)
areidmtm
08-18-2006, 09:17 AM
it should be in you public_html folder. If it's not there, you can download it here (http://www.bluehostforum.com/attachment.php?attachmentid=6&d=1147963170)
Remove the '.txt. part of the file name.
Make sure that if you make any changes to the php.ini file, which you are going to do, that the php.ini file is in every directory that has php files in it. Or more specifically, the php files that need the change you made in the php.ini file.
splateye
08-18-2006, 10:40 AM
Thanks areidmtm
That made it easy to find and modify - the php.ini is now set for 50M
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
file_uploads = On ; Whether to allow HTTP file uploads
;upload_tmp_dir = ; temporary directory for HTTP uploaded files (will use system default if not specified)
upload_max_filesize = 50M ; Maximum allowed size for uploaded files
and it's CHMOD code is 755
Still not letting me upload greater than 2M though - how do I find the other php.ini files? I'm using joomla with docman and docman has the following files in its' root:
docman.html.php
docman.php
footer.php
index.html
areidmtm
08-18-2006, 10:47 AM
Sorry, I should have said that you need to copy the edited php.ini file into every folder that needs it. If a folder does not have any php files in it or the php does not need the changed php.ini setting, then you dont have to copy it in. Only to those folders that need the change. Just upload the same file to the folders that need them
splateye
08-18-2006, 10:56 AM
please excuse my ignorance here - but how do I know which folders need the php.ini file - other than opening all of them in turn? Any rules/guidelines?
areidmtm
08-18-2006, 11:05 AM
If it has a php file in it, then put the php.ini file in it. If you edit the php.ini file it needs to be in EVERY folder that has php files. Yes you will just have to open each folder and copy the php.ini into it.
splateye
08-18-2006, 11:10 AM
my last question was badly made - what I don't know is
How do I know which folders have a php.ini file in them?
I'm assuming there's a better way then opening each of them in the file structure and looking (I hope so anyway)
Or do I have to open each folder and look for php.ini?
areidmtm
08-18-2006, 11:29 AM
None of them will have the php.ini file in them. The php.ini file would only be in the public_html folder if you had already had one. The rest of the folders will not already have the php.ini file in it. You will have to put it in manually. There really is no other easy way of doing it. If you know SSH and have that enabled, then you could do it recursively.
splateye
08-18-2006, 02:13 PM
Thanks for your help areidmtm - it now works :)
For anyone else that needs to do this:
I uploaded the php.ini file to each of the following folders in turn, checking the site after each upload. I'm guessing that it had to be in the joomla and com_docman root - but as I don't know php it's no more than a guess. Replace <subdomain> with your domain subdomain as appropriate
/public_html/<subdomain>/
/public_html/joomla/
/public_html/<subdomain>/joomla/ <lot of php files here>
/public_html/<subdomain>/joomla/modules/
/public_html/<subdomain>t/joomla/components/com_docman/
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.