Page 1 of 1
SOLVED: Wordpress Webapp location of php.ini
Posted: Thu Feb 27, 2014 5:12 pm
by drbones
Hi Everyone,
I'm setting up a wordpress site for development purposes. I'm trying to locate the php.ini file so I can increase the size limit for uploads. I did a search on the hda directory with no success.
Any ideas?
Thanks!
Dr. Bones
Re: Wordpress Webapp location of php.ini
Posted: Thu Feb 27, 2014 6:10 pm
by bigfoot65
Best not to modify that file. You can apply the same settings by adding an .htacess file in the app directory or if one exists, add to it:
<Files *.php>
php_value upload_max_filesize 512M
</Files>
You can find location of files by doing this as root user:
Re: Wordpress Webapp location of php.ini
Posted: Fri Feb 28, 2014 9:01 am
by drbones
Hi Bigfoot,
Thanks for the reply, just to confirm, would I put the file in the wordpress \var\hda\webapps\wordpress directory or the apps directory /var\hda\apps?
Can I just create a file using gedit and name it .htacess?
Thanks!
DrB
Re: Wordpress Webapp location of php.ini
Posted: Fri Feb 28, 2014 9:13 am
by bigfoot65
Thanks for the reply, just to confirm, would I put the file in the wordpress \var\hda\webapps\wordpress directory or the apps directory /var\hda\apps?
It would go in /var/hda/web-apps/wordpress/html directory where all the app files are located.
Can I just create a file using gedit and name it .htacess?
You can use any editor you choose to create it and ensure you set the ownership permissions to apache:users for the file or it will not work.
Re: Wordpress Webapp location of php.ini
Posted: Fri Feb 28, 2014 9:25 am
by drbones
Thanks again for the help.
FYI I had a typo, it should be .htaccess not .htacess. I placed it in the wordpress webapp folder \var\hda\webapps\wordpress before I received your reply to see if it would work, and it did. I'll have to see if there are any issues and if I have to move it to the html folder.
Thanks again!
Dr.B
Re: Wordpress Webapp location of php.ini
Posted: Fri Feb 28, 2014 11:22 am
by bigfoot65
No problem. Glad to help.