Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-18-2009, 04:39 AM   #1
Registered: Feb 2009
Posts: 83

Rep: Reputation: 25
boa with php


i installed boa on a small arm-architecture, it runs well. I also installed php5-cgi to run php-scripts on my device.

but, of course, i'd like to use php inside of boa. I tried much things with the configuration-file, but nothing worked.

I readed, that i need a php-wrap?!?

But i am a newbie at linux and i try to learn all this things.

thank you

sorry for my bad english

best regards toredo
Old 11-17-2009, 07:23 AM   #2
Senior Member
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Would be nice if you showed some of the configurations you tried. Anyways the wrapper thing is called CGI Common Gateway Interface. I checked on the manual of boa and found two ways one could acomplish this.

Use the ScriptAlias directive

DocumentRoot /var/www
ScriptAlias cgi-bin /var/www/cgi-bin
Or with the AddType directive
AddType application/x-httpd-cgi .cgi
Dunno if this one will work

The main important thing is how the cgi files are build up. The program needs to be executable by the webserver (chmod a+x ./asdf.cgi) and use the shabang way to be run ( dunno how to phrase that good but an example will mak it clear)

PHP Code:
The first line needs to have the path to the binary that will interpret the file.

I hope you set up the error log of boa and don't forget to put the CGI log directive into it.

Regards Zhjim


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
AJAX and boa issue simon_qwl Linux - Server 1 03-31-2007 01:43 PM
weird boa behaviour thorgal31 Linux - Networking 3 03-17-2006 09:01 AM
Boa startup error arpanet1969 Linux - Software 0 09-11-2005 05:27 PM
BOA users or developers can help me? gaddargarson Programming 1 08-28-2005 04:08 AM
help on boa webserver blackzone Linux - Networking 5 10-27-2004 10:32 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:14 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration