You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@vcl.apache.org by Mani Shafa'atDoost <ma...@gmail.com> on 2011/11/13 21:17:08 UTC
secrets.php
Hello,
When I run testsetup.php, I just receive following errors:
Error: fopen(http://localhost/vcl/testsetup.php?includesecretstest=1):
failed to open stream: Permission denied
PHP version: 5.3.8
Including .ht-inc/secrets.php ...
- unable to include .ht-inc/secrets.php - this is probably due to a
syntax error in .ht-inc/secrets.php
- skipping tests for contents of .ht-inc/secrets.php
Including .ht-inc/conf.php ...
- cannot include .ht-inc/conf.php when including of .ht-inc/secrets.php
fails
Testing for required php extensions ...
- All required modules are installed
Testing mcrypt ...
- Cannot test encryption without $mcryptkey and $mcryptiv from
.ht-inc/secrets.php
checking openssl encryption keys ...
- Cannot test private key file without $pemkey from .ht-inc/secrets.php
- successfully created public key from public key file
Testing openssl encryption ...
- cannot test encryption without a valid private key
Testing for existance of dojo directory ...
- dojo directory exists
- dojo directory is readable
Checking value of PHP display_errors ...
- display_errors: *disabled*
- NOTE: Displaying errors in a production system is a security risk;
however,
while getting VCL up and running, having them displayed makes debugging
a little easier. Edit your php.ini file to modify this setting.
Done
my secrets.php file is like this:
<?php
$vclhost = 'localhost'; # name of mysql server
$vcldb = 'vcl'; # name of mysql database
$vclusername = 'mani'; # username to access database
$vclpassword = 'mani'; # password to access database
$mcryptkey = 'password'; # random password - won't ever have to type it so
make it long
$mcryptiv = '12345678'; // must be 8 hex chars
$pemkey = 'password'; # random passphrase - same as given to genkeys.sh -
should be long
?>
can you guide me, what should i do to fix this file?
Best Regards
Mani
Re: secrets.php
Posted by Josh Thompson <jo...@ncsu.edu>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Mani,
Whenever you're ready to try to debug this issue again, let us know.
Josh
On Tuesday November 29, 2011, Mani Shafa'atDoost wrote:
> Josh,
>
> No, my problem didn't solve. So, I just skipped that step for now and I am
> using from another version of VCL. once I solve this problem, I will post
> it here.
>
> Best Regards
> Mani
>
> On Tue, Nov 29, 2011 at 4:34 PM, Josh Thompson
<jo...@ncsu.edu>wrote:
> >
> > Mani,
> >
> > I'm guessing you got this working since you emailed about the XML RPC
> > example.
> > Would you mind sharing what you needed to do to get it to work so others
> > that
> > might encounter the same problem will have an idea what to do?
> >
> > Thanks,
> > Josh
> >
> > On Tuesday November 15, 2011, Mani Shafa'atDoost wrote:
> > > I just checked the file and there is no error on this file, but when I
> >
> > try
> >
> > > to read my secrets.php from other folders, I can't retrieve any data
> > > but
> >
> > I
> >
> > > can open the file.
> > >
> > > On Tue, Nov 15, 2011 at 12:28 PM, Josh Thompson
> >
> > <jo...@ncsu.edu>wrote:
> > > > Mani,
> > > >
> > > > Everything looks good in the secrets.php file you included below. I
> > > > would suggest running the secrets.php script from the command line
> >
> > using
> >
> > > > the php command line interpreter:
> > > >
> > > > php secrets.php
> > > >
> > > > Any problems in it would then be reported.
> > > >
> > > > Also, just to be sure, you are talking about secrets.php and not
> > > > secrets-default.php, right?
> > > >
> > > > Josh
> > > >
> > > > On Sunday November 13, 2011, Mani Shafa'atDoost wrote:
> > > > > Hello,
> > > > >
> > > > > When I run testsetup.php, I just receive following errors:
> > > > > Error:
> > > > > fopen(http://localhost/vcl/testsetup.php?includesecretstest=1
> >
> > ):
> > > > > failed to open stream: Permission denied
> > > > > PHP version: 5.3.8
> > > > > Including .ht-inc/secrets.php ...
> > > > >
> > > > > - unable to include .ht-inc/secrets.php - this is probably due
> > > > > to
> >
> > a
> >
> > > > > syntax error in .ht-inc/secrets.php
> > > > > - skipping tests for contents of .ht-inc/secrets.php
> > > > >
> > > > > Including .ht-inc/conf.php ...
> > > > >
> > > > > - cannot include .ht-inc/conf.php when including of
> > > >
> > > > .ht-inc/secrets.php
> > > >
> > > > > fails
> > > > >
> > > > > Testing for required php extensions ...
> > > > >
> > > > > - All required modules are installed
> > > > >
> > > > > Testing mcrypt ...
> > > > >
> > > > > - Cannot test encryption without $mcryptkey and $mcryptiv from
> > > > > .ht-inc/secrets.php
> > > > >
> > > > > checking openssl encryption keys ...
> > > > >
> > > > > - Cannot test private key file without $pemkey from
> > > >
> > > > .ht-inc/secrets.php
> > > >
> > > > > - successfully created public key from public key file
> > > > >
> > > > > Testing openssl encryption ...
> > > > >
> > > > > - cannot test encryption without a valid private key
> > > > >
> > > > > Testing for existance of dojo directory ...
> > > > >
> > > > > - dojo directory exists
> > > > > - dojo directory is readable
> > > > >
> > > > > Checking value of PHP display_errors ...
> > > > >
> > > > > - display_errors: *disabled*
> > > > > - NOTE: Displaying errors in a production system is a security
> >
> > risk;
> >
> > > > > however,
> > > > > while getting VCL up and running, having them displayed makes
> > > >
> > > > debugging
> > > >
> > > > > a little easier. Edit your php.ini file to modify this setting.
> > > > >
> > > > > Done
> > > > >
> > > > > my secrets.php file is like this:
> > > > >
> > > > > <?php
> > > > > $vclhost = 'localhost'; # name of mysql server
> > > > > $vcldb = 'vcl'; # name of mysql database
> > > > > $vclusername = 'mani'; # username to access database
> > > > > $vclpassword = 'mani'; # password to access database
> > > > >
> > > > > $mcryptkey = 'password'; # random password - won't ever have to
> > > > > type it
> > > >
> > > > so
> > > >
> > > > > make it long
> > > > > $mcryptiv = '12345678'; // must be 8 hex chars
> > > > >
> > > > > $pemkey = 'password'; # random passphrase - same as given to
> >
> > genkeys.sh
> >
> > > > > - should be long
> > > > > ?>
> > > > >
> > > > > can you guide me, what should i do to fix this file?
> > > > >
> > > > >
> > > > > Best Regards
> > > > > Mani
> > > >
> > > > - --
> > > > - -------------------------------
> > > > Josh Thompson
> > > > VCL Developer
> > > > North Carolina State University
> > > >
> > > > my GPG/PGP key can be found at pgp.mit.edu
> >
> > - --
> > - -------------------------------
> > Josh Thompson
> > VCL Developer
> > North Carolina State University
> >
> > my GPG/PGP key can be found at pgp.mit.edu
- --
- -------------------------------
Josh Thompson
VCL Developer
North Carolina State University
my GPG/PGP key can be found at pgp.mit.edu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
iEYEARECAAYFAk7WkNgACgkQV/LQcNdtPQOlYACeKdQE03QMPzXgRrv1fZjMnBi5
jzQAn326ss8mUj0Z0R/nF4Ww7BghWe/q
=VOze
-----END PGP SIGNATURE-----
Re: secrets.php
Posted by Mani Shafa'atDoost <ma...@gmail.com>.
Josh,
No, my problem didn't solve. So, I just skipped that step for now and I am
using from another version of VCL. once I solve this problem, I will post
it here.
Best Regards
Mani
On Tue, Nov 29, 2011 at 4:34 PM, Josh Thompson <jo...@ncsu.edu>wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Mani,
>
> I'm guessing you got this working since you emailed about the XML RPC
> example.
> Would you mind sharing what you needed to do to get it to work so others
> that
> might encounter the same problem will have an idea what to do?
>
> Thanks,
> Josh
>
> On Tuesday November 15, 2011, Mani Shafa'atDoost wrote:
> > I just checked the file and there is no error on this file, but when I
> try
> > to read my secrets.php from other folders, I can't retrieve any data but
> I
> > can open the file.
> >
> > On Tue, Nov 15, 2011 at 12:28 PM, Josh Thompson
> <jo...@ncsu.edu>wrote:
> > > Mani,
> > >
> > > Everything looks good in the secrets.php file you included below. I
> > > would suggest running the secrets.php script from the command line
> using
> > > the php command line interpreter:
> > >
> > > php secrets.php
> > >
> > > Any problems in it would then be reported.
> > >
> > > Also, just to be sure, you are talking about secrets.php and not
> > > secrets-default.php, right?
> > >
> > > Josh
> > >
> > > On Sunday November 13, 2011, Mani Shafa'atDoost wrote:
> > > > Hello,
> > > >
> > > > When I run testsetup.php, I just receive following errors:
> > > > Error: fopen(http://localhost/vcl/testsetup.php?includesecretstest=1
> ):
> > > > failed to open stream: Permission denied
> > > > PHP version: 5.3.8
> > > > Including .ht-inc/secrets.php ...
> > > >
> > > > - unable to include .ht-inc/secrets.php - this is probably due to
> a
> > > > syntax error in .ht-inc/secrets.php
> > > > - skipping tests for contents of .ht-inc/secrets.php
> > > >
> > > > Including .ht-inc/conf.php ...
> > > >
> > > > - cannot include .ht-inc/conf.php when including of
> > >
> > > .ht-inc/secrets.php
> > >
> > > > fails
> > > >
> > > > Testing for required php extensions ...
> > > >
> > > > - All required modules are installed
> > > >
> > > > Testing mcrypt ...
> > > >
> > > > - Cannot test encryption without $mcryptkey and $mcryptiv from
> > > > .ht-inc/secrets.php
> > > >
> > > > checking openssl encryption keys ...
> > > >
> > > > - Cannot test private key file without $pemkey from
> > >
> > > .ht-inc/secrets.php
> > >
> > > > - successfully created public key from public key file
> > > >
> > > > Testing openssl encryption ...
> > > >
> > > > - cannot test encryption without a valid private key
> > > >
> > > > Testing for existance of dojo directory ...
> > > >
> > > > - dojo directory exists
> > > > - dojo directory is readable
> > > >
> > > > Checking value of PHP display_errors ...
> > > >
> > > > - display_errors: *disabled*
> > > > - NOTE: Displaying errors in a production system is a security
> risk;
> > > > however,
> > > > while getting VCL up and running, having them displayed makes
> > >
> > > debugging
> > >
> > > > a little easier. Edit your php.ini file to modify this setting.
> > > >
> > > > Done
> > > >
> > > > my secrets.php file is like this:
> > > >
> > > > <?php
> > > > $vclhost = 'localhost'; # name of mysql server
> > > > $vcldb = 'vcl'; # name of mysql database
> > > > $vclusername = 'mani'; # username to access database
> > > > $vclpassword = 'mani'; # password to access database
> > > >
> > > > $mcryptkey = 'password'; # random password - won't ever have to type
> > > > it
> > >
> > > so
> > >
> > > > make it long
> > > > $mcryptiv = '12345678'; // must be 8 hex chars
> > > >
> > > > $pemkey = 'password'; # random passphrase - same as given to
> genkeys.sh
> > > > - should be long
> > > > ?>
> > > >
> > > > can you guide me, what should i do to fix this file?
> > > >
> > > >
> > > > Best Regards
> > > > Mani
> > >
> > > - --
> > > - -------------------------------
> > > Josh Thompson
> > > VCL Developer
> > > North Carolina State University
> > >
> > > my GPG/PGP key can be found at pgp.mit.edu
> - --
> - -------------------------------
> Josh Thompson
> VCL Developer
> North Carolina State University
>
> my GPG/PGP key can be found at pgp.mit.edu
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.17 (GNU/Linux)
>
> iEYEARECAAYFAk7VT9kACgkQV/LQcNdtPQNNpwCbBmJtGW0tjBDpcKdrC6NUIuPS
> pmAAn32C4ftb78Vp5p+7FlGX8GgBno+l
> =iMFp
> -----END PGP SIGNATURE-----
>
Re: secrets.php
Posted by Josh Thompson <jo...@ncsu.edu>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Mani,
I'm guessing you got this working since you emailed about the XML RPC example.
Would you mind sharing what you needed to do to get it to work so others that
might encounter the same problem will have an idea what to do?
Thanks,
Josh
On Tuesday November 15, 2011, Mani Shafa'atDoost wrote:
> I just checked the file and there is no error on this file, but when I try
> to read my secrets.php from other folders, I can't retrieve any data but I
> can open the file.
>
> On Tue, Nov 15, 2011 at 12:28 PM, Josh Thompson
<jo...@ncsu.edu>wrote:
> > Mani,
> >
> > Everything looks good in the secrets.php file you included below. I
> > would suggest running the secrets.php script from the command line using
> > the php command line interpreter:
> >
> > php secrets.php
> >
> > Any problems in it would then be reported.
> >
> > Also, just to be sure, you are talking about secrets.php and not
> > secrets-default.php, right?
> >
> > Josh
> >
> > On Sunday November 13, 2011, Mani Shafa'atDoost wrote:
> > > Hello,
> > >
> > > When I run testsetup.php, I just receive following errors:
> > > Error: fopen(http://localhost/vcl/testsetup.php?includesecretstest=1):
> > > failed to open stream: Permission denied
> > > PHP version: 5.3.8
> > > Including .ht-inc/secrets.php ...
> > >
> > > - unable to include .ht-inc/secrets.php - this is probably due to a
> > > syntax error in .ht-inc/secrets.php
> > > - skipping tests for contents of .ht-inc/secrets.php
> > >
> > > Including .ht-inc/conf.php ...
> > >
> > > - cannot include .ht-inc/conf.php when including of
> >
> > .ht-inc/secrets.php
> >
> > > fails
> > >
> > > Testing for required php extensions ...
> > >
> > > - All required modules are installed
> > >
> > > Testing mcrypt ...
> > >
> > > - Cannot test encryption without $mcryptkey and $mcryptiv from
> > > .ht-inc/secrets.php
> > >
> > > checking openssl encryption keys ...
> > >
> > > - Cannot test private key file without $pemkey from
> >
> > .ht-inc/secrets.php
> >
> > > - successfully created public key from public key file
> > >
> > > Testing openssl encryption ...
> > >
> > > - cannot test encryption without a valid private key
> > >
> > > Testing for existance of dojo directory ...
> > >
> > > - dojo directory exists
> > > - dojo directory is readable
> > >
> > > Checking value of PHP display_errors ...
> > >
> > > - display_errors: *disabled*
> > > - NOTE: Displaying errors in a production system is a security risk;
> > > however,
> > > while getting VCL up and running, having them displayed makes
> >
> > debugging
> >
> > > a little easier. Edit your php.ini file to modify this setting.
> > >
> > > Done
> > >
> > > my secrets.php file is like this:
> > >
> > > <?php
> > > $vclhost = 'localhost'; # name of mysql server
> > > $vcldb = 'vcl'; # name of mysql database
> > > $vclusername = 'mani'; # username to access database
> > > $vclpassword = 'mani'; # password to access database
> > >
> > > $mcryptkey = 'password'; # random password - won't ever have to type
> > > it
> >
> > so
> >
> > > make it long
> > > $mcryptiv = '12345678'; // must be 8 hex chars
> > >
> > > $pemkey = 'password'; # random passphrase - same as given to genkeys.sh
> > > - should be long
> > > ?>
> > >
> > > can you guide me, what should i do to fix this file?
> > >
> > >
> > > Best Regards
> > > Mani
> >
> > - --
> > - -------------------------------
> > Josh Thompson
> > VCL Developer
> > North Carolina State University
> >
> > my GPG/PGP key can be found at pgp.mit.edu
- --
- -------------------------------
Josh Thompson
VCL Developer
North Carolina State University
my GPG/PGP key can be found at pgp.mit.edu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
iEYEARECAAYFAk7VT9kACgkQV/LQcNdtPQNNpwCbBmJtGW0tjBDpcKdrC6NUIuPS
pmAAn32C4ftb78Vp5p+7FlGX8GgBno+l
=iMFp
-----END PGP SIGNATURE-----
Re: secrets.php
Posted by Mani Shafa'atDoost <ma...@gmail.com>.
I just checked the file and there is no error on this file, but when I try
to read my secrets.php from other folders, I can't retrieve any data but I
can open the file.
On Tue, Nov 15, 2011 at 12:28 PM, Josh Thompson <jo...@ncsu.edu>wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Mani,
>
> Everything looks good in the secrets.php file you included below. I would
> suggest running the secrets.php script from the command line using the php
> command line interpreter:
>
> php secrets.php
>
> Any problems in it would then be reported.
>
> Also, just to be sure, you are talking about secrets.php and not
> secrets-default.php, right?
>
> Josh
>
> On Sunday November 13, 2011, Mani Shafa'atDoost wrote:
> > Hello,
> >
> > When I run testsetup.php, I just receive following errors:
> > Error: fopen(http://localhost/vcl/testsetup.php?includesecretstest=1):
> > failed to open stream: Permission denied
> > PHP version: 5.3.8
> > Including .ht-inc/secrets.php ...
> >
> > - unable to include .ht-inc/secrets.php - this is probably due to a
> > syntax error in .ht-inc/secrets.php
> > - skipping tests for contents of .ht-inc/secrets.php
> >
> > Including .ht-inc/conf.php ...
> >
> > - cannot include .ht-inc/conf.php when including of
> .ht-inc/secrets.php
> > fails
> >
> > Testing for required php extensions ...
> >
> > - All required modules are installed
> >
> > Testing mcrypt ...
> >
> > - Cannot test encryption without $mcryptkey and $mcryptiv from
> > .ht-inc/secrets.php
> >
> > checking openssl encryption keys ...
> >
> > - Cannot test private key file without $pemkey from
> .ht-inc/secrets.php
> > - successfully created public key from public key file
> >
> > Testing openssl encryption ...
> >
> > - cannot test encryption without a valid private key
> >
> > Testing for existance of dojo directory ...
> >
> > - dojo directory exists
> > - dojo directory is readable
> >
> > Checking value of PHP display_errors ...
> >
> > - display_errors: *disabled*
> > - NOTE: Displaying errors in a production system is a security risk;
> > however,
> > while getting VCL up and running, having them displayed makes
> debugging
> > a little easier. Edit your php.ini file to modify this setting.
> >
> > Done
> >
> > my secrets.php file is like this:
> >
> > <?php
> > $vclhost = 'localhost'; # name of mysql server
> > $vcldb = 'vcl'; # name of mysql database
> > $vclusername = 'mani'; # username to access database
> > $vclpassword = 'mani'; # password to access database
> >
> > $mcryptkey = 'password'; # random password - won't ever have to type it
> so
> > make it long
> > $mcryptiv = '12345678'; // must be 8 hex chars
> >
> > $pemkey = 'password'; # random passphrase - same as given to genkeys.sh -
> > should be long
> > ?>
> >
> > can you guide me, what should i do to fix this file?
> >
> >
> > Best Regards
> > Mani
> - --
> - -------------------------------
> Josh Thompson
> VCL Developer
> North Carolina State University
>
> my GPG/PGP key can be found at pgp.mit.edu
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.17 (GNU/Linux)
>
> iEYEARECAAYFAk7CoSkACgkQV/LQcNdtPQP7nQCfbrlCk/yD8QMJzlbeL6k8840U
> e8cAnRkdpgRbwQVqQgXzkdgkEJRO9jnO
> =0uvC
> -----END PGP SIGNATURE-----
>
Re: secrets.php
Posted by Josh Thompson <jo...@ncsu.edu>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Mani,
Everything looks good in the secrets.php file you included below. I would
suggest running the secrets.php script from the command line using the php
command line interpreter:
php secrets.php
Any problems in it would then be reported.
Also, just to be sure, you are talking about secrets.php and not
secrets-default.php, right?
Josh
On Sunday November 13, 2011, Mani Shafa'atDoost wrote:
> Hello,
>
> When I run testsetup.php, I just receive following errors:
> Error: fopen(http://localhost/vcl/testsetup.php?includesecretstest=1):
> failed to open stream: Permission denied
> PHP version: 5.3.8
> Including .ht-inc/secrets.php ...
>
> - unable to include .ht-inc/secrets.php - this is probably due to a
> syntax error in .ht-inc/secrets.php
> - skipping tests for contents of .ht-inc/secrets.php
>
> Including .ht-inc/conf.php ...
>
> - cannot include .ht-inc/conf.php when including of .ht-inc/secrets.php
> fails
>
> Testing for required php extensions ...
>
> - All required modules are installed
>
> Testing mcrypt ...
>
> - Cannot test encryption without $mcryptkey and $mcryptiv from
> .ht-inc/secrets.php
>
> checking openssl encryption keys ...
>
> - Cannot test private key file without $pemkey from .ht-inc/secrets.php
> - successfully created public key from public key file
>
> Testing openssl encryption ...
>
> - cannot test encryption without a valid private key
>
> Testing for existance of dojo directory ...
>
> - dojo directory exists
> - dojo directory is readable
>
> Checking value of PHP display_errors ...
>
> - display_errors: *disabled*
> - NOTE: Displaying errors in a production system is a security risk;
> however,
> while getting VCL up and running, having them displayed makes debugging
> a little easier. Edit your php.ini file to modify this setting.
>
> Done
>
> my secrets.php file is like this:
>
> <?php
> $vclhost = 'localhost'; # name of mysql server
> $vcldb = 'vcl'; # name of mysql database
> $vclusername = 'mani'; # username to access database
> $vclpassword = 'mani'; # password to access database
>
> $mcryptkey = 'password'; # random password - won't ever have to type it so
> make it long
> $mcryptiv = '12345678'; // must be 8 hex chars
>
> $pemkey = 'password'; # random passphrase - same as given to genkeys.sh -
> should be long
> ?>
>
> can you guide me, what should i do to fix this file?
>
>
> Best Regards
> Mani
- --
- -------------------------------
Josh Thompson
VCL Developer
North Carolina State University
my GPG/PGP key can be found at pgp.mit.edu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
iEYEARECAAYFAk7CoSkACgkQV/LQcNdtPQP7nQCfbrlCk/yD8QMJzlbeL6k8840U
e8cAnRkdpgRbwQVqQgXzkdgkEJRO9jnO
=0uvC
-----END PGP SIGNATURE-----