Best way for adding new web content in xampp

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

Best way for adding new web content in xampp

Postby xampp_artifex » 27. September 2015 22:56

Hello all,

I've installed xampp 5.6.8 on Windows 7 and everything is OK. Going to localhost I have the page presenting lots of things available in xampp. I've had a look to htdocs folder and I saw there is some content in there (that's normal). I would like to add my site to the local xampp installation and I don't know where to copy it and how to have a entry menu for my website added to the main xampp page.

For the database, everything is clear, but for the filesystem, and the menu to be added to xampp homepage not yet clear.

Thank you for your help. I'm sure that's a basic question :)

Kind regards,

xampp_artifex
xampp_artifex
 
Posts: 3
Joined: 27. September 2015 22:46
Operating System: Windows 7

Re: Best way for adding new web content in xampp

Postby Altrea » 27. September 2015 23:31

Hi,

You are absolutely free.
For beginners It is recommend to save your files somewhere inside htdocs, most recommend in it's own subfolder.

That way you can request it directly by URL http://localhost/subfolder/

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: Best way for adding new web content in xampp

Postby fulviot » 28. September 2015 14:39

Hi,
thanks a lot for your exlpanations, but I've got a problem of rights also.
When I'm trying to put a test.php file in the test subfolder of the path htdocs, I've got an error from the text editor.
Notepad reply me that I've no rights to write in this subfolder.

How can I solve this issue?

Best Regards
Fulvio
fulviot
 
Posts: 2
Joined: 28. September 2015 13:01
Operating System: Windos10 Pro upgrade from 7

Re: Best way for adding new web content in xampp

Postby JJ_Tagy » 28. September 2015 15:10

It sounds like you installed inside Program Files folder or something conflicting with open UAC access. You should install in C:/xampp or run your notepad as Administrator (Right-click, Run as Administrator).
JJ_Tagy
 
Posts: 788
Joined: 30. January 2012 13:44
XAMPP version: 5.5.15
Operating System: Windows 10 Pro x64

Re: Best way for adding new web content in xampp

Postby xampp_artifex » 28. September 2015 16:25

Hi,

Thank you for this idea.
I'm looking for having an external folder (not inside the xampp server) for my website files. I think it should be possible by tuning httpd.conf. Do you have any idea about how to do that properly?

I have D:\xampp\htdocs
and I would like to have my website folder under:
D:\my_web_site\
The URL to be asked can be:
http://localhost/my_web_site

Kind regards,

xampp_artifex
xampp_artifex
 
Posts: 3
Joined: 27. September 2015 22:46
Operating System: Windows 7

Re: Best way for adding new web content in xampp

Postby JJ_Tagy » 28. September 2015 16:41

In your /xampp/apache/conf/httpd.conf file, locate these and modify:

DocumentRoot "C:/xampp/htdocs"
<Directory "C:/xampp/htdocs">

That shows where http://localhost/ points to currently.
JJ_Tagy
 
Posts: 788
Joined: 30. January 2012 13:44
XAMPP version: 5.5.15
Operating System: Windows 10 Pro x64

Re: Best way for adding new web content in xampp

Postby xampp_artifex » 28. September 2015 18:36

HI,

Ok but in this case the homepage of xampp is lost because the root is now elsewhere. Is that a way in order to add a virtual path (and add a menu on the homepage pointing to that external path)?

Kind regards
xampp_artifex
 
Posts: 3
Joined: 27. September 2015 22:46
Operating System: Windows 7

Re: Best way for adding new web content in xampp

Postby Nobbie » 28. September 2015 19:05

xampp_artifex wrote:Is that a way in order to add a virtual path (and add a menu on the homepage pointing to that external path)?


Yes. You should read about VirtualHost.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 84 guests