Install correct but cannot view PHP

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

Install correct but cannot view PHP

Postby phplearner » 14. March 2010 17:32

Hi,

i have install XAMPP but it just cannot work. i open the php index file and it shows that i didn't install correctly. Do i have to configure mysql too in order for PHP to work. I only want php to be installed in my pc.

Please help. Thanks.
phplearner
 
Posts: 5
Joined: 14. March 2010 17:29

Re: Install correct but cannot view PHP

Postby Altrea » 14. March 2010 21:54

Which XAMPP Version?
Which Installation-Directory?
Have you run the setup-xampp.bat file?
Have you started Apache in the Xampp-control panel?
How did you opened the index file?
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: Install correct but cannot view PHP

Postby phplearner » 15. March 2010 01:36

Which XAMPP Version?
THe latest one 1.7.3 ( tried both the XAMPP and XAMPPLITE, same thing happen)

Which Installation-Directory?
C:xampp/... ( at the root C)

Have you run the setup-xampp.bat file?
I just follow its instruction to install and complete it via EXE. Is that the setup-xamoo.bat file?

Have you started Apache in the Xampp-control panel?
Yes, in the Xampp-control panel.

How did you opened the index file?
I open it using firefox and dreamweaver.

More info: i am using XP SP3
phplearner
 
Posts: 5
Joined: 14. March 2010 17:29

Re: Install correct but cannot view PHP

Postby Altrea » 15. March 2010 04:31

phplearner wrote:I just follow its instruction to install and complete it via EXE. Is that the setup-xamoo.bat file?

The setup-xampp.bat file should have executed automatically after the file extract operations if you use the exe version. If not, you can execute the file any time. Its in your xampp main directory.

phplearner wrote:Yes, in the Xampp-control panel.

So, there is a green "running" label byside Apache in your Control Panel?

Have you ticked the svc-checkbox there? If so, please untick them.

phplearner wrote:I open it using firefox and dreamweaver.

In Firefox, you try to open the Adresses "http://localhost/" or "http://127.0.0.1/"?
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: Install correct but cannot view PHP

Postby phplearner » 15. March 2010 14:59

So, there is a green "running" label byside Apache in your Control Panel?


yes, there is the Green Running label there.
Last edited by phplearner on 15. March 2010 15:10, edited 1 time in total.
phplearner
 
Posts: 5
Joined: 14. March 2010 17:29

Re: Install correct but cannot view PHP

Postby phplearner » 15. March 2010 15:07

phplearner wrote:I open it using firefox and dreamweaver.

In Firefox, you try to open the Adresses "http://localhost/" or "http://127.0.0.1/"?


The "http://localhost" allows me to to open up a page which shows that i have installed XAMPP successfully and i can view the phpinfo().

But i just cannot view the index file in the htdoc folder. If i change it to "http://localhost/xampp/htdoc/index.php", it gives me a page telling me "object is not found and Error 404".

If i open it up in the address which is the default one "file:///C:/xampplite/htdocs/index.php" it gives me this "Something is wrong with the XAMPP installation :-( "

So i dunno what has happened or what i did wrong. Or do i need to configure something? pls advise, thanks..
phplearner
 
Posts: 5
Joined: 14. March 2010 17:29

Re: Install correct but cannot view PHP

Postby Altrea » 15. March 2010 15:16

You can't access php files with a file:// protocol or any other local HDD path like C:/...
php files have to be parsed by the php interpreter/parser!

http://localhost/ point you into your C:/xampplite/htdocs/ folder (which is your documentRoot folder).
(e.g.: http://localhost/project1/index.php will be the file C:/xampplite/htdocs/project1/index.php)
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: Install correct but cannot view PHP

Postby phplearner » 15. March 2010 15:24

Altrea wrote:You can't access php files with a file:// protocol or any other local HDD path like C:/...
php files have to be parsed by the php interpreter/parser!

http://localhost/ point you into your C:/xampplite/htdocs/ folder (which is your documentRoot folder).
(e.g.: http://localhost/project1/index.php will be the file C:/xampplite/htdocs/project1/index.php)



OK i got it, i got to put my other php files in the htdocs and open it through localhost. Thank you...
phplearner
 
Posts: 5
Joined: 14. March 2010 17:29


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 106 guests