Cannot view PhP pages in XAMPP

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

Cannot view PhP pages in XAMPP

Postby dguynes » 18. April 2014 19:44

I have downloaded and installed XAMPP 1.8.3 for Windows (I am running Windows 7 x64)
I have IIS on the machine as well.
Changed the httpd.conf file to use port 81 instead of 80.
Started both Apache and MySQL.
Went to localhost:81 and I get the "Welcome to XAMPP for Windows!" window, which allows me to access the PhPMyAdmin.
XAMPP was installed to c:\xampp

So basically, it works. However, in the readme file that comes with xampp it states:
"Step 3: Start your browser and type http://127.0.0.1 or http://localhost in the location bar.
You should see our pre-made start page with certain examples and test screens."
In my case it would be localhost:81 ... but that takes me to the "Welcome to XAMPP for Windows!" and not to the htdoc files they have set up as the pre-made start page.

Ultimately, I have a php project that I would like to run, which I copied into C:\xampp\test
I would like my localhost:81 to point there (or localhost:81/test) ... but not sure how to do that.

I tried to change the httpd.conf as follows:
DocumentRoot "C:/xampp/test"
<Directory "C:/xampp/test">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>

but that did not help either.

It appears I am close. I can get XAMPP, Apache, and MySQL up and running ... just cannot seem to get my php pages rendered.
Does anyone have any recommendations? Thank you.
dguynes
 
Posts: 1
Joined: 18. April 2014 19:28
Operating System: Windows 7 x64

Re: Cannot view PhP pages in XAMPP

Postby Altrea » 18. April 2014 20:36

dguynes wrote:I tried to change the httpd.conf as follows:
DocumentRoot "C:/xampp/test"
<Directory "C:/xampp/test">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>

but that did not help either.

Please undo this change.

You can access project by url http://localhost:81/test

If you want to simulate a top or second level domain you would like to use namebased virtual hosts
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: 8293
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: DrSeussFreak and 61 guests