perl monkey and cgiForum: Apps Topic: perl monkey and cgi started by: django Posted by django on Oct. 31 2005,12:54
I want to use dsl as a webserver. (monkey)with Monkey everything works great accept cgi I followd every rule like use ascci on cgi files, chmod 755 etc. the *.cgi was not find on this server bla bla bah! I chmodded the directories and cgi files to 755 I also did 777 but I keep getting the same result. I'm now running the website on XP with perl and it works! But I want to use DSL not that stupid XP I can't find a good help on the subject in this forum What's wrong with Perl It drives me crazy. Damn small linux..... AAAARGHRR Must get help! please! Posted by clacker on Oct. 31 2005,13:55
django, try this. I made the following test file as root called it tut.pl, and placed it into the /opt/monkey/cgi-bin directory (sudo beaver /opt/monkey/cgi-bin/tut.pl), :
then I ran sudo chmod 755 /opt/monkey/cgi-bin/tut.pl I started monkey, opened dillo, and went to 127.0.0.1/cgi-bin/tut.pl and there was my page. I hope this works for you as well. Posted by Django on Oct. 31 2005,14:53
I did wat you sugested and dillo and firefox produced nothing.I have that problem with my scripts to when I fiddle with chmod 777 it can;t be found when I make it 755 nothing happens I work from a harddisk install by the way. Posted by clacker on Oct. 31 2005,15:03
What version of dsl are you using? I don't have a hard drive install, but I can try that version with the liveCD if it helps.
Posted by django on Oct. 31 2005,15:09
I use 1.5 the latest and I tried it from cd also but the result is the same.I must be doeing somthing stupidly wrong. You give me hope though! Thanks for helping me. Posted by clacker on Oct. 31 2005,16:41
I don't know if it's something stupidly wrong, but I just tried it from the 1.5 liveCD and it worked fine. Let's try it a little differently just to make sure.Start the 1.5 dsl live cd. Under the right click menu, choose System->daemons->Monkey Web Server->monkey start Select the text below, open a new xshell and use the middle button to paste these lines:
Then dillo should open up with the test page (you might need to hit return after the last line is pasted). Did that work? It worked for me. The first part created the file (between sudo cat... and EOF). You might not have been saving your file into /opt/monkey/cgi-bin if you weren't root. The second part set the permission on the file. If you weren't root the chmod command might not have worked (the sudo <command> runs a command as root). As far as what you are doing wrong, does ls -l /opt/monkey/cgi-bin show your file in the cgi directory? Is it -rwxr-xr-x (chmod 755)? The /opt/monkey/cgi-bin directory is only writeable by root, so if you don't use sudo before your commands when dealing with that directory and things you want to put into it and modify, you might not have permission to do so. Keep that hope, you might need it later. Posted by django on Oct. 31 2005,18:06
I'm getting a little response now from my guestbook.cgibut ther'e still troubles go to < http://manouche.nl > and click on the wagon Maybe you know what's wrong Posted by clacker on Oct. 31 2005,18:19
It looks like you're trying to use a shockwave plugin? I don't have shockwave for dsl. It isn't in there as part of the liveCD distro, you know that right? I would assume that shockwave *.swf files go into the htdocs directory while cgi and perl files go into cgi-bin. swf files are more like gif or jpegs in that the browser (or its plugins) make them work. CGI files are run server side on machine you download the files from. Try putting files that need to run from your machine (CGI, perl, python, that sort of thing) into the /opt/monkey/cgi-bin directory and all other files (html, gif, jpg, mp3, swf) into the /opt/monkey/htdocs directory (chmod 664). Good luck! Posted by django on Oct. 31 2005,18:44
Ok I will try from the bottomThanks for the help. I will get this to work. I'll let you know. Posted by django on Nov. 07 2005,12:53
I tryed every possible chmod I could think of.I tryed placing the guestbook files in htdocs. Then adjusted the paths in the script. reinstalled the guestbook from scratch. It drives me craszy this guestbook. But I wo'n't quit on it. I moved my server from XP to DSL. feels like rocket sciense but I will never go back to XP Oh yeh I could take some other cgi guestbook. But hey it works under windows xp and it's suposed to be made for linux. No not me I'll get this son off a.... to work. It took me a lot of effort to get it like I wanted it to be. For the love of God I won't give in to Microsoft. Linux I love you. Posted by clacker on Nov. 07 2005,13:39
Can you tell use what the name of the script is and where you downloaded it from?
Posted by Django on Nov. 07 2005,17:07
Yes I figured it out, and I'm proud of it.After trying everything I figured that it had to be the server itself. Monkey just didn't do the job right. So I installed Apache and yep! Everything works fine now. I feel like I delivered a baby. Hope other people can take advantage of my strugle. Goodby XP Welcome Linux. And thanks again for your support clacker! Posted by Django on Nov. 07 2005,17:12
google for active guestbooktake the first link and you can d/l it there. If you can get the script working under Monkey I'll eat my hat. If you do than please mail me at prevoo@gmail.com Running all my stuff from the 50mb dsl would be the best thing. greetz Django |