Previous Thread
Next Thread
Print Thread
Hop To
Anonymous
Unregistered
Anonymous
Unregistered
I have been running this fine on outside servers via ftp upload. I decided to bring it in house and host using my iMac and OS 10.2/Apache.
I have my site set up OK, and I also have a very complicated perl script installed and running - a News Updater. So, I know my stuff is set up correctly.
I installed the UBB601 per instructions- just dragging the files into the correct places, then chmod-ing them all to the correct permisions.
Once I was done, I tried to call the cp.cgi script and got the 500 Internal Server Error. I know this usually means the path to perl is wrong (it's not), or the permissions are set wrong. I then decided to run that ubb6_test.cgi script comes with the program. I get the same exact error when I try to run that. I even set it's permisions to 777, still get the 500 error...
Does anyone have any idea why this would be? Has anyone set this up locally on an OSX machine? Like I said, I have other scripts running- with the same path to Perl, etc. Is there a section for OS X instructions?
Any help would be greatly appreciated!

Anonymous
Unregistered
Anonymous
Unregistered
Check the Apache error log (/private/var/log/httpd/error_log by default), as it often provides useful errors.

If you're installing in a user directory, make sure that ExecCGI is enabled. There are a few hidden .htaccess files that can be a pain.

Do the hello.cgi and hello.pl files work?

For the record - we only know that versions 6.3.1 and higher can be safely installed on OS X, and the first version with "official" support will be 6.6, to be released later this summer. Prior versions are either untested or contain problems that may prevent them from working properly.

--
Charles Capps
UBB.classic™ Developer
Having problems? Open up a support ticket!

Anonymous
Unregistered
Anonymous
Unregistered
OK, I will look in the error logs when I get home tonight and post the results here. Thw page is running from the root, not a user directory- plus I have other scripts running just fine from the same place.
As far as what versions will run on OS X, the script really has nothing to do with OS X. It is running on Unix- and Apache, just like any other server.
I dont have the hello.cgi script, but again- my other scripts run fine, so it's a little wierd. I am running the site on port 8000...maybe that has something to do with it??

Anonymous
Unregistered
Anonymous
Unregistered
This is the error I get:

[Mon Jul 14 19:27:10 2003] [error] (2)No such file or directory: exec of /Library/WebServer/CGI-Executables/cp.cgi failed
[Mon Jul 14 19:27:10 2003] [error] [client 192.168.1.1] Premature end of script headers: /Library/WebServer/CGI-Executables/cp.cgi


Same thing for the test.cgi:

[Mon Jul 14 19:27:10 2003] [error] [client 192.168.1.1] Premature end of script headers: /Library/WebServer/CGI-Executables/cp.cgi
[Mon Jul 14 19:28:50 2003] [error] (2)No such file or directory: exec of /Library/WebServer/CGI-Executables/ubb6_test.cgi failed
[Mon Jul 14 19:28:50 2003] [error] [client 192.168.1.1] Premature end of script headers: /Library/WebServer/CGI-Executables/ubb6_test.cgi

Here is what happens when I run the test-cgi script (not a UBB script):


CGI/1.0 test script report:

argc is 0. argv is .

SERVER_SOFTWARE = Apache/1.3.27 (Darwin)
SERVER_NAME = bruce-morins-computer.local
GATEWAY_INTERFACE = CGI/1.1
SERVER_PROTOCOL = HTTP/1.1
SERVER_PORT = 8000
REQUEST_METHOD = GET
HTTP_ACCEPT = */*
PATH_INFO =
PATH_TRANSLATED =
SCRIPT_NAME = /cgi-bin/test-cgi
QUERY_STRING =
REMOTE_HOST =
REMOTE_ADDR = 192.168.1.1
REMOTE_USER =
AUTH_TYPE =
CONTENT_TYPE =
CONTENT_LENGTH =

Anonymous
Unregistered
Anonymous
Unregistered
I have definitely sucessfully installed UBB.classic (post-6.3) on Mac OS X 10.2.x client. Unfortunately, I don't believe I have a UBB 6.0.x archive anywhere that I can try. Sorry!

-jlb

Anonymous
Unregistered
Anonymous
Unregistered
(2)No such file or directory almost always means that either the path to Perl is incorrect, or the script wasn't uploaded in ASCII. But you didn't upload the script, you copied it right onto the machine.

When unzipping the archive (assuming you used a .zip), did you use the -a switch? Otherwise, did you ensure that the file line endings are correct?

--
Charles Capps
UBB.classic™ Developer
Having problems? Open up a support ticket!

Anonymous
Unregistered
Anonymous
Unregistered
Not sure what an -a switch is. I opened the files with Stuffit, copied them to my HD, then dropped them in the cgi-bin...

Anonymous
Unregistered
Anonymous
Unregistered
That explains that then. They surely have the wrong line endings. You can either use the unzip utility at the command line via the terminal, or use another utility to convert the line endings from DOS to Unix format.

If you don't have any such utilities, I'd look at enabling the FTP service on the server (if disabled), then performing a traditional install via FTP (even though it's a local machine)

--
Charles Capps
UBB.classic™ Developer
Having problems? Open up a support ticket!

Anonymous
Unregistered
Anonymous
Unregistered
Well, It doesnt seem to have anything to do with the unzipping. I unzipped on another machine- one I used before to upload to a server from.
I guess it has to do with uploading. Maybe by dragging the files locally, they don't "upload" as ASCI.

I am not sure what I need to do to ftp in. I activated ftp in the system prefs, but cant log in. I am on port 8000, so when I try to ftp in, I use my address, the correct log/pass, and non-standard port 8000...any ideas?

Anonymous
Unregistered
Anonymous
Unregistered
OK...I ftp'd in, was able to upload everything correctly. I was very excited to see the UBB set-up pop up.

Now, here is another problem...

THe cgi-bin in OS X Apache is called CGI-Executables. Most scripts recognize this as "cgi-bin" when the scripts are run. UBB does not. When you set up the variable (paths) in the initial set-up, UBB detects the CGI paths as CGI-Executables. SO, when you then start to make accounts, etc- the URL is www.xxx.com/CGI-Executables/xx.cgi. This does not work- because it needs to be cgi-bin/xx.cgi.

I tried to go back to the initial set-up and changed all the CGI paths from CGI_Executabes to cgi-bin, but UBB wont let that happen- it says the path is wrong.

Now, what I am thinking (hoping), is that these paths are written to one of the cgi files, and I could go in manually and change them to the correct, workable cgi-bin.

What do you think??

Anonymous
Unregistered
Anonymous
Unregistered
Yep. That, in my experience, is a problem with the way Apache is configured in Mac OS X client.

There may be an easier way... But, what I've done in the past is modify the httpd.conf file (/etc/httpd/httpd.conf) to change the CGI-Executables to a new cgi-bin directory. You may have to edit it as "sudo" and then you will have to restart Apache to see the changes take effect (most easily done in X by just unchecking the web sharing box and re-checking it in the System Preferences' Sharing pane).

Possibly not the most elegant thing to do (especially if you have a complex httpd configuration), but it seems to get the job done. <img src="https://www.ubbcentral.com/boards/images/graemlins/wink.gif" alt="" />

-jlb

P.S. Have you installed the PHP package?

Anonymous
Unregistered
Anonymous
Unregistered
Yea, I suppose I could do that. but I am afraid it would screw up my other script. I am also running Article Manager on the site, and it is already all set up.
I am hoping that I could modify the vars_config.cgi file, but whenever I do, it brings me back to the initial set-up page again.
I realize OS X is new and all, but maybe someone here from tech support could at least let me know if there is a way around this...???

Anonymous
Unregistered
Anonymous
Unregistered
Replace the vars_config file with a stock copy from the zip, and be sure to put members_test.cgi back in the Members directory... that will allow you to make a "clean" new installation with the right paths/URLs. (No members, topics, forums, etc, will be lost.)

--
Charles Capps
UBB.classic™ Developer
Having problems? Open up a support ticket!

Anonymous
Unregistered
Anonymous
Unregistered
Right, I know that. Like I said, when I replace that file, it does send me back to the first set-up screen. Then when I put in "cgi-bin" instead of "CGI-Executables" for the cgi paths, it says the path is wrong. UBB wants to see the exact path- which is "CGI-Executables", but THEN when you start configure the UBB more, the path is wrong- because it is "CGI_Executables", and not cgi-bin!!

Anonymous
Unregistered
Anonymous
Unregistered
Have you changed your Apache configuration? By default, /cgi-bin is a ScriptAlias for the CGI-Executables directory, so there shouldn't be any problems whatsoever with getting to the scripts using it...

--
Charles Capps
UBB.classic™ Developer
Having problems? Open up a support ticket!

Anonymous
Unregistered
Anonymous
Unregistered
Charles,

terrapinstation said that he/she is running "Article Manager" and doesn't want to screw up the existing scripts by changing the apache conf file. <img src="https://www.ubbcentral.com/boards/images/graemlins/frown.gif" alt="" />

However, I don't see a way around it... except possibly by using a symlink to the CGI-Executables directory. But I don't know how Apache would handle that.

-jlb

Anonymous
Unregistered
Anonymous
Unregistered
That would be something that is set in the config... I don't recall the default.

--
Charles Capps
UBB.classic™ Developer
Having problems? Open up a support ticket!

Anonymous
Unregistered
Anonymous
Unregistered
However, I don't see a way around it... except possibly by using a symlink to the CGI-Executables directory. But I don't know how Apache would handle that.

Yea, this is starting to get aggravating. The problem here is with the name CGI-Executables. Again, when UBB sets up- it uses this path:

/Library/WebServer/CGI-Executables

and wont accept a path with cgi-bin in the name. When I go to register- the URL is:

http://terrapinstation.ods.org:8000/CGI-Executables/ultimatebb.cgi

See, that doesnt work. But since the UBB had to be set up with that path, I am stuck.

I tries to modify the vars_config.cgi file manualy, after I made it through the initial set-up, but then every time the UBB calls the cp.cgi file, it reverts back to the initial login.

So, I hope this explains things better. All I want to know if there is something I can do within the realms of UBB set-up or modification od files that will fix this.

If not, I guess I will try to rename the CGI-Executables directory. I am hesitant because I dont want to screw anything up...

Anonymous
Unregistered
Anonymous
Unregistered
Don't use CGI-Executables as a URL, it's only a path. http://terrapinstation.ods.org:8000/cgi-bin/ultimatebb.cgi works just fine. Well, the script doesn't work, but the URL pulls up the script.

--
Charles Capps
UBB.classic™ Developer
Having problems? Open up a support ticket!

Anonymous
Unregistered
Anonymous
Unregistered
<img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" /> Aha! Now that is the answer I was looking for! Works fine now. Thanks so much.

Now, does anyone know what I need to do within my httpd config so I can connect to my site without inputing the :8000 (I had to change the port due to port 80 being blocked)??

Anonymous
Unregistered
Anonymous
Unregistered
Well, if something is blocking your port 80, then you can't very well use it... talk to your network admin about the issue.

--
Charles Capps
UBB.classic™ Developer
Having problems? Open up a support ticket!


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Bots
by Outdoorking - 04/13/2024 5:08 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
Who's Online Now
1 members (Geoff), 865 guests, and 153 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)