|
Posted by Sean on 10/22/74 11:34
David Johnstone wrote:
> Sean wrote:
> > You need to integrate php into apache by using mod php. You can test
> > for syntax errors by logging them and/or printing the error to the
> > screen, or using the -l option with the php binary.
>
> Hi Sean,
> thanks - I think my problem must be in that area.
> I thought I had already done that though.
> Under yast - Network Services - http Server the PHP4 module is
> installed and enabled. Isn't that enough? Do I have to also manually
> make some entries in the config file?
You have to edit some things in the httpd config file. Goto here if you
are using linux
http://php.mirrors.esat.net/manual/en/install.unix.apache2.php, or here
http://php.mirrors.esat.net/manual/en/install.unix.php and choose your
install guide.
> Also, if mod php is not installed, why is httpd executing my files at
> all? Shouldn't it in that case just be serving text and html files and
> not executing anything?
Its executing because you have this: #!/usr/bin/php.
You will not be able access from variables; you will not have access to
sessions, etc... When you have mod php working then remove that line
#!/usr/bin/php.
> Most puzzling.
Navigation:
[Reply to this message]
|