Re: Help... Apache 1.3.26 with php 4.2.2 .php pages appear as text pages..

From: Date: Sun, 25 Aug 2002 03:36:25 +0000
Subject: Re: Help... Apache 1.3.26 with php 4.2.2 .php pages appear as text pages..
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-8207@lists.php.net to get a copy of this message
Are you running apache as a service? if you are, look under services in your control panel and see if apache properties shows that php is running. if it does copy the php.ini that you edited in the windows directory to your php directory. see if this works. somthing else you might try is puting the php4ts.dll into the sapi folder. Is there a php.ini in your php directory? I think I read somewhere that the php.ini in your php directory take president over one in the windows directory. just a few things to try until someone that knows what there doing comes along. "Aaron Wolski" <aaronjw@martekbiz.com> wrote in message news:007501c24a18$b347e8a0$0901a8c0@aaron... Hi All, I'm new to the list and I am having a helluva time trying to figure this out. First off.. I am running Win XP Pro with Apache 1.3.26 and php 4.2.2 . Now.. this is what I have done per the INSTALL php.net webpage 1) Downloaded Apache and got it running. I can access .html pages under localhost. 2) Downloaded PHP and unzipped and installed it into c:\php 3) Moved the php4ts.dll file into the c:\windows\system32 directory 4) Renamed the php.ini-recommended to php.ini 5) Moved the renamed php.ini file into the c:\windows directory 6) Edited the php.ini file to the following: doc_root = "c:\Apache\htdocs" extension_dir = "c:\php\extensions" 7) Stopped Apache 8) Edited the http.conf file to the following: LoadModule php4_module c:/php/sapi/php4apache.dll AddModule mod_php4.c AddType application/x-httpd-php .php Note: These files are in their appropriate locations within the file (Load the module first then Add the module) 9) Restarted Apache 10) Created a PHP (info.php) file in the htdocs directory to read: <?php echo phpinfo(); ?> 11) Loaded a browser to view but it does not work. The page is displaying the code as if it were a .txt file.. meaning the php code I entered appears exactly like that when I load up the page in a browser. Can ANYONE help here? I read and read and read and one thing say this.. while another says that. Very confusing. Thanks all. Regards, Aaron

« previous php.install (#8207) next »