On Mon, 14 May 2001 18:16:08 +0200, you wrote:

>Hi Alan,
>
>What is the utility of the file php.ini if i can now work with php4
>without it ?

Certainly you can run php without the ini file, but then everything goes to
default. If you want to set your own parameters for php, then you need the
.ini file. For example, if you want to load the interbase dll when php runs,
then you need to use the 'extension=' line in the ini file. You can, if you
want, load it later in code, but the ini file will make sure it gets loaded
right at the top. Without the ini file, you have no other choice than to do
it all in code.

>And into the httpd.cong file of Apache what is the utility of adding
>the row:
>LoadModule php4_module c:/Webshare/Scripts/php/sapi/php4apache.dll

There is no reason to add the loadmodule line (that I know of) if you are
using the scriptalias wording. It's an 'either/or' thing. As for myself, I'm
using the loadmodule method rather than the scriptalias method. My php.ini
sits in the windows directory, and is used properly by php. I run the
extension directory from under the php directory, and I have an alias (not a
scriptalias) set up in httpd.conf that tells apache where the php scripts
are. Everything seems to be working as it should.

>if php4 is loaded automatically by Apache from c: ?

Apache only loads php if it is told to do so. Either 'loadmodule', or
scriptalias. The way I understand it is that if you use the loadmodule line,
php is loaded when apache starts up. The other way, I it loads when it's
needed (guesswork, really, on my part).

>I solved my problem after following some advices only reinstalling
>PHP on drive c:
>I installed PHP into:
>
>c:\Webshare\Scripts\php
>
>I think that there is a bug. PHP4.0.4EasyWindows works fine only if

Sounds to me like easywindows is more trouble than it's worth.

>Thank you for being been a nice interlocutor and for its positive
>effect for my problem solving.

My pleasure. Truth is, I'm pretty new to php myself, and I ran into problems
getting it set up too - doing it on my own and trying to get it running a
little differently than the docs suggested. I think I understand it a bit
better now, and I've got it set up so that I can run it under either Apache
or PWS without having to do anything other than bring up the right server.

I wish I'd discovered this mailing list a bit sooner myself.

Alan

>Alan Popow wrote:
>
>> On Sun, 13 May 2001 22:54:42 +0200, you wrote:
>>
>> I assume you set up an alias (scriptalias probably) in your httpd.conf file.
>> Have you tried running the test.php by using the url:
>>
>> http://localhost/php/test.php
>>
>> Or, if your alias is /php4/, then:
>>
>> http://localhost/php4/test.php
>>
>> If that doesn't work, then I can't really see what you might be doing wrong.
>> If you like, send my your httpd.conf and your php.ini and I'll take a look
>> at them (no guarantees, though).
>>
>> Alan
>>
>> >Hi Alan
>> >Thank you, but i have  not yet resolved the problem, even if i reduced it.
>> >So, i follewed what you said to me about doc_root. Furthermore i became
>> >aware of one my mistake: i put inside the file httpd.conf of Apache  the row
>> >
>> >Port 3000
>> >
>> >that is wrong. This is right
>> >
>> >Port 80
>> >
>> >So Apache works fine.
>> >I did the change inside  the file php.ini that  is placed into C:\Windows.
>> >So I have:
>> >doc_root=D:\Inetpub\Scripts\Php;
>> >
>> >and Document_root of Apache is:
>> >D:\programs\Apache Groups\Apache
>> >If i call http://localhost/  then i see the home page,
>> >if i call  http://localhost/test.php then the brouser goes into a  waiting
>> >state. I read in the low bar:
>> >Connect: host localhost contacted.Waiting for replay.
>> >The file test.php, coming with PHP, i put into
>> >D:\Inetpub\Scripts and also into D:\Inetpub\Scripts\PHP. If i do CTRL+ALT+CANC i
>> >see PHP
>> >in the list of processes PHP so i deduce thai PHPm is running,  but the
>> >brouser   stays waiting.
>> >Thank you for your kindness, but i still need help for solving this problem.
>> >Thank you in advance.
>> >
>> >
>> >Alan Popow wrote:
>> >
>> >> On Sun, 13 May 2001 02:03:45 +0200, you wrote:
>> >>
>> >> I haven't tried running easywindows installer, so I'm just winging it here
>> >> ignoring whatever the installer might be changing from defaults (though I
>> >> doubt it changes the httpd.conf file defaults).
>> >>
>> >> Remember that apache thinks by default that the document root is at
>> >> ....../apache/htdocs, and if you are using the normal iis setup, then your
>> >> index.html is likely not there. In the httpd.conf file, make sure that the
>> >> document root is pointing to the right place.
>> >>
>> >> Then, assuming you added the appropriate lines to Apache's httpd.conf file,
>> >> open up your php.ini and make sure that the doc_root path points to where
>> >> your scripts are.
>> >>
>> >> ie: doc_root = "d:\inetpub\scripts\php" (if that's where they are - in other
>> >> words, where is test.php located).
>> >>
>> >> Alan
>> >>
>> >> >Hello everyone
>> >> >I  am trying  to install PHP4 with Apache 1.3.19 following the procedure
>> >> >that I see
>> >> > in http://php.weblogs.com/easywindows using the
>> >> > PHP4.0.4easywindows Installer. There is also a mistake,
>> >> > "C:/inetpub/scripts/php/" is wrong, "D:/inetpub/scripts/php/" is right
>> >> >.
>> >> >However, when I run Apache and call http://localhost/ i don't see the
>> >> >home page index.html,
>> >> >furthermore if I call test.php with http://localhost/test.php
>> >> >i don't see any page. In both cases I have a file not found messagge.
>> >> >Can someone explain this behavior. I would like to use PHP with
>> >> >Apache on Win98. How do i do ? Can someone help me?
>> >> >thank you in advance
>> >>
>> >> --
>> >> PHP Windows 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]
>>
>> --
>> PHP Windows 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]


--
PHP Windows 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