Manual owncloud V4.0.6 Install on Amahi

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

Re: Manual owncloud V4.0.6 Install on Amahi

Postby bigfoot65 » Sun Aug 26, 2012 1:13 pm

This might be something good to add to the wiki with the install guidance. Maybe a separate page?
ßîgƒσστ65
Applications Manager

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

northridgegrp
Posts: 134
Joined: Sun Mar 07, 2010 9:54 am

Re: Manual owncloud V4.0.6 Install on Amahi

Postby northridgegrp » Mon Aug 27, 2012 8:29 am

What are the Amahi defaults for the /etc/php.ini file for the following:

upload_max_filesize
post_max_size

These parameters effect the maximum size of upload that is allowed to a PHP server. This also effects the maximum
size of files that can be uploaded to owncloud.

I already tinkered with my Amahi php.ini settings so I don't know what I started with. :roll:

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

Re: Manual owncloud V4.0.6 Install on Amahi

Postby bigfoot65 » Mon Aug 27, 2012 1:11 pm

No need to mess with the php.ini file as the app sets the limits. There is a file in /var/hda/web-apps/owncloud/html called .htaccess. Contents are as follows:

Code: Select all

ErrorDocument 403 /core/templates/403.php ErrorDocument 404 /core/templates/404.php <IfModule mod_php5.c> php_value upload_max_filesize 512M php_value post_max_size 512M php_value memory_limit 512M
You will notice the file size is set to 512MB. That can be easily changed by editing that file. It's best to always set php options with the app and never mess with php.ini. It could break other apps or functions.
ßîgƒσστ65
Applications Manager

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

northridgegrp
Posts: 134
Joined: Sun Mar 07, 2010 9:54 am

Re: Manual owncloud V4.0.6 Install on Amahi

Postby northridgegrp » Mon Aug 27, 2012 1:34 pm

Great! I will try that out and see if it does the job.

northridgegrp
Posts: 134
Joined: Sun Mar 07, 2010 9:54 am

Re: Manual owncloud V4.0.6 Install on Amahi

Postby northridgegrp » Mon Aug 27, 2012 5:10 pm

Ok that worked a treat!

So I changed it to:

php_value upload_max_filesize 4.7G
php_value post_max_size 5.0G

The reason for this? Using the defaults limits the size of each file a person can upload. For example, some videos like .mkv files can be typically 1.0 GB or greater.

Most people might not want to mess with configuring php like some of us. I chose about the size of a DVD.

So do you have any recommendations to start with in the package?

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

Re: Manual owncloud V4.0.6 Install on Amahi

Postby bigfoot65 » Tue Aug 28, 2012 5:29 am

We can set it large and then document in the wiki how to change it. This app still requires testing, so we might find an optimum value when that time comes.
ßîgƒσστ65
Applications Manager

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

northridgegrp
Posts: 134
Joined: Sun Mar 07, 2010 9:54 am

Re: Manual owncloud V4.0.6 Install on Amahi

Postby northridgegrp » Tue Aug 28, 2012 6:12 am

Ok so how about setting the "php_value upload_max_filesize 512M" and "php_value post_max_size 512M" to the large values I used during testing to start with? :idea:

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

Re: Manual owncloud V4.0.6 Install on Amahi

Postby bigfoot65 » Tue Aug 28, 2012 7:41 am

That is a thought. I presume you tested uploading files of that size?
ßîgƒσστ65
Applications Manager

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

northridgegrp
Posts: 134
Joined: Sun Mar 07, 2010 9:54 am

Re: Manual owncloud V4.0.6 Install on Amahi

Postby northridgegrp » Tue Aug 28, 2012 7:52 am

Yes tested upload. Have a look at the email attachment I submitted last night. :o

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

Re: Manual owncloud V4.0.6 Install on Amahi

Postby bigfoot65 » Tue Aug 28, 2012 1:34 pm

Will take a look when I get a chance.
ßî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