Unable to navigate to /opt/lampp/htdocs in Ubuntu after granting permissions
NickName:BufferOverflow Ask DateTime:2018-09-22T02:39:29

Unable to navigate to /opt/lampp/htdocs in Ubuntu after granting permissions

Problem
I installed lampp in my fresh Ubuntu 18.04 computer. I'm using Gitkraken and i want to clone a repository inside /opt/lampp/htdocs, but Gitkraken gui shows me a permission error (Could not read the contents of opt) when i try to navigate to /opt or hardcode /opt/lampp/htdocs.

What i have tried
1. First i followed the steps from this question:
sudo chown -R username:username /opt/lampp/htdocs
2. Then i tried chmod
sudo chmod 755 -R /opt/lampp/htdocs

My folder owner is correct

// htdocs owner:
drwxrwxr-x 6 myusername myusername 4096 sep 20 23:27 /opt/lampp/htdocs/

// Gitkraken is in:
/snap/girkraken

I don't know why i can't access that folder if my user is the owner. I'm running out of ideas. Any tips?

Thanks!

Copyright Notice:Content Author:「BufferOverflow」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/52449437/unable-to-navigate-to-opt-lampp-htdocs-in-ubuntu-after-granting-permissions

More about “Unable to navigate to /opt/lampp/htdocs in Ubuntu after granting permissions” related questions

Unable to navigate to /opt/lampp/htdocs in Ubuntu after granting permissions

Problem I installed lampp in my fresh Ubuntu 18.04 computer. I'm using Gitkraken and i want to clone a repository inside /opt/lampp/htdocs, but Gitkraken gui shows me a permission error (Could not ...

Show Detail

Insufficient permissions to save file in /opt/lampp/htdocs/ in Ubuntu

I recently installed xampp server on Ubuntu 20.04 I've changed permissions for the folder /opt/lampp/htdocs/ as follows: But whenever I try to save a file inside this folder in any code editor, it...

Show Detail

opt/lampp/htdocs/xampp - incorrect set up?

I'm new to linux (using ubuntu) and web servers in genearal and have run into some issues installing xampp. I want to install this to run apache, php and mysql. I believe these are running correctly

Show Detail

Permission denied in /opt/lampp/htdocs/ when writing a file in PHP

When a user creates a profile and uploads a profile picture, the PHP "move_uploaded_file" function is used to move a temporary copy of this image to the project directory. While my current code wo...

Show Detail

Warning: mkdir(): Permission denied in /opt/lampp/htdocs/

I'm running on ubuntu 16.04 LTS and have installed Xampp My code is: <?php $dir = 'upload'; if ( !file_exists($dir) ) { $oldmask = umask(0); mkdir ($dir, 0744); } and I'

Show Detail

Moving Lampp htdocs

I have installed Lampp on Ubuntu 12.04LTS. I tried to move my htdocs to home/myusername/lampp/htdocs by editing both DocumentRoot values in httpd.conf. After doing so I get Access Forbidden on all...

Show Detail

Restoring MediaWiki wiki with XAMPP from copy of /opt/lampp/ directory

I was hosting a webserver with XAMPP for a LAN wiki on Ubuntu. I managed to get it up and running and invested a lot of time into writing content and pages for the Wiki. Some point later I install...

Show Detail

mysql_connect(): No such file or directory in /opt/lampp/htdocs/

I have installed XAMPP on my Ubuntu 14.0.04 and I'm trying to connect to my MySQL server from PHP file but I'm getting an error: Warning: mysql_connect(): No such file or directory in /opt/lampp/

Show Detail

symfony2 error: /opt/lampp/htdocs/Symfony/web/../app/bootstrap.php.cache' (include_path='.:/opt/lampp/lib/php')

I have a problem this morning with my symfony project. I develop an application online sales that works without problem on my pc running on a ubuntu system. I 'bought a dedicated server (centos) in...

Show Detail

failed to open stream: Permission denied in /opt/lampp/htdocs

I am using Ubuntu 16.04 & xampp 5.6.30. I am trying to create a simple login program using file with validation but I am facing problem while putting my data into a file named "login.txt". Er...

Show Detail