1

I have installed xampp in ubuntu. But I can't find htdocs folder anywhere to put my php codes and test them.

2

The htdocs folder can be found in /opt/lampp/.

You can navigate to your root folder from the file manager (nautilus by default), by clicking on Other locations from the sidebar, then Computer. From there you can find the opt folder that contains the lampp folder.

To make access to it easier, I suggest creating a symbolic link to it on your desktop with the following command:

ln -s /opt/lampp/htdocs/ ~/Desktop/htdocs/
0

Your files need to be stored in the root/opt/lampp/htdocs/ folder.

0

open terminal (shortcut is Ctrl + Alt + T ) and type

$/opt/lampp/htdocs

then you can open vs code or other text editors easily with terminal ex -

code .

for vscode

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.