Jump to content
The Uniform Server Community
elshaddi

change server api to CGI

Recommended Posts

I'm trying to change the apache server to run in CGI application mode

so this:

Server API Apache 2.0 Handler

needs to read this way:

Server API CGI/FastCGI

I believe this is the correct way of wording what I need :D I'm trying to run php serial extensions and it requires the apache server to run in cgi mode.

snip from the installation guide:

Load it and look for information under Server API line (should be CGI/FastCGI),

Configuration File (php.ini) Path line; also win_serial_port module should appear in loaded

modules list.

To change how PHP is running, open Apache configuration file, example (change path):

C:\Apache\conf\httpd.conf

 

Comment this line:

#LoadModule php5_module "c:/Php/php5apache2.dll"

 

And add 2 new lines:

ScriptAlias /php/ "c:/php/"

Action application/x-httpd-php "/php/php-cgi.exe"

 

Save, and very important, restart Apache.

I can't add the php-cgi.exe because uniform doesn't seem to come with it. I added it, then just added the lines above and well, it didn't like that :angry:

Any ideas?

Thanks!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...