XAMPP in Manjaro

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

XAMPP in Manjaro

Postby obelix1502 » 29. December 2020 23:36

Good evening,

I'm really a beginner with this software.
My goal is not to try a website under development, I'm just trying to learn PHP.
When I look at the tutorials on Youtube, everything looks really easy. They create .php documents, place them in a htdocs folder on their desktop or in their /home and with one click, they open their favorite browser which displays the .php page.

Personally, I installed the software and launched it with the terminal :
Code: Select all
sudo /opt/lampp/lampp satart

who shows me:
Code: Select all
Starting XAMPP for Linux 7.4.13-0...
XAMPP: Starting Apache...already running.
XAMPP: Starting MySQL...already running.
XAMPP: Starting ProFTPD...already running.


When I launch the command :
Code: Select all
sudo /opt/lampp/manager-linux-x64.run

the mistletoe window is displayed. But if I click on "Go to Application", the terminal returns the mistletoe window is displayed. But if I click on "Go to Application" the terminal returns "the menu, applications, Faqs, How To Guides, PHPInfo, phpMyAdmin and Welcome to XAMPP plus all descriptions.
I found the htdocs folder in /opt/lampp which contains several files including a file named index.php.
So I tried this file : 127.0.0.1/opt/lampp/htdocs/index.php in the browser bar which sends me back to http://localhost/dashboard/ with the usual page.
So that's where I am. I don't understand much about it.
I looked on the Net, tried to follow your faq, but no order is validated by Manjaro.
Can someone help me?
Thank you very much.
obelix1502
 
Posts: 3
Joined: 12. March 2020 22:04
XAMPP version: 7.4.3-0
Operating System: Manjaro Linux KDE

Re: XAMPP in Manjaro

Postby Altrea » 30. December 2020 00:00

Hi,

It has nothing to do with Manjaro.

You need to create a php file in htdocs or a subfolder of it.Let's assume it is /opt/lampp/htdocs/projectxy/file12.php
You can then request that file by URL http://locahost/projectxy/file12.php
I colored the fie path and the url so maybe you can see the pattern better. http://localhost/ is mapped to /opt/lampp/htdocs/. This is the DocumentRoot from which Apache is allowed to deliver ressources. Everything that comes after that DocumentRoot can reflect the folder and file structure inside that DocumentRoot.

This should help you to start with your programming experience.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 12 guests