One other way is to start with a fresh SDCard with a copy of Raspbian 2017-11-29 or NOOBS 2.4.5. Then make notes of everything you change, so that when you break something you can take a small step back rather than a fresh install.
What is meaning of this paragraph
To fix this, run the sudo visudo command and add the following line to the sudoers file:
www-data ALL=NOPASSWD: ALL
Also, make sure that the /var/www directory belongs to the www-data user and group (use sudo chown -R www-data:www-data /var/www to set the correct owner).
You've broken your system, a fresh install is the fastest route to recover from the damage you've done to your Linux filesystem.
Users browsing this forum: No registered users and 23 guests