edwardspec / mediawiki-aws-s3

Extension:AWS allows MediaWiki to use Amazon S3 (instead of the local directory) to store images.
https://www.mediawiki.org/wiki/Extension:AWS
GNU General Public License v2.0
42 stars 32 forks source link

require_once(/extensions/AWS/s3/../vendor/autoload.php): failed to open stream #36

Closed tim1mike closed 3 years ago

tim1mike commented 3 years ago

Warning: require_once(/docs/extensions/AWS/s3/../vendor/autoload.php): failed to open stream: No such file in /extensions/AWS/s3/AmazonS3FileBackend.php on line 25

Fatal error: require_once(): Failed opening required '/docs/extensions/AWS/s3/../vendor/autoload.php' (include_path='/docs/vendor/pear/console_getopt:/docs/vendor/pear/mail:/docs/vendor/pear/mail_mime://docs/vendor/pear/net_smtp:/docs/vendor/pear/net_socket:/docs/vendor/pear/pear-core-minimal/src:/docs/vendor/pear/pear_exception:.:/php') in /docs/extensions/AWS/s3/AmazonS3FileBackend.php on line 25

What should I do?

edwardspec commented 3 years ago

Run composer install in the directory with extension.

tim1mike commented 3 years ago

I can't do this because I have only virtual hosting without roots in /usr/bin So I can't just move Composer in there to run composer install globally I only can run php composer.phar from installed directory /composer

edwardspec commented 3 years ago

You can run Composer from wherever, it doesn't matter if it's installed globally or not.

tim1mike commented 3 years ago

I was trying, it says: h009399868@h009399868:~/***/docs/extensions/AWS$ composer install -bash: composer: command not found

I could move composer.phar into the AWS folder to run php composer.phar install frome the AWS directory and then move Vendor folder into the wikimedia $IP, is that a right way?

edwardspec commented 3 years ago

I could move composer.phar into the AWS folder to run php composer.phar install frome the AWS directory

Yes.

and then move Vendor folder into the wikimedia $IP

Not needed. Running composer is enough.

tim1mike commented 3 years ago

I did it, thanks so much!