PHP and CivetWeb

Post Reply
User avatar

Topic author
martin
Valued Contributor
Posts: 73
Joined: Tue Mar 22, 2022 6:47 pm
Reputation: 0
Location: England
Status: Offline

PHP and CivetWeb

Post by martin » Fri Jun 16, 2023 4:58 pm

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]
Last edited by martin on Sat Jun 17, 2023 5:52 pm, edited 1 time in total.
Martin
  • Retired System Manager: VMS/UNIX/UNICOS/Linux.
  • Started on a VAX 11/782 in 1984 with VMS 3.6.

Post Reply