If you're having trouble uploading larger pictures or if you are planning to import a very long list of users from a CSV file, it's time to have a look at your current server settings.
Thus,
System Info
component from https://www.opensource-socialnetwork.org/component/view/1963/system-infohttp://YOUR_SITE_URL/ossn-system-info
and have look at the PHP settings
table on topThe parameter of interest is upload_max_filesize
. If set to 2000000 or 2M, you won't be able to upload files which are larger than 2 Megabytes. The process of increasing this setting depends on the configuration of your server, though. Have a look at the PHP table again - this time we need to know the Server APi
: It should be either apache2handler
or cgi-fcgi
.
Before proceeding: Remember FIRST to make a BACKUP
of the files you are going to edit, since a mistake in a system file may result in Server 500 errors and a blank page!!!
As already said, the method of changing PHP settings depends on your server configuration. Here we go ...
Case A - Server APi: apache2handler
.htaccess
in the root of your Ossn installationphp_value upload_max_filesize
15M
or enter the value in bytes like 15000000
- both are interpreted as 15 megabytes)php_value post_max_size
3 megabytes
larger than the value of upload_max_filesize
upload_max_filesize
is 15M
, then post_max_size
should be 18M
.htaccess
file and reload the Ossn System Info
page againPHP settings
table, and larger file uploads should work nowCase B - Server APi: cgi-fcgi
php.ini
in the root of your Ossn installationpost_max_size = 18M
upload_max_filesize = 15M
Now your upload limit should be increased to files with a size of up to 15 Megabytes. You may change the values to your requests, but note that the post_max_size
always has to be larger than the upload_max_filesize
.
Next, you need to add some stuff to your .htaccess file
System Info
page and copy the setting of Install Dir
to your copy buffer with CTRL-C.htaccess
in the root of your Ossn installation<IfModule mod_suphp.c>
suPHP_ConfigPath INSERT COPY BUFFER HERE WITHOUT TRAILING SLASH
</IfModule>
suPHP_ConfigPATH /home/blabla/public_html/ossn
/
in the beginning, but NO slash at the end.)Now navigate to the Ossn Sytem Info page again and verify whether your changes are reflected in the output. If so, you should be able to upload larger files now.