• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Raspberry Pi: Install Apache + MySQL + PHP (LAMP Server)

Q&A Forum › Category: Raspberry Pi › Raspberry Pi: Install Apache + MySQL + PHP (LAMP Server)
0 Vote Up Vote Down
Chris asked 3 years ago

Hi,
Good tutorial that works well until I get to the last step changing the permission of the /var/www/html/ folder.
pi@raspberrypi:~ $ ls -lh /var/www/
pi@raspberrypi:~ $ sudo chown -R pi:www-data /var/www/html/
pi@raspberrypi:~ $ sudo chmod -R 770 /var/www/html/
pi@raspberrypi:~ $ ls -lh /var/www/
 
pi-1@raspberrypi:/ $ sudo chown -R pi:www-data /var/www/html/
returns:
chown: invalid user: ‘pi:www-data’
Is there a solution please?
 
Thanks
 
Chris Heisig
 

Question Tags: LAMP
1 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hello chris

  • Raspberry Pi: Install Apache + MySQL + PHP (LAMP Server)

Is your raspberry pi user called pi-1?

If it you mus use the command:

pi-1@raspberrypi:/ $ sudo chown -R pi-1:www-data /var/www/html/

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.