Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Run php scripts as user www data

darkalchemy edited this page May 2, 2019 · 2 revisions

add this to your .bashrc

alias php='sudo -u www-data php'

and your scripts will be ran as the correct user.