Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-10

Apache CGI and dbugintf

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Leonardo M. Ramé

Hi, I'm trying to debug a CGI using dbugintf and Lazarus's debugserver program with no luck. My debugserver isn't receiving any message.

Do I have to configure something in Apache to enable IPC? Should it work With just adding dbugintf and doing some SendDebug?

Reply by email

Michael Van Canneyt
to Leonardo M. Ramé
Leonardo M. Ram? wrote 5 lines
Hi, I'm trying to debug a CGI using dbugintf and Lazarus's debugserver program with no luck. My debugserver isn't receiving any message. Do I have to configure something in Apache to enable IPC? Should it work With just adding dbugintf and doing some SendDebug?

It depends. If it is under Linux, then the problem is probably that /tmp/fpcdebugserver
has mode 600 and is owned by you. The CGI runs with Apache server permissions and cannot write to it.

a

chmod 666 /tmp/fpcdebugserver

should do it.

I have a fix floating around that addresses this.
(server does the chmod by itself if it is public)

Michael.

Reply by email

Leonardo M. Ramé
to Michael Van Canneyt
Michael Van Canneyt wrote 24 lines
On Thu, 21 Oct 2010, Leonardo M. Ram? wrote: >Hi, I'm trying to debug a CGI using dbugintf and Lazarus's debugserver >program with no luck. My debugserver isn't receiving any message. > >Do I have to configure something in Apache to enable IPC? >Should it work With just adding dbugintf and doing some SendDebug? It depends. If it is under Linux, then the problem is probably that /tmp/fpcdebugserver has mode 600 and is owned by you. The CGI runs with Apache server permissions and cannot write to it. a chmod 666 /tmp/fpcdebugserver should do it. I have a fix floating around that addresses this. (server does the chmod by itself if it is public) Michael.

Thanks Michael, that worked.

Reply by email