Page 1 of 1

PHP and CivetWeb

Posted: Fri Jun 16, 2023 4:58 pm
by martin
Hi,

I've got civetweb running nicely in its basic form. I've installed PHP, but can't get the web version running. I've tried:
  1. Adding a "shebang" line to the source file
  2. Copying PHP$ROOT:[csws]php-cgi.exe into the civetweb tree
but all to no avail. The VMS release notes only cover setting up mod_php.exe for Apache and the CivetWeb user manual doesn't help with VMS and only barely with PHP. Can anyone help with a suggestion or else a pointer to fuller documentation?

Thanks,
Martin

1) The following "shebang" lines have been tried:

Code: Select all

#!php$root:[cws]php-cgi.exe
#!/php$root/csws/php-cgi.exe
EDIT: I've added cgi_pattern **.php$ to the configuration and tried both of the above again. Still no joy.

2) The following locations have been tried:

Code: Select all

civetweb$root:[bin]php-cgi.exe
civetweb$root:[htdocs]
civetweb$root:[include]
civetweb$root:[lib]
civetweb$root:[resources]