Page 1 of 1

Apache cannot use PHP

PostPosted: 28. September 2005 22:32
by knurft
Want to use php in apache 2.0.54. All it does (tried a lot) is downloading the .php-file instead of running this file

I am running manrake 10.0

I noticed that the PATH does not include /opt/lampp to find php

Using xampp 1.4.16

Thanks

PostPosted: 28. September 2005 22:49
by Wiedmann
All it does (tried a lot) is downloading the .php-file instead of running this file
...
Using xampp 1.4.16

You are using a URI like http://localhost/foo.php in a webbrowser?

Apache and PHP

PostPosted: 29. September 2005 21:48
by knurft
You are using a URI like http://localhost/foo.php in a webbrowser?


No I use it remote like http://www.hostname.tld

PostPosted: 29. September 2005 22:05
by deepsurfer
do you see the xampp-welcomescreen with all functions ?

Found solution!

PostPosted: 30. September 2005 09:34
by knurft
deepsurfer wrote:do you see the xampp-welcomescreen with all functions ?


Found solution.

I copied /opt/xampp/bin/php to /usr/bin and than I got the welcomescreen.
Must havebeen something with an old (default) installation.

The copy is not the best solution I like to make in these situations, any better solutions will be welcome.

PostPosted: 30. September 2005 09:50
by Wiedmann
Found solution.
I copied /opt/xampp/bin/php to /usr/bin and than I got the welcomescreen.

You are really using a XAMPP (Apache from XAMPP)?

Because Apache from XAMPP use the PHP module and not the cgi.
--> you can delete this file and PHP must work in Apache.