Where to save php files

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

Where to save php files

Postby hackit » 01. January 2012 06:43

I'm new to both ubuntu and php and web development in general. Can anyone tell me which folder I should save my php files in so that I can view them in my browser. I currently have the xampp 1.7.7 for linux installed.
hackit
 
Posts: 2
Joined: 01. January 2012 06:37
Operating System: Ubuntu

Re: Where to save php files

Postby Altrea » 01. January 2012 12:44

Hi hackit.

Your Webfiles (HTML, CSS, JS, PHP, Images, etc) should be saved inside your Apache DocumentRoot or subfolders of it.
The Apache DocumentRoot on Linux is /opt/lampp/htdocs/ by default.

best wishes,
Altrea
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

Re: Where to save php files

Postby hackit » 01. January 2012 18:43

Altrea,

Thanks for addressing my question. I'll do that and let you know how that goes.
hackit
 
Posts: 2
Joined: 01. January 2012 06:37
Operating System: Ubuntu

Re: Where to save php files

Postby pacoi » 04. January 2012 05:21

Altrea wrote:Hi hackit.

Your Webfiles (HTML, CSS, JS, PHP, Images, etc) should be saved inside your Apache DocumentRoot or subfolders of it.
The Apache DocumentRoot on Linux is /opt/lampp/htdocs/ by default.

best wishes,
Altrea

Okay, this makes sense. I was confused for a little there. Dealing with folders can be such a pain.
pacoi
 
Posts: 1
Joined: 04. January 2012 05:16
Operating System: Linux


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 17 guests