PiPHP / GPIO

A PHP library for accessing the GPIO pins on a Raspberry Pi.
MIT License
425 stars 43 forks source link

Permissions are not set, pelase provide example #17

Closed Erfeniuses closed 3 years ago

Erfeniuses commented 7 years ago

Hi There.

I am sorry to bring this up, but could the permissions settings also be addressed here, because this does not work without them.

When user starts this from the pure clean jessie image and installs apache2 with php5, GPIO permissions are not right

Thank you for your considerations.

AndrewCarterUK commented 7 years ago

Hello,

You may find this document useful: https://github.com/ronanguilloux/php-gpio#understanding-io-permissions

Erfeniuses commented 7 years ago

Thanx, but could you write proper guide here as well... php files are usually at /var/www/html/ index.php e.g.

Also where should I install this library? /home/pi or /var/www/html/. The required locations are also not correct in the example.

AndrewCarterUK commented 7 years ago

Hi,

There's unlikely to be a proper guide here unless someone else writes one and submits a PR. I'm not actively developing this project currently (I've got quite a lot on) but I'll try and keep up to date with bugs.

I'd install this library just as you would any composer library (into the same directory as your web project - probably /var/www/html).

Erfeniuses commented 7 years ago

ok. thanx. still need those permission settings, none of the net instructions work. :(