php - shell_exec not respecting open_basedir -
I am creating a shared hosting but unfortunately I need to allow users to use shell_exec. I problem That's the order they can read almost any file in my server, including the files of other websites! How can I open shell_exec to open_basedir which I have set in the vhosts file?
I think there is no easy way to do this, blocking your customers in a specific directory For, you must block the running user running PHP. (Possibly Apache or www-data)
You have to implement a way to run each instance with a module or user, which you can defect on your specific path.
Comments
Post a Comment