Re: Apache and PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Gustav Wiberg wrote:
Hi there!

Thanx! :-)
I hope I can solve this myself now... :-)

If you get stuck another good line of approach might be to install a preconfigured bundle (php/apache/mysql) and then possibly compare you configs with theres e.g:

http://www.devside.net/
http://www.apachefriends.org/en/xampp-windows.html
http://www.en.wampserver.com/

I have no experience with any of these - but if time is short
they may help you out.

for a php5 as an apache module you would add something like:

LoadModule php5_module C:/php/php5apache2.dll
AddType application/x-httpd-php .php

to httpd.conf. if you get stuck don't forget to mention
binary versions and php sapi your using (cgi or module).


/G @varupiraten.se

----- Original Message ----- From: "dan" <info@xxxxxxxxxxxxxxxx>
To: <php-general@xxxxxxxxxxxxx>
Sent: Monday, February 28, 2005 11:23 PM
Subject: Re:  Apache and PHP


Gustav Wiberg wrote:

Hi there!

I've just installed Apache on a new computer. (just for testing)
It's Windows XP. I've then installed PHP and it says that Apache could be not configured automatically.


Newbies question as hell probably but here it goes:
I can access my Apache-server, I have the document-root to c:\webb and the apace-files is in c:\program\Apache
I've changed a little in httpd.conf file and restarted the Apace-service. I have changed the documentRoot and another parameter that was very alike documentRoot...


But my problem...

The sourcecode for PHP shows when I access the http-server with php-files.

I don't cant getting any full support answers on this, just give me hints... :-)

/G
@varupiraten.se


Check out:

http://www.php.net/manual/en/install.windows.apache2.php

Pay particular attention to the AddType directives. This will make Apache "process" PHP files.

Hope that helps
-dant

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux