April 27, 20233 yr Hello I use armbian on my odroidc2 on the devic is lamp, for a mysql and php server. Now i tried to install composer. The installation works great, but i can't use any scripts from vendor folder. The directory of my php file: /var/www/html/terminal/includes/helpers/my_php_file.php the code in my php file require_once(__DIR__ . '/vendor/autoload.php'); The code means the vendor directory has this path: /var/www/html/terminal/includes/helpers/vendor/autoload.php But thats not correct. I searched and found the correct path of composer it's: /home/user/vendor/ So i tried to make a folder-shortcut in my www/html/ folder, but i can't use it because permission denied. Next idea: i fix the code in my php file include '../../../../../../home/odroid/vendor/autoload.php'; now it would be found, but i get the same error: Warning: include(../../../../../../home/odroid/vendor/autoload.php): Failed to open stream: Permission denied in /var/www/html/terminal/includes/helpers/backup_DB.php on line 26 what's the correct way to youe composer with autoload.php and something more?
August 29, 20251 yr 11 hours ago, Allen Chak said: Try change the folder permission, chmod -r 775 /home/odroid/ Very bad advice. You just made all files under /home/odroid executable. Don't run server software unless you have at least a rudimentary understanding of Linux, especially if accessible from the internet. Better get hosting and not pwned and part of a botnet. This topic is not specific to Armbian and thus more suitable to be discussed elsewhere.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.