Page 1 of 1

localhost different then installed

PostPosted: 30. July 2013 03:20
by arleyp
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.

A few Apache configuration questions

PostPosted: 21. October 2013 03:15
by arleyp
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

Re: A few Apache configuration questions

PostPosted: 21. October 2013 15:18
by Altrea
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.

Re: A few Apache configuration questions

PostPosted: 24. October 2013 12:35
by hwalker1
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.

Re: A few Apache configuration questions

PostPosted: 24. October 2013 16:00
by Altrea
hwalker1 wrote:and then use your browser to C:/xamp/htdocs/"your folder" /"yourfilename.php"

Wrong