![]() ![]() Sudo cp /etc/php.ini ~/Desktop/Ģ) Type in your administrator password when prompted.ģ) Now we can edit the file. You will want to run the following command from terminal. We will make a backup of all files before we work with them to insure we can revert and keep our system running.ġ) First lets backup the php.ini file on your mac. It allows you full control over all settings and files on the computer. “sudo” must be used with care and caution. To edit this file we will be using “sudo” commands. *To do this you will be editing the php.ini file. This allows you to tweak a server wide setting instead of a site localized setting. If you have a server dedicated to using Ownlcoud then it might be more worthwhile to just edit the php.ini file directly that controls these settings. To check if these need to be larger you can look in the error logs for php file size errors.ĥ) Once you have made all your adjustments, save the file and you should see the changes in the Owncloud installation. In my experience I always set these a little lower and then slowly creep them up to where the issues go away. Keep this larger or the same size as the previousĤ) If you’d like to be able to handle files of 1 GB, then you would replace these values with 1G, but you would need at least 1GB of RAM available to the web server. memory_limit: this limits the amount of total memory php can use from the server.This value controls how much data that php can post to the web server. post_max_size: This value must always be the same or larger then the upload_max_filesize.So at its current setting, we can upload a 513MB file from the web interface. Lets break down each so that you know what settings you are changing.ģ) upload_max_filesize: This controls the size of the files that can be uploaded from the web interface. If you have a machine with only 2 GB of RAM, then setting these values anywhere near or above that will cause issues. Allowing only this app to have these values and not all sites on the system.Ģ) Before we start to change any of these values we need to make sure that the machine has enough RAM in the machine. These lines override the php.ini settings. ![]() Open that file in your favorite text editor (I will use SublimeText 2)ġ) There are going to be 3 lines that we will edit in the this file: This assumes you have completed at least part 1 of this tutorial.įTP into your owncloud installation and view the root directory. First will be for a multisite host, the second is more for a server dedicated to serving Owncloud files. There are two types of PHP tuning that will be visited. Since Owncloud uses PHP to handle all the files uploads the possibility of running into a file size issues increases. This final part is for fine tuning PHP for Owncloud. The first part is the actual installation process and the second part was integrating Owncloud with Open Directory on a Mac . This is the third part of a series on installing Owncloud on a Mac mini.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |