If you are looking for a way to host or run a PHP page on YAWS server using PHP FastCGI process, just follow the below steps.
- Place the PHP file/s in doc root folder
- Change the yaws.conf file to redirect PHP script to run on FastCGI service.
<server localhost>
port = 9009
listen = 0.0.0.0
docroot = "C:\Program Files (x86)\Yaws-2.0.2/test"
auth_log = true
appmods = <cgi-bin, yaws_appmod_cgi>
php_handler = <fcgi, 127.0.0.1:54321>
</server>
- Start the YAWS server and confirm the errors.
- Start the php FastCGI service.
- To start on Windows:
- Download the XAMPP application from the below link and install it.
- https://www.apachefriends.org/download.html
- c:\xampp\php>php-cgi.exe -b 127.0.0.1:54321
No comments:
Post a Comment