Posted by sanjanaa on June 24, 2009 at 4:32am
Hi, I am new to drupal. Where did I find Php.ini file? Please anybody give me the available path for php.ini file.
Thanks,
Revathy.
Edited by: VM; Moved to appropriate forum
Hi, I am new to drupal. Where did I find Php.ini file? Please anybody give me the available path for php.ini file.
Thanks,
Revathy.
Edited by: VM; Moved to appropriate forum
Comments
=-=
If on a shared host you don't have access to the default php.ini and if looking to override default php settings, and your host allows, you can create a php.ini with your text editor add your changes, save and upload the file to your public root on the server or your drupal root.
If on your local machine then it's likely best to do a FIND in FILES on your machine and locate the php.ini file. There may be multiple.
Upload Max_File_Size
Hai, Thank you for your kind reply. I have to change my upload max_file_size. I done it my localhost through .htaccess file. But i have no file like that in my host. So that I added the lines
ini_set('post_max_size', '300M');
ini_set('upload_max_filesize', '300M');
in settings.php. But still it doesn't work properly. Can you please suggest to resolve my problem.
Thanks,
Revathy.
=-=
you should have a .htaccess file in your drupal installation no matter where it is at. I use a custom php.ini, I can't speak for the settings.php or .htaccess methods.
you should ask your host if you are allowed to and if so how to override php defaults.
Trying to upload a 300M file through php doesn't seem to me to be the best way to go, I'd get swfupload.module and bypass php I believe.
Thank you
Once again thank you very much. According to your first reply I will create php.ini file and make changes. Can you please suggest me the correct path where do I upload this file in my host?
Thanks,
Revathy.
=-=
please take the time to reread my first comment where I'd already taken the time to explain.
Sorry
Once again thank you for your reply and Sorry for my mistake.
Thanks,
Revathy.
Php.ini file
Hi, I placed this php.ini file in my drupal root directory.
Edited by: VM; removed entire posting of php.ini file.and I also added the code
ini_set('post_max_size', '300M');
ini_set('upload_max_filesize', '300M');
in settings.php too. But still i have the same file size to upload (50MB). Is there any other coding to change for this?
Thanks,
Revathy.
=-=
please don't post such long files in the forums. If you must, use pastebin.com or drupalbin.com and link to the file.
you wouldn't need BOTH, one or the other.
If your drupal installation is in your public_root (www/ or public_html or /home or whatever your public root is)
If none of the above are working is it likely that your host doesn't allow you to change the default settings of PHP and you should check with them as previously mentioned.
Thank you
Ok Thank you. I will try.
Thanks,
Revathy.