rockiger / reactpress

Plugin that lets you easily create, build and deploy React apps into your existing WordPress sites.
https://rockiger.com/en/reactpress/
GNU General Public License v2.0
50 stars 6 forks source link

documentation, closing down or alternative to shell_exec, exec #22

Closed wibed closed 1 year ago

wibed commented 1 year ago

is there documentation on alternative approach to shell_exec, exec

ex.: a limited set of necessary commands available, to a user which is running as the php user.

maybe one of you has already done that

EDIT: a example for production, would be great

rockiger commented 1 year ago

You don't need shell_exec anymore. Which version of the plugin do you use?

The apps directory is created by wp_mkdir_p. It uses the php function mkdir. This needs to be available.

Could you post your system configuration (OS, environment, etc) and debug with WP Debugging to look for errors?

wibed commented 1 year ago

its a debian, but dont have a root user available. it does not create the directory apps, nor am i able to run npx install afterwards. so i assume it does not work and its because of permissions.

do i need root privileges?

rockiger commented 1 year ago

Sounds to me that you need a working dev environment. If you can't run npx create-react-app, you can't use the plugin.

Are we talking about a dev environment or a live server?