Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
 
For 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
perl script

Posted by SonnyZA (SonnyZA), 24 February 2005
Greetings to all,

I have come a bit further with installing / editing Perl scripts and done 5 or 6 without any problems.
But I am busy installing a classified board on a web site.

I've done ok so far and the script is ok, it shows up, i can browse etc. But when I go to post a test ad, it gives me a blank page after i hit "Post my ad" when it should register the ad.

Now out of the little expercience i got this past month or so, I know normally its a chmod problem or files is not where it should be. But i went carefully in chmod all the filess correctly, and place my files in the right places. I edit the .cgi file, which I tried change to .pl as well, and i'm sure i got my paths correct this time. I uploaded it correctly in ASCII/Binary as well.

I know its difficult to sit there and try to figure out what's wrong but maybe i can get advice.


http://www.share.parhosting.com/cgi-bin/classifieds/classifieds.cgi?

According to my host,my path is:

/home/sonny/public_html/

I tried it with and without the "sonny" part, it changes nothing.

thanks again


Posted by admin (Graham Ellis), 25 February 2005
And "view source" is blank too.

The way that Perl is implemented for web use means that it provides very few clues indeed to a visitor to your site (such as myself) if it fails.   The idea being that it should not leave a trail of evidence through which a malicious hacker could learn what's happening under the covers.   Which makes it very hard indeed fo me to suggest what's going wrong ...

a) Do you have access to the web and error logs for your server account?  If you have access to the error log expecially in this case, it may well tell you what the problem is.

b) Have you run the Perl script that I ran when I tried to post an advert at the command prompt?  What did it do?

c) Have you checked database or write file permissions on the server at the location at which adverts should be stored?  I think your problem is in that area, since your server correctly rejected a post when I failed to complete mandatory boxes on your form.

I'm pretty sure that the issue is in the area mentioned in "c" above, and if I were looking to sort this out as my job, I would proceed by adding a few traces into the Perl in that area and cutting the problem down to specific areas of the code if I couldn't see the error logs.

Posted by SonnyZA (SonnyZA), 25 February 2005
Thank you for replying...

Unfortunately I can't access error logs it's not included in this free package.  The classsified board where you tried topost, I tried it there as well, and it gave me a blank white scren. However, if I go to

File>>Edit with Notepad

It gives met the html code for the page, and it shows there that "0" posts has been added. But the screen is blank.

I looked again at my permissions, especially where my ads must be stored. It is all correct, however, I see no reference in the documation where the ads are being stored although I think its in the "ads.counter" file, which has it's permissions and it's folder permission set up correctly. But "counter"? Maybe it just count the ads and not store them? But thats all writeable files I got with the script.

I think I must try writing something directly in it and see what happens

Thanks again sir....

Posted by SonnyZA (SonnyZA), 25 February 2005
Hello Sir Graham

Its working now!   You gave me the right clues.

Quote:
c) Have you checked database or write file permissions on the server at the location at which adverts should be stored?  I think your problem is in that area, since your server correctly rejected a post when I failed to complete mandatory boxes on your form.


So Ive learned it must created .html pages with the ads on it. S I checked the configuration again. On their help file they gave this to change to my path:

Quote:
$classdir = "/usr/www/users/domain/classifieds";

# $htmldir should point to the full URL of the new directory that you created for
# this program where the ads.counter file and the HTML pages for the ads will be
# stored.


That's totally wrong, right?

So i changed my settings, and it works now.

Thanks again.....  

PS: If i want to link this forum and the homepage of "well house", is there maybe a picture or something or special link I can use?

Posted by admin (Graham Ellis), 26 February 2005
on 02/25/05 at 14:05:43, SonnyZA wrote:
That's totally wrong, right?


Yes.  Providers of web space set things up in many, many different places so that the best that an author can do is provide you with examples of the sort of directory name that will appear in places like this ... you have to work out what the actual directory should be!

So i changed my settings, and it works now.

Quote:
PS: If i want to link this forum and the homepage of "well house", is there maybe a picture or something or special link I can use?


That's an excellent (and new) question.  The answer is "there probably should be, but there isn't".   I'll answer further over the weekend - probably with a suggestion.

Posted by admin (Graham Ellis), 26 February 2005
on 02/25/05 at 14:05:43, SonnyZA wrote:
If i want to link this forum and the homepage of "well house", is there maybe a picture or something or special link I can use?


You got me thinking with that question.  Yes - I'm delighted to have folks link to us (I've see that have done so already, thanks!) and I've put a page here on OpenTalk to make it very easy for people to do so - there's link text, a logo, etc, at http://www.wellho.net/cgi-bin/opentalk/YaBB.pl?board=news;action=display;num=1109417103

I've also provided the ability for people to add links easily from a logo to other areas of our site, and that's at http://www.wellho.net/resources/linktous.html.

Many thanks for your suggestion / idea.  I think it's something that I've overlooked in the past and should have provided many moons ago!

Posted by SonnyZA (SonnyZA), 26 February 2005
Hello

Thank you that will be great. I will start to insert this link to all the web sites I can.
Most of the web sites I design and upload for ppl, are on special conditions. They only pay me about $55 and I give them space from a free hosting plan. They only pay me to design and upload their site, register a domain etc. But with another condition, that I may insert a few links on the web site i design and maintain for them.

So in ALL these sites. I will insert these links, and update those I already inserted with an image.

Once again I thank you and say it's a pleasure knowing you.

Peace

Wynand





This page is a thread posted to the opentalk forum at www.opentalk.org.uk and archived here for reference. To jump to the archive index please follow this link.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2024: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho