Installation of new components is not working on VPS

Andrés Robles Posted in Technical Support 7 years ago

Hi there,

i installed my ossn website on my new Digital Ocean VPS. First time i did it, i just imported the database with all components on there, but didn't work very good.. some pictures wont show and some pages wont open css, etc, etc...

So after that, i installed the db from scratch, with the installer.. Everything went good this time, but the only thing missing is that i can´t install components... its weird because i can install the same files in my localhost, but when i try to install them in the VPS it gives me the message: Cannot upload component, make sure is a valid package.

I need help plzzz
Thank you very much

Replies
cl Andrés Robles Replied 7 years ago

Yes, now it works, thank you very much..

seconds after changing the ini.php it didn't work, but 5 minutes later it worked.. :D

Indonesian Arsalan Shah Replied 7 years ago

Do you able to upload component now?

cl Andrés Robles Replied 7 years ago

Is shown updated when i open: http://app.arcoluna.cl/ossninfo

memorylimit 128M
register
globals
postmaxsize 55M
uploadmaxfilesize 50M
default_charset UTF-8

There is 2 ini.php files.. one on this route: /etc/php/7.0/cli/php.ini
and the other on this one: /etc/php/7.0/apache2/php.ini

The second route is connected with ossninfo

Indonesian Arsalan Shah Replied 7 years ago

I can see now that your upload size has been increased (http://app.arcoluna.cl/ossninfo) can you share how did you done it?

Indonesian Arsalan Shah Replied 7 years ago

Your size is still not updated http://app.arcoluna.cl/ossninfo

Try to find out which php.ini file is used by running simple php code create a file on your root phpinfo.php and add following contents (so the file can be visited http://app.arcoluna.cl/phpinfo.php)

<?php
phpinfo();
cl Andrés Robles Replied 7 years ago

OK, i did that, configured ini.php and chenge maxupload, and maxpost to 50mb

and try then install the component, but same error occurred...

Indonesian Arsalan Shah Replied 7 years ago

Try to run

sudo service apache2 reload
sudo service apache2 restart

Also see this : https://manjaro.site/change-upload_max_filesize-php-7-0-ubuntu-16-04/

cl Andrés Robles Replied 7 years ago

Thanks Arsalan,

i did some PHP configuration changes before by editing php.ini:
sudo nano /etc/php/7.0/cli/php.ini

allowurlfopen = On
fileuploads = On
upload
maxfilesize = 32M
post
max_size = 38M

But idk why is not affecting OSSN..

Indonesian Arsalan Shah Replied 7 years ago

The genio component seems of 3MB but your uploadmaxfilesize is 2MB , you'll need to increase uploadmaxsize to at least 3MB or more. My suggestion is to increase postmaxsize and the uploadmaxsize to at least 10 MB, This can be changed from your php.ini

[Edited]

Other components are exceeding 2MB also, (they are of 7MB)

cl Andrés Robles Replied 7 years ago

Thanks Z Man for your help,

here is what you requested: http://app.arcoluna.cl/ossninfo

The components not working are particular ones, made by Liang, based on blog component. IDK why is not working with the ossn installation system while hosted on my VPS...

Basically, one is for sharing ideas of new apps to add to the platform (Collective Genius, or in spanish Genio), and the other one is for sharing real projects with the community (Projects comp).

After testing them and fix bugs, i will share them with ossn community.