简体   繁体   中英

How to install Node.js with PHP Curl?

I'm trying to find how to install Node.js on my apache server, but I don't have access to the console (SSH) on my server. Is it possible to install Node with PHP Curl ?

I've already downloaded the source code and I put it on my server, but I don't know what to do with it.

It might be possible with PHP and some filthy system() calls, but if you can execute those Commands in a PHP context, why don't you have any access to the server otherwise?

I would ask someone to give you access to the server directly or let the admins install node.js for you.

Due to the fact that you're the admin of that server and you don't know how to enbale SSH and even not how to install node.js (which is pretty straightforward) I recommend you to read something about administering servers: this as well as this link might help you.

Furthermore, here's a tutorial on how to enable sshd on your server and here's a link on how to build and install node.js.

But I still ask myself how do you even work with the server if you have no access to it in a way...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM