Correct File User and Directory Permissions after Install

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Correct File User and Directory Permissions after Install

Postby junaidahmed » 09. April 2016 03:15

Hi I have just installed XAMPP on linux.

It installed in /opt/lampp directory.

I created a new website under /opt/lampp/htdocs/newwebsite

Copy pasted WordPress files there. Installed WordPress.

I have a very common problem. When I try to upload images to WordPress site I get an error. Apparently, after the install server does not have permission to create folders.

I have found the solution to chmod 777 but that's not safe.

I have also tried:

$chown myusername:myusername /opt/lampp/htdocs

So what should I do to set proper file permissions after installation.
junaidahmed
 
Posts: 2
Joined: 09. April 2016 03:10
XAMPP version: 5.6-19.0
Operating System: Debian Linux

Re: Correct File User and Directory Permissions after Instal

Postby Nobbie » 09. April 2016 10:34

junaidahmed wrote:I have found the solution to chmod 777 but that's not safe.


Why not? Who else is working on your PC?
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04

Re: Correct File User and Directory Permissions after Instal

Postby junaidahmed » 09. April 2016 21:28

No one. But I keep reading everywhere that you shouldn't do that even on localserver. Also it is a workaround not a solution.
junaidahmed
 
Posts: 2
Joined: 09. April 2016 03:10
XAMPP version: 5.6-19.0
Operating System: Debian Linux


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 122 guests