SOLVED: Wordpress Webapp location of php.ini

drbones
Posts: 8
Joined: Mon Jan 17, 2011 12:07 pm

SOLVED: Wordpress Webapp location of php.ini

Postby drbones » Thu Feb 27, 2014 5:12 pm

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

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Wordpress Webapp location of php.ini

Postby bigfoot65 » Thu Feb 27, 2014 6:10 pm

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:

Code: Select all

find / -name php.ini
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

drbones
Posts: 8
Joined: Mon Jan 17, 2011 12:07 pm

Re: Wordpress Webapp location of php.ini

Postby drbones » Fri Feb 28, 2014 9:01 am

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

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Wordpress Webapp location of php.ini

Postby bigfoot65 » Fri Feb 28, 2014 9:13 am

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.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

drbones
Posts: 8
Joined: Mon Jan 17, 2011 12:07 pm

Re: Wordpress Webapp location of php.ini

Postby drbones » Fri Feb 28, 2014 9:25 am

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

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Wordpress Webapp location of php.ini

Postby bigfoot65 » Fri Feb 28, 2014 11:22 am

No problem. Glad to help.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 15 guests