Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search.cgi outputs itself on the screen #2

Open
alanchangchina opened this issue Jan 14, 2015 · 2 comments
Open

search.cgi outputs itself on the screen #2

alanchangchina opened this issue Jan 14, 2015 · 2 comments

Comments

@alanchangchina
Copy link

I downloaded a latest version master.zip package and installed it in a Linux CentOS 6.4 box.
backed with MySQL 5.5
I run indexer -W and indexed 10000+ pages on my site.
Since I use Zend Framework to program the site and I use directive instead of .htaccess. So I use +ExecCGI to enable the search.cgi to run.
Also, I modified httpd.conf accordingly as the following:

ScriptAlias /cgi-bin/ "mysiteRoot/cgi-bin/"

<Directory "mysiteRoot/cgi-bin/">

After these procedures, I copied /usr/local/dpsearch/bin/search.cgi and /usr/local/dpsearch/etc/search.htm to "mysiteRoot/cgi-bin" and chown and chmod them.

Then I http://www.ypgogo.com/cgi-bin/search.cgi

I can see major part of search.cgi itself was thrown onto the screen with so many errors. Such can't load template.

Is there any instruction that I can write a search to query the index? Please advise. Thanks your efforts!

@Maxime2
Copy link
Owner

Maxime2 commented Jan 15, 2015

Hi,

make sure you have configure cgi scripts execution in mysiteRoot/cgi-bin
directory. You can make it with the following directives:

AddHandler cgi-script .cgi
Options +ExecCGI

See more details on this page, e.g.:
http://www.microhowto.info/howto/allow_cgi_scripts_within_the_document_root_of_an_apache_webserver.html

On 14 January 2015 at 13:11, alanchangchina [email protected]
wrote:

I downloaded a latest version master.zip package and installed it in a
Linux CentOS 6.4 box.
backed with MySQL 5.5
I run indexer -W and indexed 10000+ pages on my site.
Since I use Zend Framework to program the site and I use directive instead
of .htaccess. So I use +ExecCGI to enable the search.cgi to run.
Also, I modified httpd.conf accordingly as the following:

ScriptAlias /cgi-bin/ "mysiteRoot/cgi-bin/"

After these procedures, I copied /usr/local/dpsearch/bin/search.cgi and
/usr/local/dpsearch/etc/search.htm to "mysiteRoot/cgi-bin" and chown and
chmod them.

Then I http://www.ypgogo.com/cgi-bin/search.cgi

I can see major part of search.cgi itself was thrown onto the screen with
so many errors. Such can't load template.

Is there any instruction that I can write a search to query the index?
Please advise. Thanks your efforts!


Reply to this email directly or view it on GitHub
#2.

http://au.linkedin.com/in/dpmaxime/

@alanchangchina
Copy link
Author

Dear Maxim,

A thousand thanks!
I find out I made a stupid mistake: I haven't installed mod_cgi for Apache!

Now the search function works!

I want to make a humble donation to you to express my gratitude.
However I find no such information. Please publish it on github or simply let me know.

Thanks.

Alan Chang from China

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants