Noob trying to get gunpg working

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

aladdinsane
Forum Commoner
Posts: 38
Joined: Fri Sep 05, 2003 2:15 pm

Post by aladdinsane »

Hi Stoker,

Thank-you very much it is now all working properly.

Best Regards

Keith
Abu Mujahid
Forum Newbie
Posts: 3
Joined: Thu Nov 06, 2003 12:33 am

Having Exactly the Same Problem

Post by Abu Mujahid »

Hello,

I have read through all of your posts and I am having exactly the same problem you did. My mail goes though but I cannot see anything when I receive it. The server is using Nobody as the user.

You said that you set up a cgi wrapper through cpanel, my hosting company also uses cpanel but I am not familiar with cgi, would you be able to give me some help on how to set it up.

Your help would be much appreciated.

Thank you in advance.

Yusuf
aladdinsane
Forum Commoner
Posts: 38
Joined: Fri Sep 05, 2003 2:15 pm

Post by aladdinsane »

Hi,

In the end I did not need to do this as the server was set-up to do it automatically. I think PHP was installed as a CGI. This meant I could place the script wherever I wanted.

Remember to set the permissions to 700.

Here's some info that may help. This is taken from the CPanel documentation -

"The CGI Wrap script creates a scgi-bin folder at the public_html level of your web site. This allows you to run scripts with your own user ID.

To install the Simple CGI Wrapper:

Click on the Simple CGI Wrapper link in the CGI Center area.

Your scgi-bin folder has now been set up. All cgi scripts that you would like to run under your own user ID should be placed in this folder."

Hope this helps.

Cheers

Keith
Abu Mujahid
Forum Newbie
Posts: 3
Joined: Thu Nov 06, 2003 12:33 am

Still not working

Post by Abu Mujahid »

Hi Keith,

Thanks for replying.

I got the SCGI-BIN setup thanks.

But it is still not working. I checked the phpinfo and got this

Server API Apache

SERVER_SOFTWARE
Apache/1.3.28 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.2 PHP/4.3.3 FrontPage/5.0.2.2634 mod_ssl/2.8.15 OpenSSL/0.9.6b

It is not he same as yours as it does not include PHP-CGI/0.1b.

I am new to all of this so I am not sure what all of the above info means but I see that yours says Server API - CGI and mine says Server API -Apache is that a problem?

When I ran the cgi script I got a page full of text.

scgiwrap: no execute permission on cgi script/binary

HTTP_ACCEPT=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
HTTP_ACCEPT_ENCODING=gzip, deflate
HTTP_ACCEPT_LANGUAGE=en-us
HTTP_CONNECTION=Keep-Alive
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
REMOTE_PORT=3155
SCRIPT_FILENAME=/usr/local/cpanel/cgi-sys/scgiwrap
SERVER_ADDR=66.78.7.13
SERVER_SOFTWARE=Apache/1.3.28 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.2 PHP/4.3.3 FrontPage/5.0.2.2634 mod_ssl/2.8.15 OpenSSL/0.9.6b
GATEWAY_INTERFACE=CGI/1.1
SERVER_PROTOCOL=HTTP/1.1
REQUEST_METHOD=GET
QUERY_STRING=
REQUEST_URI=/scgi-bin/atest.cgi
SCRIPT_NAME=/scgi-bin
PATH_INFO=/atest.cgi


Does this make any sense?

I am getting more lost by the minute...

Thanks,
Yusuf
Abu Mujahid
Forum Newbie
Posts: 3
Joined: Thu Nov 06, 2003 12:33 am

Getting closer

Post by Abu Mujahid »

Hi,

Well, some progress has been made.

I am now receiving an e-mail with an encrypted message. Problem is that I cannot decrypt it. When I try I get an error that says

The message is neither encrypted nor signed.

and when I try to import the key I get an error that says

The message does not contain any key.


Any ideas? Your help is much appreciated.

Yusuf
Post Reply