Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Armbian, run PHP Server, Composer not work

Featured Replies

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?

  • laibsch changed the title to Armbian, run PHP Server, Composer not work
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.

  • laibsch locked this topic
  • laibsch unlocked this topic

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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.