A few Apache configuration questions

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

localhost different then installed

Postby arleyp » 30. July 2013 03:20

I maintain a website on a server out in the cloud. My goal is to develop pages on my local system and then transfer then to the website. I did have an apache server working on my system but I had a disk crash and in the process of restoring my system I came across the XAMPP 1.8.2 that contains apache, mysql, and php all three I would like to learn more about.
I am a navies to the world of apache, and I just downloaded and installed XAMPP_win_1_8_2 . I have tested it and It seems to work, but, it’s not what I would like to do. My goal is to run from a commented volume called “webserver” or “localhost”. I want to place folders on this volume that run, HTML, CSS, and PHP (maybe MySQL databases). The folders will contain html, css, and php files calling other files both within the volume , folders and out in the cloud.
arleyp
 
Posts: 2
Joined: 30. July 2013 03:07
Operating System: Windows XP meada center

A few Apache configuration questions

Postby arleyp » 21. October 2013 03:15

apache localhost
Re: Do Not Install 1.8.0 without READING 1st!
Question #1: I have the following Visual C++ modules load on my system, would this issue keep me for the following problem?
• Microsoft Visual C++ 2005 Redistributable
• Microsoft Visual C++ 2008 Redistributable – x86 9.0.21022


I maintain a website on a server out in the cloud. My goal is to develop pages on my local system and then transfer then to the website in the cloud. I did have an apache server working on my system but I had a disk crash and in the process of restoring my system I came across the XAMPP 1.8.2 that contains apache, mysql, and php all three I would like to learn more about.
I am a navies to the world of apache, PHP and I just downloaded and installed XAMPP_win_1_8_2 . I have tested it and It seems to work, but, it’s not what I would like to do. My goal is to run from a commented volume called
“ o:/webserver” or “localhost”. I used the “C:\xampp\apache\conf” file:
Changed [Document Root "C:/xampp/htdocs] to [Document Root "O:]
[<Directory "C: /xampp/htdocs">”] to [<Directory "O:">]
Started Apache using the “XAMPP Control Panel v3.2.1” Apache started.
<module: Apache PID(s):4220/3100 Port(s):80,443 Actions: Stop>
Used [file:///o:/GraceByTheLake/index.php] in Firefox URL
<index.php ran OK, but the PHP code, did not execute [\n"; // drop out of php for this column?>]

Question #1: what do I change to direct the PHP code to the [C:\xampp\php]?


:? confused and looking for help?
Arleyp 10-20-13
arleyp
 
Posts: 2
Joined: 30. July 2013 03:07
Operating System: Windows XP meada center

Re: A few Apache configuration questions

Postby Altrea » 21. October 2013 15:18

arleyp wrote:Question #1: I have the following Visual C++ modules load on my system, would this issue keep me for the following problem?
• Microsoft Visual C++ 2005 Redistributable
• Microsoft Visual C++ 2008 Redistributable – x86 9.0.21022

Installed VC++ Runtimes don't influence each other. The only important thing is that the correct runtime for the related program is installed.

arleyp wrote:Used [file:///o:/GraceByTheLake/index.php] in Firefox URL
<index.php ran OK, but the PHP code, did not execute [\n"; // drop out of php for this column?>]

Surely not. Your browser doesn't have a clue that you are running a webserver in the background and that your .php files have to be processed by this webserver first. Your Browser did it's best to display the files and that is as plain text. Your Browser found some html code in there and is very happy that it knows that type of data to display it properly.

So, don't use the file:// protocol, use http:// and request it by a valid url like http://localhost/

arleyp wrote:The folders will contain html, css, and php files calling other files both within the volume , folders and out in the cloud.

Don't mix save destinations. That will produce more problems than it will help.
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: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: A few Apache configuration questions

Postby hwalker1 » 24. October 2013 12:35

I'm still using the version before this, but I reckon this part will not have changed.
Try storing your files in C:/xamp/htdocs/"your folder"
Make sure Apache is started, and then use your browser to C:/xamp/htdocs/"your folder" /"yourfilename.php"
You can have a different folder in htdocs for every website that you create. If you are using windows 7, create a library that contains all your web folders, and it save you from having to do a lot of tree crawling when searching for files.
hwalker1
 
Posts: 29
Joined: 10. November 2010 11:59
Location: United Kingdom
Operating System: Windows 7 Ultimate 64 bit

Re: A few Apache configuration questions

Postby Altrea » 24. October 2013 16:00

hwalker1 wrote:and then use your browser to C:/xamp/htdocs/"your folder" /"yourfilename.php"

Wrong
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: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 113 guests