gildedpage
11-25-2001, 01:38 AM
Hello
I have sent the following message to my virtual host, who so far has not been very helpful in this matter, which has dragged on for some time. I wonder if anyone here has any suggestions about how to set this stuff up on a virtual host:
I have been attempting to set up my account to encrypt user input and mail it to myself in encrypted for using php. I have installed GnuPG im my user account and it is functional. However I have not been able to encrypt user data using php scripts because the encryption keys that I have created are in my user account and are not accessible to php, which runs as the web server user, or "nobody".
Would you please let me know how to create a keyring and place keys where the php user can access them?
Alternatively I have had suexec enabled on my account and attempted to run php scripts as cgi scripts so that they will run as my user name rather than "nobody". However, I have not been able to get a simple test script to work:
#!/usr/local/bin/php
$filename = "/home/gildedpg/public_html/mydata.txt";
$newfile = fopen($filename, "w+") or die("Couldn't create file.");
fclose($newfile);
$msg = "<p>File created!</p>";
<html>
<head>
<title></title>
</head>
<body>
<? echo "$msg"; ?>
</body>
</html>
I get the error: "CGIwrap Error: System Error: execv() failed
Error: No such file or directory (2)"
Which suggests that php is not located in the directory /usr/local/bin/.
However I have not been able to locate the correct directory.
Could you please let me know why this script does not work.
Thank you,
Scott Wagner
I have sent the following message to my virtual host, who so far has not been very helpful in this matter, which has dragged on for some time. I wonder if anyone here has any suggestions about how to set this stuff up on a virtual host:
I have been attempting to set up my account to encrypt user input and mail it to myself in encrypted for using php. I have installed GnuPG im my user account and it is functional. However I have not been able to encrypt user data using php scripts because the encryption keys that I have created are in my user account and are not accessible to php, which runs as the web server user, or "nobody".
Would you please let me know how to create a keyring and place keys where the php user can access them?
Alternatively I have had suexec enabled on my account and attempted to run php scripts as cgi scripts so that they will run as my user name rather than "nobody". However, I have not been able to get a simple test script to work:
#!/usr/local/bin/php
$filename = "/home/gildedpg/public_html/mydata.txt";
$newfile = fopen($filename, "w+") or die("Couldn't create file.");
fclose($newfile);
$msg = "<p>File created!</p>";
<html>
<head>
<title></title>
</head>
<body>
<? echo "$msg"; ?>
</body>
</html>
I get the error: "CGIwrap Error: System Error: execv() failed
Error: No such file or directory (2)"
Which suggests that php is not located in the directory /usr/local/bin/.
However I have not been able to locate the correct directory.
Could you please let me know why this script does not work.
Thank you,
Scott Wagner