Can anyone tell me how to set apache environment for websnap apache module?
I followed the direction from Deploy.txt and believed that I set up Apache
correctly. I loaded my apache dll successfully.
But whenever I tried to run my websnap application from web browser, I see
the following page only.
< On my web browser >
Welcom
Login Logout
* All page modules are not secured with login component.
misconfigured httpd.conf file.
"Jae H. Lee" <jaehu...@riskmetrics.com> wrote in message
news:3cab76a1$1_2@dnews...
< System Environment >
Windows 2000 / Apache / MySQL 3.2x stable version
* Apache / MySQL are running in a service mode.
Delphi version 6.0 Enterprise with patch 2.
1. First, I created WebSnap application for Web Debugging Tool. Worked
o.k.
2. Create a new project with Apache DSO module option. Include all files
(.dfm, .pas, html) that I made.
3. Rename module name in project file. Specify the content type.
exports
apache_module name 'myweb_module';
begin
Application.Initialize;
ContentType := 'myweb-handler';
Application.Run;
end.
4. Compile again, and I get a new DLL file.
5. Make a new folder right under Apache directory. I created
'mywebmodules'.
6. Copy DLL, *.HTML to this 'mywebmodules' directory
7. Stop Apache service and open 'httpd.conf' file. Add the following lines
at the end of file
LoadModule myweb_module mywebmodules/MyWeb_Apache_Dist.dll
<Location /test>
SetHandler myweb-handler
</Location>
8. Start Apache service again, and open 'http://localhost/test' from your
browser. This will call Apache DSO module specified in 'httpd.conf' file.
** To deploy **
Register these two files first on the server using TregSvr.exe program (in
borland\bin directory)
1. stdvcl40.dll
2. WebBrokerScript.tlb
Since I used MySQL with DBExpress components and TClientDataSet component
from DBAccess pannel,
the following files have to be copied to 'windows'\system32 directory.
- LIBMYSQL.DLL
- DBEXPMYSQL.DLL
- MIDAS.DLL
Everything is working ok so far on my PC.
If there is anything incorrect or missing, please post your comments so that
we all can share the idea.
- Jae from New York -
"Jae H. Lee" <jaehu...@riskmetrics.com> wrote in message
news:3cab76a1$1_2@dnews...