Re: Problems with installation on windows98 with apache
| From: | Ryan Walker | Date: | Tue, 29 Jan 2002 09:32:43 +0000 |
| Subject: | Re: Problems with installation on windows98 with apache | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-5805@lists.php.net to get a copy of this message | ||
Personally, I prefer:
AddType application/x-httpd-php .php .php3 .php4 .phtml
AddType application/x-httpd-php-source .phps
Note the differentiation between php and php-source, and the inclusion of multiple extensions in a single type declaration.
Also, I see in your example that you included .html as a valid php type (though the line is commented out). This would cause all of your HTML pages to be parsed by the web server. Therefore, you should not include .html as a php type. Instead, make sure all your pages which contain php code use one of the php extensions identified in your AddType declaration.
Ryan
At 9:21 AM +0000 1/29/02, mark.broad@st.com wrote:
Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline ;Creation-Date="Tue, 29 Jan 2002 09:10:10 +0000" ;Modification-Date="Tue, 29 Jan 2002 09:21:10 +0000" Content-Transfer-Encoding: 7bit You need to uncomment/add a line(s) along the lines of : AddType application/x-httpd-php .php AddType application/x-httpd-php .phps AddType application/x-httpd-php .phtml AddType application/x-httpd-php .php4 Because this is how it knows when to use the action dependant on file extension type. Note only one per line. Here is an Example of embedding php in html - save as a .php file <html><body> <h1>Hello World</h1> <?php phpinfo(); ?> </body><html> _Hope this helps.______Mark.__________________________________________________problems.Hi, My name is Suzanne and I'm trying to install PHP4 and am having a fewstI have windows 98 I downloaded Apache I downloaded PHP4 windows installer I followed the wizard for apache and have tested to see that it works (when Iflashart it I see one MS-Dos window that says its running and one or two others----onto the screen and disapear. PHP is loaded into c:/Php In the Apache httpd.conf file I have put the following information ServerName localhost ScriptAlias /php/ ""c:/Php/"" (have also tried /php4/ ""c:/Php/"" ) #AddType application/x-httpd-php .php .phtml .html .php4 Action application/x-httpd-php /Php/php.exe ----------------------------------------------------------------- ---------------To test PHP I have tried creating the following in notepad <? phpinfo() ?> saved as phpinfo.php in htdocs of apache. Opened in IE6 as http://localhost/phpinfo.php gives screen with <? phpinfo() ?> If <html> <body> </html> </body> is added around the above I get a blank screen ----------------------------------------------------------------- ---------------I have also tried saving the well known Hello World. On my computer I get a blank screen. If I load it to my web page on free.fr which supports PHP I get Hello World. ----------------------------------------------------------------- -----------I guess my computer is not recognizing PHP. Can anyone see what could be going wrong. Thanks a million Suzanne_/_/_/_/_/_/_/_/ _/ _/ Regards, _/_/_/_/ _/ Mark Broad ..... _/ _/ _/_/_/_/ _/ (R)Senior Layout / CAD Support Engineer & Marlow Webmaster._ ____________________________________________ _ / )| STMicroelectronics Ltd. |( \ / / | Planar House, Parkway, Globe Park, | \ \ _( (_ | _ Marlow, Bucks. SL7 1YL. UK. _ | _) )_ (((\ \>| / ) E-Mail : mark.broad@st.com ( \ |</ /))) (\\\\ \|/ / \ \|/ ////) \ / Tel. : +44 (0)1628 896141 \ / \ _/ Fax. : +44 (0)1628 896179 \_ / / /| (Tina : 066 6141) |\ \/___/ |_______________________________________ (c) | \___\ Content-Type: text/plain Content-Disposition: inline ;Creation-Date="Mon, 28 Jan 2002 21:29:58 +0100" ;Modification-Date="Mon, 28 Jan 2002 21:29:58 +0100" Hi, My name is Suzanne and I'm trying to install PHP4 and am having a few problems. I have windows 98 I downloaded Apache I downloaded PHP4 windows installer I followed the wizard for apache and have tested to see that it works (when I start it I see one MS-Dos window that says its running and one or two others flash onto the screen and disapear. PHP is loaded into c:/Php In the Apache httpd.conf file I have put the following information ServerName localhost ScriptAlias /php/ ""c:/Php/"" (have also tried /php4/ ""c:/Php/"" ) #AddType application/x-httpd-php .php .phtml .html .php4 Action application/x-httpd-php /Php/php.exe --------------------------------------------------------------------- ----------- To test PHP I have tried creating the following in notepad <? phpinfo() ?> saved as phpinfo.php in htdocs of apache. Opened in IE6 as http://localhost/phpinfo.php gives screen with <? phpinfo() ?> If <html> <body> </html> </body> is added around the above I get a blank screen --------------------------------------------------------------------- ----------- I have also tried saving the well known Hello World. On my computer I get a blank screen. If I load it to my web page on free.fr which supports PHP I get Hello World. --------------------------------------------------------------------- ----------- I guess my computer is not recognizing PHP. Can anyone see what could be going wrong. Thanks a million Suzanne -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net For additional commands, e-mail: php-install-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net