Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stuck on installation of OB Server. I can not get it to install. #169

Open
Minqua opened this issue Jun 13, 2024 · 1 comment
Open

Stuck on installation of OB Server. I can not get it to install. #169

Minqua opened this issue Jun 13, 2024 · 1 comment

Comments

@Minqua
Copy link

Minqua commented Jun 13, 2024

New build on everything.
Installed Ubuntu 24.04.
All prerequisites for OpenBroadcaster Server have been installed in the order decribed on the installation instructions pages.
Mariadb, and Apache2, installed successfully,
Installation Steps;
1: I believe I successfully copied Observer-5.3.2 to the web servers root directory, but not 100% sure.
2: I do NOT understand Step 2, 'Navigate to the cloned repository directory within the web document root and run the following command to install PHP and JavaScript dependencies. ' $ composer install && npm install'
I get an error, and the whole install process falls apart for me. A pic is included that shows the error.
I remember, and have notes, installing composer, Node.js, and npm globally ( just on the machine) not to any specific folder
IMG_2519
I have copied the config.sample.php and saved it as config.php, but I can not manage to get it saved to the root folder. It saves in the area where I extracted the zip file. when I try to try different methods of running ther commands, sometimes I get an error that config.php can not be found.
I have not tried to install the obplayer. Instructions point to that going in after the server is installed and setup, but I dunno.
And I just can not see where or what the actual installation file of the observer-5.3.2 is.
Help with this would be very much appreciated. I have spent days on it and now just going around in circles and there does not appear to be any real USER guidelines, instructions, knowledge share on the topic of installing this program.

@eric-pirozok
Copy link

The error indicates that Composer cannot create the vendor directory, likely due to insufficient permissions in the /var/www/html directory. Here’s how you can fix it:

1. Check Permissions

Ensure that the /var/www/html directory is writable by your user:

bash
ls -ld /var/www/html

If the directory is owned by root, you may need to adjust ownership or permissions.

2. Fix Ownership or Permissions

Option 1: Temporary Ownership Change for Development

Make the directory writable by your user:

bash
sudo chown -R $USER:$USER /var/www/html

Run the composer install command again:

bash
composer install && npm install

3. Verify Installation

After running the command, ensure the vendor directory is created:

bash
ls -la /var/www/html/vendor

4. Restore Permissions

sudo chown -R root:root /var/www/html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants