Page 1 of 1

PHP Configuration in XAMPP

PostPosted: 04. December 2009 16:59
by terabhrava
Installed XAMPP on my windows xp machine to setup my dokuwiki. Is there any configuration required to make sure that php runs properly. I'm able to run apache successfully, and go to the xampp home page, but php does not seem to be working. The dokuwiki install is failing as I cannot run the install.php file, and for that matter any php file. Attempt to run a php file, results in IE querying me if I want to open or save the file. I have pasted below the output of the phpinfo() from the xampp page. Appreciate any input on what might be the cause.

PHP Version 5.3.0

System Windows NT TERABHRAVA 5.1 build 2600 (Windows XP Professional Service Pack 3) i586
Build Date Jul 2 2009 21:02:53
Compiler MSVC6 (Visual C++ 6.0)
Architecture x86
Configure Command cscript /nologo configure.js
Server API Apache 2.0 Handler
Virtual Directory Support enabled
Configuration File (php.ini) Path no value
Loaded Configuration File C:\www\xampp\php\php.ini
Scan this dir for additional .ini files (none)
Additional .ini files parsed (none)
PHP API 20090626
PHP Extension 20090626
Zend Extension 220090626
Zend Extension Build API220090626,TS,VC6
PHP Extension Build API20090626,TS,VC6
Debug Build no
Thread Safety enabled
Zend Memory Manager enabled
Zend Multibyte Support disabled
IPv6 Support enabled
Registered PHP Streams https, ftps, php, file, glob, data, http, ftp, compress.zlib, compress.bzip2, phar, zip
Registered Stream Socket Transports tcp, udp, ssl, sslv3, sslv2, tls
Registered Stream Filters convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, zlib.*, bzip2.*

Re: PHP Configuration in XAMPP

PostPosted: 04. December 2009 17:17
by Wiedmann
Is there any configuration required to make sure that php runs properly.

No.

and go to the xampp home page, but php does not seem to be working.

The XAMPP home page is completely in PHP...

The dokuwiki install is failing as I cannot run the install.php file,

Sorry, I don't know anything about dokuwiki. Maybe you are something wrong with the "install.php"? Or a prerequisite is missing. Best is to ask the dokuwiki support.

Re: PHP Configuration in XAMPP

PostPosted: 04. December 2009 17:23
by terabhrava
As mentioned, the problem is applicable to any php file. If I try to run the index.php file in the \xampp\htdocs\ directory, I get the same problem. Dokuwiki is just an example.

Re: PHP Configuration in XAMPP

PostPosted: 04. December 2009 17:31
by terabhrava
Note that the consequence of the strange behaviour that attempting to open any php file, the browser queries me to either open or save the file, ofcourse if I select open, it goes through the loop all over again, i.e. asks me if I want to open or save the file.

Re: PHP Configuration in XAMPP

PostPosted: 04. December 2009 17:35
by Wiedmann
to open any php file, the browser queries me to either open or save the file,

I guess you are trying to double click on a PHP file (or using "file open" in your browser)?

Re: PHP Configuration in XAMPP

PostPosted: 04. December 2009 19:03
by terabhrava
The behaviour is the same regardless, if I double click, right-click then select open, or if I enter the path in the browser.

Re: PHP Configuration in XAMPP

PostPosted: 04. December 2009 19:56
by terabhrava
I made a few changes, not sure which one resolved the problem, but now I am able to initiate the install.php script for DokuWiki. The changes made were:

- install php seperately, left xampp as is, just added another php installation
- moved the dokuwiki directory within the xampp installation in /xampp/htdocs/ directory
- updated the DocumentRoot config setting in apache httpd.conf file to point to the dokuwiki directory

Thanks for your responses.

Re: PHP Configuration in XAMPP

PostPosted: 04. December 2009 23:22
by Wiedmann
The behaviour is the same regardless, if I double click, right-click then select open, or if I enter the path in the browser.

Correct, because you can't a double click, right-click then select open, or enter the path in the browser with PHP files.