Greetings,
 I have chosen to rid all of our machines of Windows/ NT, etc but that's
another story. I've seen where you might be in trouble here. I'll try and help -
read below...

> Hello!
> 
> I think PHP is the best language for Webbing and that is why I deceided to begin
> learning it.
> I have an Amd 350 Mhz computer with a 4.3Gb Harddisk and 64 Mb of Ram. I use
> Windows98 and even if I knew Apache is working very good with Linux I didn't have
> enough space to install il (Red Hat Linux).So I tried Apache on Windows.
> I have followed the next steps as advised by the install.txt from PHP package.
> 
> 1.unzip php-4.0.6-Win32.zip at c:\php
> 2.install Apache 1.3.20 in c:\Apache\Apache
> 3.copy php.ini-dist (from c:\php) in c:\windows and I rename it to php.ini 4.edit
> php.ini this way:
>             extension_dir=c:\php
>             doc_root=c:\Apache\Apache
> 5.I want to use PHP as a module in Apache so I move php4ts.dll in
> c:\windows\system
> 6.edit the httpd.conf-the configuration file of the Apache server:
>    I add the next two lines:
>      I.after Dynamic Shared Object (DSO) Support
>         Load Module php4_module c:/php/sapi/php4apache.dll
>      II.after AddType aplication/x-tar .tgz
>         AddType aplication/x-httpd-php .php .html

Consider the following:

# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index.  Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
    DirectoryIndex index.html index.htm index.php default.html default.htm
</IfModule>

    #
    # AddType allows you to tweak mime.types without actually editing it, or to
    # make certain files to be certain types.
    #
    # For example, the PHP 3.x module (not part of the Apache distribution - see
    # http://www.php.net) will typically use:
    #
   
   AddType application/x-httpd-php3 .php3
   AddType application/x-httpd-php3-source .phps

    #
    # And for PHP 4.x, use:
    #

   AddType application/x-httpd-php .php
   AddType application/x-httpd-php .php4
   AddType application/x-httpd-php-source .phps

   AddType application/x-tar .tgz


Please also note that these lines are *above* the .tgz line (matters?).


One of the problems I noticed was that you *mixed* .html and php. They are
*not* the same types of code and this *will* screw Apache up. Thy the above
and see if that doesn't fix it - I'm sure it will. :-)

Best Wishes:
 C. Hutchinson
H.R. Communications Corp.
http://www.dnswatch.com
http://www.1command.com




> After this I start Apache in its console where I can see written:
>      Apache/1.3.20  <Win32> PHP/4.0.6 running
> But a simple script like this isn't working:
> <html>
>     <head>
>         <title>Example</title>
>     </head>
>     <body>
> 
>         <?php
>         echo "Hi, I'm a PHP script!";
>         ?>
> 
>     </body>
> </html>
> saved as test.php I get a blank screen in my IE 5.0 browser.
> I tried to use also the CGI version of PHP but it isn't working as well. I have
> used 2 packeges downloaded recently from php.net .
> 
> "PHP 4.1.0 zip package [4,783Kb] - 12 December 2001
> (CGI binary plus server API versions for Apache, AOLserver,
> ISAPI and NSAPI. MySQL support built-in, many extensions included, packaged as
> zip)"
> 
> "PHP 4.1.0 installer [918Kb] - 12 December 2001
> (CGI only, MySQL support built-in, packaged as Windows installer to install and
> configure PHP, and automatically configure IIS, PWS and Xitami, with manual
> configuration for other servers. N.B. no external extensions included)"
> 
> 
> What do you think I should do?
> Is there any other solution than installing Linux on my computer?
> 
>                                                         I expect an answer
> with a right solution
> 
> Knibalu' (Mihnea Cioca)
>                                                    17 years old boy from
> eastern Europe.
> 
> 
> Hanlon's Razor:
> Never attribute to malice that which is adequately explained by stupidity.
> 
> 
> -- 
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]



............................................
This email was sent using DNSWATCH WebMail.
   "Get YOUR account today!"
http://www.dnswatch.com/dnswm112/



-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to