flagflag  If you want to see English page, please click "English" Button at Left.

problem with security certificate on Windows 7 x64

  • このフォーラムに新しいトピックを立てることはできません
  • このフォーラムではゲスト投稿が禁止されています
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 .2 .3 .4 .5 .6 .7 .8 .9 .10 .11 .12 .13 .14 .15 .16 | 投稿日時 2011-11-30 4:20
SkyLine  Not too shy to talk   投稿数: 24
I'm almost positive this has little to do with the money server itself, however, just in case i need to ask:

Whenever a login using https://67.169.8.173:8008/ as my helper URI, as soon as i try to buy currency with my banker avatar, Imprudence freezes for a few seconds, then it displays the following warning:

"Cannot buy now:
Often this means your computer's clock is set incorrectly..."

At the same time the money server console returns the following error in red fonts:

2011-11-23 13:59:47,682 ERROR – OpenSim.Framework.Servers.HttpServer.BaseHttpServer [BASE HTTP SERVER]: HttpServer.HttpListener had an exception System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. —> System.ComponentModel.Win32Exception: The certificate chain was issued by an authority that is not trusted

I tried to find out why the certificate is rejected, i tried installing it in the system and in IIS (probably the same thing), but i'm afraid i don't know enough about security certificates to be able to pin-point what i need to fix...

Any help is appreciated!
投票数:188 平均点:4.79
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-11-30 9:57 | 最終変更
iseki  Home away from home   投稿数: 1581
Hi,

IIS is unrelated about this error.
Since I would like to check this error, please teach me version of OpenSim and your MoneyServer.ini

Thanks.
投票数:137 平均点:3.65
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-12-1 3:00
SkyLine  Not too shy to talk   投稿数: 24
Hi Iseki,

My version of opensim is Diva 0.7.2 r16915

I have created my own self-signed certificate called SkyLineGridCert.fpx in IIS but it didn't change the resulting error.

MoneyServer.ini:


[Startup]
;
; Place to create a PID file
; PIDFile = "/tmp/money.pid"


[MySql]
;
;Connection parameters of MySQL
hostname = hostname
database = databasename
username = username
password = password
pooling  = false
port = 3306

;
; Max DB connections kept by money server.
MaxConnection = 20


[MoneyServer]
;
; If the user is not found in database,he/she will be created with the default balance.
DefaultBalance = 2000
 
;
; If "00000000-0000-0000-0000-000000000000" is specified, all avatars can get money from system.
; If "" is specified, nobody can get money.
BankerAvatar = "690f9f65-461d-4722-9f74-2a200022c1f8"
;;BankerAvatar = "fffeee85-9cc9-4ac7-a8d2-96a90081c4d1"
;;BankerAvatar = "fffeee859cc94ac7a8d296a90081c4d1"

;
; If you want to use llGiveMoney() function normally even when payer doesn't login to OpenSim,
; please set true to this valiable
EnableForceTransfer = true

;
; send money to avatar by MoneyScript (for Bonus)
;EnableScriptSendMoney = false
MoneyScriptAccessKey  = "123456789"		;; specify same secret key in include/config.php or WI(XoopenSim/Modlos)
MoneyScriptIPaddress  = "67.169.8.173"	;; not use 127.0.0.1

;
; Message that displayed in blue dialog, when balance is updated.
; If "" is specified, blue dialog is not displayed.
; You can use {0} and {1} in message string.
; {0} means amount and {1} means avatar name or object owner name
;BalanceMessageLandSale     = "Paid the Money L${0} for Land."				;; for buy the land
;BalanceMessageScvLandSale  = ""											;; for get the money of the sold land
;BalanceMessageSendGift     = "Sent Gift L${0} to {1}."						;; for send gift to other avatar
;BalanceMessageReceiveGift  = "Received Gift L${0} from {1}."				;; for receieve gift from other avatar
;BalanceMessagePayCharge    = ""											;; for upload and group creation charge
;BalanceMessageBuyObject    = "Bought the Object L${0} from {1}."			;; for buy the object
;BalanceMessageGetMoney     = "Got the Money L${0} from {1}."				;; for get the money from object by llGiveMoney()
;BalanceMessageBuyMoney     = "Bought the Money L${0}."						;; for buy the money from system
;BalanceMessageReceiveMoney = "Received L${0} from System."					;; for receive the money from system by send_money() script
;BalanceMessageRollBack     = "RollBack the Transaction: L${0} from/to {1}."	;; when roll back ocuurred

;
; for HTTPS
ServerCertFilename = "SkyLineGridCert.pfx"
ServerCertPassword = "123"

;
;
投票数:154 平均点:5.19
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-12-1 12:28 | 最終変更
iseki  Home away from home   投稿数: 1581
Hi SkyLine,

Ummm...
I try to execute diva 0.7.2 r16915 with our Money server on Windows 7 x64, and those work.
But I don't have IIS, so I use Apache and MySQL on Linux.
I can buy Money from System with no problem.

Isn't it a problem of IIS?

I wrote wiki about diva.
http://www.nsl.tuis.ac.jp/xoops/modules/xpwiki/?OpenSim%2FMoneyServer%2FDiva-0.7.2

And, is this site useful?
http://webserver.codeplex.com/discussions/218077
投票数:108 平均点:5.65
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-12-2 4:51
SkyLine  Not too shy to talk   投稿数: 24
Thanks Iseki,

I have followed your instructions on the wiki page you wrote and there is no problem there, as the money server runs well, the problem is definitely to get SSL to work on Windows 7. When i try to access the money server url from a browser i do get security warnings, so i know something is not getting validated... but i have no idea what it is.

My last step was to try and install/uninstall my .pfx file in each certificate store and see if something changes. Nothing did, and i still got the same error about the not trusted certificate chain. This seems like such an easy problem to solve and yet i'm at a total loss...
投票数:151 平均点:7.09
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-12-2 10:23 | 最終変更
iseki  Home away from home   投稿数: 1581
Hi SkyLine,

If you may use http instead of https, I have one idea.

Please edit MoneyServer.ini
ServerCertFilename = ""
ServerCertPassword = ""

If ServerCertFilename is null, Money Server use http instead of https automatically.

And edit OpenSim.ini, too. (https -> http at CurrencyServer)
[Economy]
    SellEnabled = "true"
    UserServer = "http://.......:9000/"       ;; not use localhost or 127.0.0.1
    CurrencyServer = "http://.....:8008/"     ;; not use localhost or 127.0.0.1
    EconomyModule  = DTLNSLMoneyModule
    .....................

Is this going to work well?
投票数:103 平均点:4.95
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-12-3 9:21
SkyLine  Not too shy to talk   投稿数: 24
Thanks again Iseki,

A little progress but not much:

Now i no longer get the certificate error, or any other error of any kind. When i try to buy money the message "Cannot buy now: despite our best efforts..." appears. moneyserver.log does not even seem to register the attempt to buy money, and opensim.32bitlaunch.log doesn't show any error either...

I have changed the money server to http in the viewer, no changes so far...
投票数:162 平均点:6.54
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-12-3 9:58 | 最終変更
iseki  Home away from home   投稿数: 1581
Hi

Please check your helper scripts and log of IIS.
When you want to buy money, http://(your IIS's IP)/helper/currency.php is called.

1. Please check log of IIS. Was currency.php called?
If currency.php was not called, please check -helperuri option. (what kind of your Viewer?)

2. Edit currency.php.
Delete // of error_log() at end of file.
 
//error_log("currency.php: ".$request_xml); ->  error_log("currency.php: ".$request_xml);

And check log of php. Do you see XML of currency request?
投票数:166 平均点:7.23
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-12-3 13:30
SkyLine  Not too shy to talk   投稿数: 24
My main viewer is Imprudence, and I set all uri's in myworld.ini so that I just need to click get grid info.
I didn't see any mention of currency.php in my log files.

Given that my IIS ip is 168.0.0.6:3307 (my laptop ip within my router), I tried using 67.169.8.173:3307/helper/currency.php, and when I did that I just got an error sign without any message and "getting data..." blinking on the buy currency window.

I'm kinda thinking, does this module require wiredux, by any chance?
投票数:102 平均点:6.96
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-12-3 13:34
SkyLine  Not too shy to talk   投稿数: 24
My apologies, the late hours are getting to me, my laptop internal ip (as you may have probably guessed is 192.168.1.6
投票数:102 平均点:5.29
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-12-4 3:15
iseki  Home away from home   投稿数: 1581
Hi SkyLine,

Did your OpenSim and Money Server work well?
投票数:119 平均点:3.36
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-12-4 6:04
SkyLine  Not too shy to talk   投稿数: 24
Sadly no, but i'm getting the feeling it's all due to my IIS setup... when i try to reach directly currency.php it gives me a 500 error, so i'll have to troubleshoot my web server setup and hopefully that will do the trick...
投票数:139 平均点:6.98
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-12-6 9:30
SkyLine  Not too shy to talk   投稿数: 24
Well this is odd...

I can successfully access all php files in the bin folder, except for currency.php, xmlgroups.php, landtool.php and offline.php, returning a 500 error.

I suspected since most of these files are necessary for the money server to function, the error would disappear if i turned off the money server... but the files remain inaccessible remotely (locally they seem to be working).

Example:

if i type http://67.169.8.173:3307/index.php (my bin directory) i see that the file is read just fine.
On the other hand, if i type http://67.169.8.173:3307/currency.php i get a 500 error

BTW, for testing purposes i moved and re-linked the content of /helper to the bin folder.

I'm getting the feeling as soon as i get the 500 error to disappear the money server will finally allow me to buy currency in-world...
投票数:84 平均点:4.40
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-12-6 10:56
SkyLine  Not too shy to talk   投稿数: 24
Update:

I have copied the whole script from currency.php into index.php (which was perfectly reachable). Now index.php returns the same 500 error as currency.php.

There is definitely something in the php script in currency.php that IIS does not like... my best guess would be too many connections causing the web server to time out...
投票数:120 平均点:4.08
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-12-7 8:15
iseki  Home away from home   投稿数: 1581
Hi SkyLine,

As I have not IIS, I cannot advise you about IIS. Sorry.

What do you think that you use WampServer instead of IIS?
WampServer is very useful WAMP environment.

http://www.wampserver.com/en/

*)
W -- Windows
A -- Apache
M -- MySQL
P -- PHP
投票数:252 平均点:7.78
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-12-7 9:48
SkyLine  Not too shy to talk   投稿数: 24
Hi Iseki,

I lastly downloaded the latest version of PHP and re-installed it in IIS7, so here is what i solved so far:

- Profiles and groups are working
- Currency server allows me to transfer money from SkyLine Bank (my banker avatar) to other users

Still, when i try buying currency through SkyLine Bank, i get an error from the viewer, but no error at all from the money server log or the opensim log.

I tried WAMP before trying IIS, and i use it extensively for web design, unfortunately it had a few issues i had no time to troubleshoot when i started with this project. So far my grid is 99% error free, all i need now is to be able to buy currency in world with my banker avatar.
投票数:113 平均点:5.40
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-12-7 9:54
SkyLine  Not too shy to talk   投稿数: 24
I forgot to mention, when i access currency.php on a browser i get the following error:

Warning: require_once(bin/include/tools.func.php) [function.require-once]: failed to open stream: No such file or directory in C:\Users\Fabio-mobile\Dropbox\skylinegrid\skylinegrid\bin\include\env_interface.php on line 3

Fatal error: require_once() [function.require]: Failed opening required 'bin/include/tools.func.php' (include_path='.;C:\Program Files (x86)\PHP\pear') in C:\Users\Fabio-mobile\Dropbox\skylinegrid\skylinegrid\bin\include\env_interface.php on line 3
投票数:110 平均点:5.91
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-12-7 12:01 | 最終変更
iseki  Home away from home   投稿数: 1581
Hi SkyLine,

1. Does include/tools.func.php exist?

2.If it exists, please check include/config.php Line 10
I think that is below with your case.
if (!defined('ENV_HELPER_PATH')) define('ENV_HELPER_PATH', '/Users/Fabio-mobile/Dropbox/skylinegrid/skylinegrid/bin/helper/');
投票数:93 平均点:6.99
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-12-8 1:22
SkyLine  Not too shy to talk   投稿数: 24
tools.func.php is present in the include directory.
I have replaced line 10 with the one you suggested, but changed bin/helper with /bin, as i have all the files formerly inside the helper folder in the bin folder for simplicity.

Now i get this message:

Warning: require_once(Users/Fabio-mobile/Dropbox/skylinegrid/skylinegrid/bin/include/tools.func.php) [function.require-once]: failed to open stream: No such file or directory in C:\Users\Fabio-mobile\Dropbox\skylinegrid\skylinegrid\bin\include\env_interface.php on line 3

Fatal error: require_once() [function.require]: Failed opening required 'Users/Fabio-mobile/Dropbox/skylinegrid/skylinegrid/bin/include/tools.func.php' (include_path='.;C:\Program Files (x86)\PHP\pear') in C:\Users\Fabio-mobile\Dropbox\skylinegrid\skylinegrid\bin\include\env_interface.php on line 3

If my files are under c:\users\Fabio-mobile\Dropbox\skylinegrid\skylinegrid\bin, is my 'Users/Fabio-mobile/Dropbox/skylinegrid/skylinegrid/bin/' helper path syntax correct?
投票数:97 平均点:3.40
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-12-8 1:31 | 最終変更
iseki  Home away from home   投稿数: 1581
Warning: require_once(Users/Fabio-mobile/....
Does / exist top(head) of "Users/..." in config.php ?
Users/... -> /Users/...
投票数:99 平均点:6.87
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-12-8 1:48 | 最終変更
iseki  Home away from home   投稿数: 1581
If it is still useless.
Please try to use 'c:/Users/..../helper/'

If it is still useless, yet.
You can rewrite "include_path" in php.ini
include_path='.;C:\Program Files (x86)\PHP\pear;C:\Users\Fabio-mobile\Dropbox\skylinegrid\skylinegrid\bin\helper;C:\Users\Fabio-mobile\Dropbox\skylinegrid\skylinegrid\bin\include'
Here, you should use \ instead of /
投票数:103 平均点:5.24
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-12-8 2:05
iseki  Home away from home   投稿数: 1581
引用:

If it is still useless, yet.
You can rewrite "include_path" in php.ini
include_path='.;C:\Program Files (x86)\PHP\pear;C:\Users\Fabio-mobile\Dropbox\skylinegrid\skylinegrid\bin\helper;C:\Users\Fabio-mobile\Dropbox\skylinegrid\skylinegrid\bin\include'
Here, you should use \ instead of /
I think deep. This is useless. Sorry.
投票数:110 平均点:4.45
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-12-8 4:52
SkyLine  Not too shy to talk   投稿数: 24
I tried to rewrite the path in php.ini and as you expected it didn't do much...

I tried reaching tools.func.php manually via the browser and put some plain text at the beginning of the file before the php, just to make sure it's there, and it showed...
投票数:137 平均点:5.62
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-12-8 11:22 | 最終変更
iseki  Home away from home   投稿数: 1581
Hi
I installed Wampserver and I sucess to buy money.

Spec:
My OS is Window7 x64
OpenSim is diva-r16915
Wampserver is 2.2a-x64 
Wampserver is istalled at c:\wamp
Document Root of Apache is c:\wamp\www    (default)
All programs work at local machine (172.22.1.79)
Viewer's Helper Uri is http://172.22.1.79/opensim_scripts/helper/  

And I found the following.
1. Wampserver or Windows7 does not support symbolic link of Linux/Unix
2. currency.php does not work under Apache 2.2.21 + PHP 5.3.8


For 1.
I use http://www.nsl.tuis.ac.jp/DownLoad/SoftW​are/OpenSim/opensim_scripts-0.7.2.tgz
This is non symbolic link version.

For 2.
I use Apache 2.2.8 (unable access restrictions) + PHP 5.2.9-2 (with php_curl and php_xmlrpc extensions)
In this combination, HTTPS works, too.


My include/config.php is
<?php
//
// Configration file for non Web Interface
//
//
//

// Please set this hepler script URL and directory
if (!defined('ENV_HELPER_URL'))  define('ENV_HELPER_URL',  'http://172.22.1.79/opensim_scripts/helper/');
if (!defined('ENV_HELPER_PATH')) define('ENV_HELPER_PATH', '/wamp/www/opensim_scripts/helper/');

//////////////////////////////////////////////////////////////////////////////////i
// Valiables for OpenSim

// Please set MySQL DB access information
define('OPENSIM_DB_HOST', '172.22.1.79');
define('OPENSIM_DB_NAME', 'diva_opensim');
define('OPENSIM_DB_USER', 'diva_user');
define('OPENSIM_DB_PASS', 'diva_pass');
//
..............................

bin/OpenSim.ini
.....
[Economy]
    SellEnabled = "true"
    UserServer = "http://172.22.1.79:9000/"       ;; not use localhost or 127.0.0.1
    CurrencyServer = "https://172.22.1.79:8008/"  ;; not use localhost or 127.0.0.1
    EconomyModule  = DTLNSLMoneyModule

    ;; Money Unit fee to upload textures, animations etc
    PriceUpload = 30
    ;; Money Unit fee to create groups
    PriceGroupCreate = 200

bin/config-include/MyWorld.ini
.....
[DatabaseService]
    ; ### Set the password (again)
ConnectionString = "Data Source=172.22.1.79;Database=diva_opensim;User ID=diva_user;Password=diva_pass;Old Guids=true;Allow Zero Datetime=true;"


bin/MoneyServer.ini
[Startup]
;
; Place to create a PID file
; PIDFile = "/tmp/money.pid"


[MySql]
;
;Connection parameters of MySQL
hostname = 172.22.1.79
database = diva_opensim
username = diva_user
password = diva_pass
pooling  = false
port = 3306

;
; Max DB connections kept by money server.
MaxConnection = 20


[MoneyServer]
;
; If the user is not found in database,he/she will be created with the default balance.
DefaultBalance = 1000
 
;
; If "00000000-0000-0000-0000-000000000000" is specified, all avatars can get money from system.
; If "" is specified, nobody can get money.
BankerAvatar = "00000000-0000-0000-0000-000000000000"

;
; If you want to use llGiveMoney() function normally even when payer doesn't login to OpenSim,
; please set true to this valiable
EnableForceTransfer = true

;
; send money to avatar by MoneyScript (for Bonus)
;EnableScriptSendMoney = false
;MoneyScriptAccessKey  = "123456789"		;; specify same secret key in include/config.php or WI(XoopenSim/Modlos)
;MoneyScriptIPaddress  = "202.26.159.139"	;; not use 127.0.0.1

;
; Message that displayed in blue dialog, when balance is updated.
; If "" is specified, blue dialog is not displayed.
; You can use {0} and {1} in message string.
; {0} means amount and {1} means avatar name or object owner name
;BalanceMessageLandSale     = "Paid the Money L${0} for Land."				;; for buy the land
;BalanceMessageScvLandSale  = ""											;; for get the money of the sold land
;BalanceMessageSendGift     = "Sent Gift L${0} to {1}."						;; for send gift to other avatar
;BalanceMessageReceiveGift  = "Received Gift L${0} from {1}."				;; for receieve gift from other avatar
;BalanceMessagePayCharge    = ""											;; for upload and group creation charge
;BalanceMessageBuyObject    = "Bought the Object L${0} from {1}."			;; for buy the object
;BalanceMessageGetMoney     = "Got the Money L${0} from {1}."				;; for get the money from object by llGiveMoney()
;BalanceMessageBuyMoney     = "Bought the Money L${0}."						;; for buy the money from system
;BalanceMessageReceiveMoney = "Received L${0} from System."					;; for receive the money from system by send_money() script
;BalanceMessageRollBack     = "RollBack the Transaction: L${0} from/to {1}."	;; when roll back ocuurred

;
; for HTTPS
ServerCertFilename = "SineWaveCert.pfx"
ServerCertPassword = "123"
投票数:212 平均点:4.43
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-12-9 7:36
SkyLine  Not too shy to talk   投稿数: 24
Thanks for taking the time to answer me so extensively,

Option 1 didn't work for me as the link was broken, so i went for option 2 and got as far as installing Apache. As soon as i pointed Apache to c:\php\ folder where i dumped all php files from the thread safe 5.2.9, i got the following error:

httpd.exe: syntax error on line 129 of C:/Program Files/(path to)/httpd.conf: Could not locate API module structure 'php5\x1f\x1f_module' in file c:/php/php5apache2_2.dll: No error

I feel i'm missing something, thou i did follow all the steps to install Apache and PHP... i think.
投票数:90 平均点:4.44
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-12-9 7:40
SkyLine  Not too shy to talk   投稿数: 24
This is my httpd.conf, i changed port 80 to 3308 as it's the port i would like to use to run currency.php from my external IP:

#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see 
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "C:/Program Files (x86)/Apache Software Foundation/Apache2.2" will be interpreted by the
# server as "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/logs/foo.log".
#
# NOTE: Where filenames are specified, you must use forward slashes
# instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
# If a drive letter is omitted, the drive on which httpd.exe is located
# will be used by default.  It is recommended that you always supply
# an explicit drive letter in absolute paths to avoid confusion.

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to point the LockFile directive
# at a local disk.  If you wish to share the same ServerRoot for multiple
# httpd daemons, you will need to change at least LockFile and PidFile.
#
ServerRoot "C:/Program Files (x86)/Apache Software Foundation/Apache2.2"

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 3308

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule authn_alias_module modules/mod_authn_alias.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
#LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule cache_module modules/mod_cache.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule charset_lite_module modules/mod_charset_lite.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule dav_lock_module modules/mod_dav_lock.so
#LoadModule dbd_module modules/mod_dbd.so
#LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
#LoadModule disk_cache_module modules/mod_disk_cache.so
#LoadModule dumpio_module modules/mod_dumpio.so
LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule ext_filter_module modules/mod_ext_filter.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule filter_module modules/mod_filter.so
#LoadModule headers_module modules/mod_headers.so
#LoadModule ident_module modules/mod_ident.so
#LoadModule imagemap_module modules/mod_imagemap.so
LoadModule include_module modules/mod_include.so
#LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
#LoadModule ldap_module modules/mod_ldap.so
#LoadModule logio_module modules/mod_logio.so
LoadModule log_config_module modules/mod_log_config.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule negotiation_module modules/mod_negotiation.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
#LoadModule reqtimeout_module modules/mod_reqtimeout.so
#LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule ssl_module modules/mod_ssl.so
#LoadModule status_module modules/mod_status.so
#LoadModule substitute_module modules/mod_substitute.so
#LoadModule unique_id_module modules/mod_unique_id.so
#LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule version_module modules/mod_version.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule php5_module "c:/php/php5apache2_2.dll"
extension_dir = "C:/php/ext"

<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User daemon
Group daemon

</IfModule>
</IfModule>

# 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. admin@your-domain.com
#
ServerAdmin info@localhost.com

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName 67.169.8.173:3308

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "C:/Users/Fabio-mobile/Dropbox/skylinegrid/skylinegrid/bin"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories). 
#
# First, we configure the "default" to be a very restrictive set of 
# features.  
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:/Users/Fabio-mobile/Dropbox/skylinegrid/skylinegrid/bin">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
    DirectoryIndex index.php
</IfModule>

#
# The following lines prevent .htaccess and .htpasswd files from being 
# viewed by Web clients. 
#
<FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</FilesMatch>

#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog "logs/error.log"

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

<IfModule log_config_module>
    #
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    #
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    <IfModule logio_module>
      # You need to enable mod_logio.c to use %I and %O
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>

    #
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here.  Contrariwise, if you *do*
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and *not* in this file.
    #
    CustomLog "logs/access.log" common

    #
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #
    #CustomLog "logs/access.log" combined
</IfModule>

<IfModule alias_module>
    #
    # Redirect: Allows you to tell clients about documents that used to 
    # exist in your server's namespace, but do not anymore. The client 
    # will make a new request for the document at its new location.
    # Example:
    # Redirect permanent /foo http://localhost/bar

    #
    # Alias: Maps web paths into filesystem paths and is used to
    # access content that does not live under the DocumentRoot.
    # Example:
    # Alias /webpath /full/filesystem/path
    #
    # If you include a trailing / on /webpath then the server will
    # require it to be present in the URL.  You will also likely
    # need to provide a <Directory> section to allow access to
    # the filesystem path.

    #
    # ScriptAlias: This controls which directories contain server scripts. 
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client.  The same rules about trailing "/" apply to ScriptAlias
    # directives as to Alias.
    #
    ScriptAlias /cgi-bin/ "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/cgi-bin/"
	ScriptAlias /php/ "C:/php/"
    
    



</IfModule>

<IfModule cgid_module>
    #
    # ScriptSock: On threaded servers, designate the path to the UNIX
    # socket used to communicate with the CGI daemon of mod_cgid.
    #
    #Scriptsock logs/cgisock
</IfModule>

#
# "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

#
# DefaultType: the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value.  If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain

<IfModule mime_module>
    #
    # TypesConfig points to the file containing the list of mappings from
    # filename extension to MIME-type.
    #
    TypesConfig conf/mime.types

    #
    # AddType allows you to add to or override the MIME configuration
    # file specified in TypesConfig for specific file types.
    #
    #AddType application/x-gzip .tgz
    #
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    #
    #AddEncoding x-compress .Z
    #AddEncoding x-gzip .gz .tgz
    #
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    #
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
	AddType application/x-httpd-php .php

    #
    # AddHandler allows you to map certain file extensions to "handlers":
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action directive (see below)
    #
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #
    #AddHandler cgi-script .cgi

    # For type maps (negotiated resources):
    #AddHandler type-map var

    #
    # Filters allow you to process content before it is sent to the client.
    #
    # To parse .shtml files for server-side includes (SSI):
    # (You will also need to add "Includes" to the "Options" directive.)
    #
    #AddType text/html .shtml
    #AddOutputFilter INCLUDES .shtml
</IfModule>

#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type.  The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
#MIMEMagicFile conf/magic

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
ErrorDocument 500 "A truck is about to break through the wall behind you... RUN!!!"
ErrorDocument 404 "This document is on vacation."
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
ErrorDocument 402 "Well, that's the end of the line."
#

#
# MaxRanges: Maximum number of Ranges in a request before
# returning the entire resource, or 0 for unlimited
# Default setting is to accept 200 Ranges
#MaxRanges 0

#
# EnableMMAP and EnableSendfile: On systems that support it, 
# memory-mapping or the sendfile syscall is used to deliver
# files.  This usually improves server performance, but must
# be turned off when serving from networked-mounted 
# filesystems or if support for these functions is otherwise
# broken on your system.
#
#EnableMMAP off
#EnableSendfile off

# Supplemental configuration
#
# The configuration files in the conf/extra/ directory can be 
# included to add extra features or to modify the default configuration of 
# the server, or you may simply copy their contents here and change as 
# necessary.

# Server-pool management (MPM specific)
#Include conf/extra/httpd-mpm.conf

# Multi-language error messages
#Include conf/extra/httpd-multilang-errordoc.conf

# Fancy directory listings
#Include conf/extra/httpd-autoindex.conf

# Language settings
#Include conf/extra/httpd-languages.conf

# User home directories
#Include conf/extra/httpd-userdir.conf

# Real-time info on requests and configuration
#Include conf/extra/httpd-info.conf

# Virtual hosts
#Include conf/extra/httpd-vhosts.conf

# Local access to the Apache HTTP Server Manual
#Include conf/extra/httpd-manual.conf

# Distributed authoring and versioning (WebDAV)
#Include conf/extra/httpd-dav.conf

# Various default settings
#Include conf/extra/httpd-default.conf

# Secure (SSL/TLS) connections
#Include conf/extra/httpd-ssl.conf
#
# Note: The following must must be present to support
#       starting without SSL on platforms with no /dev/random equivalent
#       but a statically compiled-in mod_ssl.
#
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
PHPIniDir "c:\php"
投票数:102 平均点:5.49
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-12-9 8:16 | 最終変更
iseki  Home away from home   投稿数: 1581
引用:
SkyLine wrotes:
Option 1 didn't work for me as the link was broken, so i went for option 2 and got as far as installing Apache. As soon as i pointed Apache to c:\php\ folder where i dumped all php files from the thread safe 5.2.9, i got the following error:
Sorry
http://www.nsl.tuis.ac.jp/DownLoad/SoftWare/OpenSim/opensim_scripts-0.7.2.tgz
投票数:92 平均点:5.11
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-12-9 8:45 | 最終変更
iseki  Home away from home   投稿数: 1581
引用:
SkyLine wrotes:
This is my httpd.conf, i changed port 80 to 3308 as it's the port i would like to use to run currency.php from my external IP:

About httpd.conf, I changed only 2 lines.
Comment out "Deny from all" and "Allow from 127.0.0.1"
#   onlineoffline tag - don't remove
    Order Deny,Allow
    #Deny from all
    #Allow from 127.0.0.1

</Directory>
How about changing your httpd.conf little by little without changing at once?

And about php.ini, I did not change it.
投票数:89 平均点:4.04
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-12-9 9:12
SkyLine  Not too shy to talk   投稿数: 24
Thanks again, i know i am probably driving you crazy now

So i have re-created the helper folder and the include folder under bin,
then i have commented out "Deny from all" in httpd.conf, but i couldn't find "Allow 127.0.0.1"

I have found that if i reboot the PC the Apache service starts (not always), but i still get the error above mentioned. When i try to get to http://67.169.8.173:3308/currency.php or any other php file i get an instant download of the php file directly from the browser... which tells me something about MIME types... (maybe?)

I have actually changed very little of the initial httpd.conf, as it was autogenerated during the installation of Apache, the only parts i edited were when i installed PHP.
投票数:71 平均点:4.93
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-12-9 10:03
SkyLine  Not too shy to talk   投稿数: 24
Well, i have no idea what happened... but after much messing around i resorted to use IIS again and simply upgraded my helper and include folders with the ones you gave me, and without making anymore changes to my PHP configuration, I am now able to withdraw money from the server! I have tested it and modified the balances and transactions tables in my database to (100) integer and the withdrawal works without a hitch even for bigger amounts.

Thank you so much Iseki! You are the best!
投票数:96 平均点:3.96
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-12-11 10:29
iseki  Home away from home   投稿数: 1581
Hi SkyLine,

Congratulations!!
I have also studied anew about Wampserver.

Thanks
投票数:324 平均点:5.96

  条件検索へ


サイト内 検索

ログイン

ユーザー名:

パスワード:


パスワード紛失
新規登録

サブ メニュー

ミニカレンダー

前月2024年 4月翌月
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
<今日>

オンライン状況

146 人のユーザが現在オンラインです。 (5 人のユーザが Forum を参照しています。)

登録ユーザ: 0
ゲスト: 146

もっと...

アクセスカウンタ

今日 : 1465714657146571465714657
昨日 : 1795517955179551795517955
総計 : 2337363423373634233736342337363423373634233736342337363423373634
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com