From: Moonhawk K. <moo...@st...> - 2003-10-10 00:29:38
|
Hi, I'm having trouble getting the application to run propoerly on the Stanford University server. Here is a step by step description: First, I simply download a copy of phpicalendar-0,9.4, expand it and copy the entire folder to my CGI folder. At Stanford university, members are given CGI-BIN directories that are separate from the web (WWW) directories. The absolute path to the CGI directory is: /afs/ir/users/m/o/moonhawk/cgi-bin/ The web path is: http://cgi.stanford.edu/~moonhawk/cgi-bin/ After copying over the phpicalendar-0.9.4 folder, typing in the following URL (which I know is to be correct): http://cgi.stanford.edu/~moonhawk/cgi-bin/phpicalendar-0.9.4/ results in the following error message: The sbox program encountered an error while processing this request. Couldn't find a valid script to execute in /chroot/afs/ir.stanford.edu/users/m/o/moonhawk/cgi-bin/phpicalendar-0.9.4/ sbox version 2.00 Second, typing in the following: http://cgi.stanford.edu/~moonhawk/cgi-bin/phpicalendar-0.9.4/index.php gives me the following error message: Script must be readable and executable by owner: /chroot/afs/ir.stanford.edu/users/m/o/moonhawk/cgi-bin/phpicalendar-0.9.4/index.php Third, issuing "chmod a+rx *.php" within the phpicalendar-0.9.4 directory to make the files executable and accessing the following URL: http://cgi.stanford.edu/~moonhawk/cgi-bin/phpicalendar-0.9.4/index.php results in the following error message: exec of /afs/ir.stanford.edu/users/m/o/moonhawk/cgi-bin/phpicalendar-0.9.4/index.php failed (Exec format error) The server is a SUN Solaris 8 running php 4.3.1 according to: http://www.stanford.edu/services/cgi/ Is phpicalendar only designed for Mac OS X? Or am I doing something wrong. It really looks like a great set of scripts. I would very much appreciate your help! Moonhawk Fiat Lux, Fiat Pax, Fiat Justitia Moonhawk KIM Ph.D. Candidate Dept of Political Science Stanford University Stanford, CA 94305-6044 www.stanford.edu/~moonhawk |
From: Waitman C. G. I. <wa...@em...> - 2003-10-15 01:12:30
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, Did you make sure to include the #!/usr/bin/php on the first line? This needs to be _before_ the <?php Ex: !#/usr/bin/php <?php //php code ?> (just guessing that is where php is, might be /usr/local/bin/php or something else. - If you can ssh try "which php" or hunt around for it. Otherwise contact sys admin for location) Take care, Waitman Gobble EMK Design Telephone (714) 522-2528 Toll Free (877) 290-2768 http://emkdesign.com ....................................... - -----Original Message----- From: wai...@ma... [mailto:wai...@ma...] On Behalf Of Moonhawk Kim Sent: Thursday, October 09, 2003 5:30 PM To: php...@li... Subject: [Waitman] [PHPiCalendar-DEV] Installation Problems Hi, I'm having trouble getting the application to run propoerly on the Stanford University server. Here is a step by step description: First, I simply download a copy of phpicalendar-0,9.4, expand it and copy the entire folder to my CGI folder. At Stanford university, members are given CGI-BIN directories that are separate from the web (WWW) directories. The absolute path to the CGI directory is: /afs/ir/users/m/o/moonhawk/cgi-bin/ The web path is: http://cgi.stanford.edu/~moonhawk/cgi-bin/ After copying over the phpicalendar-0.9.4 folder, typing in the following URL (which I know is to be correct): http://cgi.stanford.edu/~moonhawk/cgi-bin/phpicalendar-0.9.4/ results in the following error message: The sbox program encountered an error while processing this request. Couldn't find a valid script to execute in /chroot/afs/ir.stanford.edu/users/m/o/moonhawk/cgi-bin/phpicalendar-0. 9.4/ sbox version 2.00 Second, typing in the following: http://cgi.stanford.edu/~moonhawk/cgi-bin/phpicalendar-0.9.4/index.php gives me the following error message: Script must be readable and executable by owner: /chroot/afs/ir.stanford.edu/users/m/o/moonhawk/cgi-bin/phpicalendar-0. 9.4/index.php Third, issuing "chmod a+rx *.php" within the phpicalendar-0.9.4 directory to make the files executable and accessing the following URL: http://cgi.stanford.edu/~moonhawk/cgi-bin/phpicalendar-0.9.4/index.php results in the following error message: exec of /afs/ir.stanford.edu/users/m/o/moonhawk/cgi-bin/phpicalendar-0.9.4/ind ex.php failed (Exec format error) The server is a SUN Solaris 8 running php 4.3.1 according to: http://www.stanford.edu/services/cgi/ Is phpicalendar only designed for Mac OS X? Or am I doing something wrong. It really looks like a great set of scripts. I would very much appreciate your help! Moonhawk Fiat Lux, Fiat Pax, Fiat Justitia Moonhawk KIM Ph.D. Candidate Dept of Political Science Stanford University Stanford, CA 94305-6044 www.stanford.edu/~moonhawk - ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ Phpicalendar-devel mailing list Php...@li... https://lists.sourceforge.net/lists/listinfo/phpicalendar-devel -----BEGIN PGP SIGNATURE----- Version: PGP 8.0.2 iQA/AwUBP4ye8vhva8X77el2EQLVbwCg4Dhsc/Nwn0R8T8iC4+YJLPU2YuoAoKLI daG06OoHYYKV3P0gKvMoKGgz =xIFb -----END PGP SIGNATURE----- |
From: Waitman C. G. I. <wa...@em...> - 2003-10-15 01:16:30
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Whoops, my example had a typo. Should have been #!/usr/bin/php as in the first sentence, not !#/usr/bin/php Waitman Gobble EMK Design Telephone (714) 522-2528 Toll Free (877) 290-2768 http://emkdesign.com ....................................... - -----Original Message----- From: wai...@ma... [mailto:wai...@ma...] On Behalf Of Waitman C. Gobble, II Sent: Tuesday, October 14, 2003 6:12 PM To: php...@li... Subject: RE: [Waitman] [PHPiCalendar-DEV] Installation Problems -----BEGIN PGP SIGNATURE----- Version: PGP 8.0.2 iQA/AwUBP4yf4vhva8X77el2EQL9cACbBayNA8L7K+ZUEfTzb66tEC+qEHsAoPoS xQu5d/roemFKl4eGYUEvc9Le =vPXf -----END PGP SIGNATURE----- |
From: Wesley M. <we...@we...> - 2003-10-15 04:23:33
|
Hi Moonhawk, I clipped your message body because it sounds like you're trying to execute the *.php files as CGI scripts. They are not CGI scripts, but PHP files. Like JSP or ASP, you need PHP support in your web server software. What you want to do is place the phpicalendar directory into your regular public_html directory. Then make sure PHP is supported by your web server. If you've done that, then going to http://www.stanford.edu/~moonhawk/phpicalendar-0.9.4/ will bring up your calendar. Later, -- Wesley Miaw, Wesley Miaw Consulting http://www.wesman.net/ |
From: Waitman C. G. I. <wa...@em...> - 2003-10-15 04:35:32
|
Hello, Well, it sounded to me like he was running php as a CGI (which indeed you can do). Companies like XO do this on their vhost servers, you have to run your php out of cgi-bin with the she-bang at the top line. And of course, it needs to be CHMOD 755. However, it truly depends upon how you have your server set up. If you have php compiled in as a module, then the advice of Wesley Miaw is sound. Waitman Gobble EMK Design Telephone (714) 522-2528 Toll Free (877) 290-2768 http://emkdesign.com ....................................... -----Original Message----- From: wai...@ma... [mailto:wai...@ma...] On Behalf Of Wesley Miaw Sent: Tuesday, October 14, 2003 9:23 PM To: php...@li... Subject: [Waitman] Re: [PHPiCalendar-DEV] Installation Problems Hi Moonhawk, I clipped your message body because it sounds like you're trying to execute the *.php files as CGI scripts. They are not CGI scripts, but PHP files. Like JSP or ASP, you need PHP support in your web server software. What you want to do is place the phpicalendar directory into your regular public_html directory. Then make sure PHP is supported by your web server. If you've done that, then going to http://www.stanford.edu/~moonhawk/phpicalendar-0.9.4/ will bring up your calendar. Later, -- Wesley Miaw, Wesley Miaw Consulting http://www.wesman.net/ ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ Phpicalendar-devel mailing list Php...@li... https://lists.sourceforge.net/lists/listinfo/phpicalendar-devel |