CX/P and Apache

Xbase++ 2.0 Build 554 or later
Post Reply
Message
Author
User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

CX/P and Apache

#1 Post by rdonnay »

Is anyone using CX/P with Apache yet?

I need this because Apache is my main web server. In fact, it is used for this forum.

I want to rewrite my Donnay Software website as a CX/P application rather than an Xb2.Net application, but to do this I need to know how to install the Alaska CX/P runtime on the server and how to configure Apache for FastCGI. The answers on the Alaska forums are ambiguous and scary.

One of the things we have always done well on this forum is talk to each other in plain terms and showing how in simple steps. If I can figure out how to do this, I will then write a white paper which will help all others.
The eXpress train is coming - and it has more cars.

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: CX/P and Apache

#2 Post by rdonnay »

Here is what I have tried so far and the results:

1. I copied the CX/P runtime to a directory on the server named \WAMP\WWW\CXP.
These are all the files in the C:\Program Files (x86)\Alaska Software\cxp20\bin folder.

2. I ran the APACHECFG.EXE program supplied by Alaska Software.
C:\wamp\www\CXP>apachecfg -i -c=C:\wamp\bin\apache\apache2.2.22 -n=c:\wamp\www\cxp

This made a backup of the httpd.conf file in the C:\wamp\bin\apache\apache2.2.22\conf folder and updated the httpd.conf file with a lot of entries related to CXP.

3. I tried to restart the Apache server but got a fatal error, so it failed to restart.

4. I restored the httpd.conf file from the backup and restarted the server. It started ok. (PHEW!!!)

5. I noticed that the new httpd.conf file with the CXP entries tries to load a module named mod_fcgid.so.
I discovered that it was not in the Apache directories so I found it on the Apache download site and installed it in the c:\wamp\bin\apache\apache2.2.22\bin\iconv folder where all the other *.SO files were located.

6. Tried restarting the Apache server again with the CXP modifed httpd.conf and it failed to start with the same error.

That's all for now folks. :confusion-scratchheadblue:
The eXpress train is coming - and it has more cars.

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: CX/P and Apache

#3 Post by rdonnay »

I figured it out.

Look at the new subject:

http://bb.donnay-software.com/donnay/vi ... =15&t=1342
The eXpress train is coming - and it has more cars.

Post Reply