Page 1 of 1

Best way for adding new web content in xampp

PostPosted: 27. September 2015 22:56
by xampp_artifex
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

Re: Best way for adding new web content in xampp

PostPosted: 27. September 2015 23:31
by Altrea
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

Re: Best way for adding new web content in xampp

PostPosted: 28. September 2015 14:39
by fulviot
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

Re: Best way for adding new web content in xampp

PostPosted: 28. September 2015 15:10
by JJ_Tagy
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).

Re: Best way for adding new web content in xampp

PostPosted: 28. September 2015 16:25
by xampp_artifex
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

Re: Best way for adding new web content in xampp

PostPosted: 28. September 2015 16:41
by JJ_Tagy
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.

Re: Best way for adding new web content in xampp

PostPosted: 28. September 2015 18:36
by xampp_artifex
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

Re: Best way for adding new web content in xampp

PostPosted: 28. September 2015 19:05
by Nobbie
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.