> John Lazos wrote:
> 
>> and i put the file in my htdocs directory i restarted apache and when 
>> i'm trying to access the page http://localhost/hello.php as a result 
>> i'm getting the contents of the file hello.,php
> 
> 
> 
>> What is wrong is my apache able to display php pages?
> 
> 
> Looks like Apache does not know about PHP :) in your 
> /usr/local/apache/conf/httpd.conf file (or another path, if you have set 
> another prefix while compiling the tarball) you seem to miss this:
> 
>     AddType application/x-httpd-php .php
>     AddType application/x-httpd-php .phtml
>     AddType application/x-httpd-php .php3
>     AddType application/x-httpd-php-source .phps
> 

I almost forgot. Also check the module list. It should be
something like this (but you might have much less modules
installed then I do, anyway, just make sure that after
deleting those you don't have the LoadModule and AddModule
order do match with the example. Apache gets quite nervous
if you give it some other module order)

LoadModule agent_log_module   libexec/mod_log_agent.so
LoadModule referer_log_module libexec/mod_log_referer.so
LoadModule mime_magic_module  libexec/mod_mime_magic.so
LoadModule status_module      libexec/mod_status.so
LoadModule info_module        libexec/mod_info.so
LoadModule speling_module     libexec/mod_speling.so
LoadModule rewrite_module     libexec/mod_rewrite.so
LoadModule proxy_module       libexec/libproxy.so
LoadModule expires_module     libexec/mod_expires.so
LoadModule usertrack_module   libexec/mod_usertrack.so
LoadModule unique_id_module   libexec/mod_unique_id.so
LoadModule php4_module        libexec/libphp4.so
<IfDefine SSL>
LoadModule ssl_module         libexec/libssl.so
</IfDefine>


#  Reconstruction of the complete module list from all available modules
#  (static and shared ones) to achieve correct module execution order.
#  [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]
ClearModuleList
AddModule mod_env.c
AddModule mod_log_config.c
AddModule mod_log_agent.c
AddModule mod_log_referer.c
AddModule mod_mime_magic.c
AddModule mod_mime.c
AddModule mod_negotiation.c
AddModule mod_status.c
AddModule mod_info.c
AddModule mod_include.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_cgi.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_actions.c
AddModule mod_speling.c
AddModule mod_userdir.c
AddModule mod_alias.c
AddModule mod_rewrite.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_proxy.c
AddModule mod_expires.c
AddModule mod_usertrack.c
AddModule mod_unique_id.c
AddModule mod_so.c
AddModule mod_setenvif.c
<IfDefine SSL>
AddModule mod_ssl.c
</IfDefine>
AddModule mod_php4.c


-- 


@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is.......


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

Reply via email to