Permission Denied to execute command through SSH in php - putty

I am running a command through putty command promt. It's working fine. Now I have to do it through php script. I am using "phpseclib" library and After successfull login While executing command i am getting "Permission Denied".
How to get rid of this problem?

Related

Cypress file permissions on Mac issue

Error: EACCES: permission denied, open ‘/Users/palisaski/Library/Application Support/Cypress/cy/production/projects/CyZavrsniProjekat-3356f9979cb849d912b38aef8a005fde/bundles/cypress/integration/homePageTests.js’
On Mac, tried to run some scripts, but keep getting this message. I am using sudo command to run cypress.
Cypress requires root access, you need to install it accordingly and make sure you have the proper permissions. See #1281
Getting error "EACCES: permission denied" when i install cypress

Laravel installer error message 'failed to open stream: permission denied'

I keep receiving an error when trying to install Laravel.
I already run cmd as administrator and tried fixing this by un-ticking the folder attributes in properties which says
"Read-Only (Only applies to files in folder)"
with the hope that the permission is now accessible by Composer. The problem occurs when I run this command line:
composer global require laravel/installer
I still get this error message:
[ErrorException]
file_put_contents(C:\Users\fikri\AppData\Roaming\Composer): failed to
open stream: Permission denied
if you are windos user, open cmd or git bash with administrator privilege
if you are linux user install with super user privilege
sudo composer global require laravel/installer

Openshift and HtmlServiceProvider

I have pushed my local app to openshift and now get the following error message
PHP Fatal error: Class 'Illuminate\Html\HtmlServiceProvider' not found in /var/lib/openshift/5728b9782d5271802600015c/app-root/runtime/repo/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 150
How do I fix this on Openshift?
The solution locally would be to run composer update but how do I run that command on Openshift? I know there is rhc command line tool but is it possible to do a composer update with rhc?
You should check for the files first. You may have corrupted/missing files during upload. If you do not have vendor directory, you shoudl run composer update.
If files are there, run composer dumpauto on the server.
You can connect to you server with SSH and run these commands from terminal.
If you do not have access to SSH, you could try to run there commands using small PHP script with shell_exec('composer update'); clause in it, or just upload all vendor files manually.
I got ssh access and did the commands necessary to correct the problems

Node.js command prompt error ENOENT, stat C:\Users\student\AppData\Roaming\npm

I am trying to run an 'npm install' through my Node.js command prompt. After reading other forums I have tried running the prompt as administrator and creating an npm folder manually as suggested. I am getting the same error. Is there anybody that has encountered this issue or knows why this error is occuring? I am running this on Windows 7. Thanks!

Can´t install composer

I get this message installing composer: "unable to execute file in temporary folder" Setup Aborted. Access denied.
I tried to install it by console, but the command line doesn´t recognize php like intern o extern command.
Download the executable file and run it

Resources