PDA

View Full Version : CentralAd Software and Chmod


jbroder
01-25-1999, 02:10 AM
I am trying to compile some software I bought
that I am supposed to compile with a cgi file
in my cgi-bin. I managed to get past the 500
error at one point, but can't get the script
to write the files it is supposed to put in
my cgi-bin. I have read all the messages
on chmod. I understand chmod 777 on the cgi-bin is not allowed, but when I run compile.cgi in the cgi-bin it doesn't produce
the files that it is supposed to produce.

Should I try to run this file somewhere else/
Or did I miss a step?

Thanks!
Jon




------------------
guitartricks.com

Terra
01-25-1999, 03:27 AM
Hmmm, you are trying to compile C++ programs with a C compiler...

I have 'cc1plus', but it only comes with egcs and pgcc...

Try changing all your 'gcc' to 'egcs' and see if that helps...

Central Ad Software is so b0rked to get compiled right... http://www.aota.net/ubb/frown.gif One day they might get a clue and actually write a good 'configure' script...

OK -- I went the extra mile tonight (as I don't always have time to fix client's 3rd party CGI scripts), I created a 'terra' subdirectory and did my own test compiles in there... The 'egcs' did the trick - if you don't mind all their errors from braindead prototypes... http://www.aota.net/ubb/frown.gif

Sure this wasn't written for Irix or AIX... *evil grin*

--
Terra
--Jolt Cola, breakfast of champions--
FutureQuest.net

jbroder
01-26-1999, 12:01 AM
Terra,
Thanks!

That was way above and beyond the call of duty...

I did my own version of your edit and it worked for me, too. I also figured out that
chmod 755 is the permission setting of choice
at futurequest.

lowriskjeff
01-05-2000, 08:55 PM
OK, time to dredge up a very old thread here. I am trying to move Central Ad Pro 3.0j here from my old host. And of course, tech support from Central Ad does not exist (a hint to everyone thinking about buying this software: don't spend a cent until you look at their support forums).

So I know just enough to get into trouble. I did modify my compile.cgi as suggested above (by replacing "gcc" with "egcs") but that didn't help. I am getting a 500 error.

I also have a "makefile" from Central Ad that they say to use from my telnet prompt if I get errors running "compile.cgi" from my browser. I tried the makefile via telnet, and I still get errors:

-------
[investormap@FQ-Seven:/big/dom/xinvestormap/cgi-bin ]$ make
gcc -w -o admcent.cgi admcent.cpp
gcc: installation problem, cannot exec `cc1plus': No such file or directory
make: *** [admcent] Error 1
-------

Does anyone have any suggestions?

TIA,
Jeff

elite
01-05-2000, 09:41 PM
Just an FYI, as I have heard some bad things about that script, you might want to check out http://phpwizard.net/phpAds/

That is a php ad program that is feature rich and is open source so it only gets better. Oh ya and the kicker is its free and has a nice support via a mailing list..

lowriskjeff
01-05-2000, 11:38 PM
Just an FYI, as I have heard some bad things about that script, you might want to check out http://phpwizard.net/phpAds/

That is a php ad program that is feature rich and is open source so it only gets better. Oh ya and the kicker is its free and has a nice support via a mailing list..
Thanks for the pointer. I have been using Central Ad on my previous host for over a year, and I am well aware of all the shortcomings. But right now I have over 200 pages coded for Central Ad, so I would like to get it up and running.

phpAds looks like something I will want to check out, but there isn't much documentation and I would rather use Central Ad right now then climb another learning curve in the middle of a change of servers.

Jeff

jbroder
01-06-2000, 02:55 AM
I have centralad working on my site. It took a while to get it right. I think the kicker was using
<!--#include virtual=&quot;/cgi-bin/ssirand.cgi&quot;-->
instead of
<!--#exec cmd=&quot;/cgi-bin/ssirand.cgi&quot;-->
#exec is not allowed on futurequest.

Did you try running it from the command line?
big/dom/xdomainname/cgi-bin/adsys/ssirand.cgi

That was a good troubleshooting tool for me.

Let me know if this helps.

Jon


------------------
guitartricks.com

lowriskjeff
01-06-2000, 01:19 PM
Ahh, success! I was able to get them to compile...turns out I had made the changes Terra suggested (changing gcc to egcs) in my compile.cgi file that I attempted to use from my browser, but not in my makefile that I was using from the telnet prompt.

Now I am getting 500 server errors whenever I try to run any of the cgi's that were created. I imagine this is a permissions problem, but can't really get it figured out. Suggestions?

Jeff

jbroder
01-06-2000, 02:08 PM
my ssirand.cgi file is chmod 755.

lowriskjeff
01-06-2000, 05:51 PM
Jon,

That was it!

thanks,
Jeff

lowriskjeff
01-07-2000, 12:54 AM
Jon,

Thanks for the tip, buy my problem is getting the program installed. I have not been able to compile the files.

Jeff