Page 1 of 1

Install correct but cannot view PHP

PostPosted: 14. March 2010 17:32
by phplearner
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.

Re: Install correct but cannot view PHP

PostPosted: 14. March 2010 21:54
by Altrea
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?

Re: Install correct but cannot view PHP

PostPosted: 15. March 2010 01:36
by phplearner
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

Re: Install correct but cannot view PHP

PostPosted: 15. March 2010 04:31
by Altrea
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/"?

Re: Install correct but cannot view PHP

PostPosted: 15. March 2010 14:59
by phplearner
So, there is a green "running" label byside Apache in your Control Panel?


yes, there is the Green Running label there.

Re: Install correct but cannot view PHP

PostPosted: 15. March 2010 15:07
by phplearner
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..

Re: Install correct but cannot view PHP

PostPosted: 15. March 2010 15:16
by Altrea
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)

Re: Install correct but cannot view PHP

PostPosted: 15. March 2010 15:24
by phplearner
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...