Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Private Server > SRO PServer Guides & Releases
You last visited: Today at 20:00

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



How to setup PHP in IIS (with mssql-Support)

Discussion on How to setup PHP in IIS (with mssql-Support) within the SRO PServer Guides & Releases forum part of the SRO Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2012
Posts: 19
Received Thanks: 9
How to setup PHP in IIS (with mssql-Support)

I write this guide because i'm asked for how to do it more than once.

Whats it about?
Part I: How to install PHP in IIS - so you can setup your own website for your SRO-Server.

Part II: Install Drivers for MS-SQL in PHP.

Feel free to contact me for more stuff and help:

Skype: mindfav

__________________________________________________ _

STEP BY STEP
-------------

1. Install IIS
xxxxxxxxxxxxxx
this should normally already been done. Check it under:

->((Start-Button -> Administrative-Tools -> Server Manager
–> Roles
-> (Choose) Add Roles
–> (Select) “Web Server (IIS)” //you should also install ISAPI - That makes fast implementation of PHP possible.

Normally this should be grayed and already installed.

1.b) Make Sure ISAPI and CGI is installed
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-> Start-> Administrative Tools -> Server Manager
-> Roles
-> Web Server (IIS)
-> On the right side - scroll down to "Role Service" Section
-> Under Application Developement there should be installed ISAPI Filters and CGI
-> If not - click the "Add Role" Button on the right side
-> Install isapi Filters -> (Confirm - install...)

After installation is complete - check if installation was succesful in this list.


2. Install PHP
xxxxxxxxxxxxxx

->Go to: (or just php.net and than download, if the windows section doesn't exist anymore..)
->Download the Non-Thread-Safe Version

->Install it under: C:\PHP
Please don't use another Folder.
Don't ever install it under Program Files or something like that:

Can produce hard to find errors because of special Characters in File-Paths.
Can produce hard to find errors because of rights-Management of Windows! (Means - it wouldn't have all rights like creating files, deleting files, etc - when executing..)

3. Configure IIS to use PHP
xxxxxxxxxxxxxxxxxxxxxxxxxxx
-> Start->Administrative Tools->Internet Information Services (IIS) Manager
-> Select Computer (in left Selection-Box)
-> Double Click "Handler Mappings" Icon on right Side.
-> Click: "Add Module Mapping" and fill in the following:

Request path: *.php
Module: FastCgiModule
Executable: C:\php\php-cgi.exe
Name: PHP5
Save that settings.

4. Testing
xxxxxxxxxx

PHP should now be installed. You can go on and test it.

-> Create a folder htdocs (if none doesn't exist in C
-> Put a file phptest.php in it (make sure theres no *.txt extension - windows hides known extensions as default..)
In this file type: <?php phpinfo(); ?>

-> Save file (in htdocs)
-> Go back to iis manager
-> Create Web-Project in List
Select the folder, give it a name
-> Save: It prompts that this project will use port 80. Acceppt that - for web we wan't to use port 80 because this is default.
-> Select the server icon in the list (right click) and start web publishing
-> Make sure the Web-Projekt you just created is running now. Else - start it!

-> Go to the browser on the windows-server machine.
-> Type: localhost/phpinfo.php
-> You should see the php information site!
-> Check the same from YOUR Local machine - go to your browser and type atlantis-sro.com/phpinfo.php

If you see the same info site - everything is fine!

If you don't see it, check that your website is running in iis and that the web publishing service is startet.

Restart Web-Publishing-Service and IIS
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

If it doesn't run yet, try to reset the configuration:

1. Open command line (cmd.exe)
2. tpye: IISReset

When thats done:
3. type: net start W3SVC


-----------------------------------------
HFGL
Failwell is offline  
Thanks
5 Users
Old 10/01/2012, 12:58   #2
Chat Killer In Duty


 
PortalDark's Avatar
 
elite*gold: 5
Join Date: May 2008
Posts: 16,338
Received Thanks: 6,486
#approved
PortalDark is offline  
Old 10/01/2012, 19:14   #3

 
Raptursh's Avatar
 
elite*gold: 45
Join Date: Nov 2010
Posts: 407
Received Thanks: 113
Nice guide Steve
Raptursh is offline  
Old 10/02/2012, 18:44   #4
 
elite*gold: 0
Join Date: Nov 2011
Posts: 96
Received Thanks: 4
Make vidéo please
kahyo93 is offline  
Old 10/02/2012, 19:42   #5
 
GroundRave's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 294
Received Thanks: 48
Thank you very usefull !
GroundRave is offline  
Reply


Similar Threads Similar Threads
[Guide] Setup MSSQL for Personal PServers
05/17/2012 - Shaiya PServer Guides & Releases - 14 Replies
So I know there have been quite a few people having issues setting up mssql correctly to host their own private servers. I decided to post a video tut on how to set it up correctly for local use. This was done on Windows XP 32-bit and works on other OS as well. *Note* This configuration is based on personal home use, not for public servers. I do not condone the use of illegal public servers, you will have to figure out those settings yourself. ...
[tut]How to setup Mssql 2005 Express on Windows 7
04/17/2011 - Shaiya Private Server - 16 Replies
Ok below are the following steps into setting up your Mssql 2005 server Express addition accurately with Windows 7 64 bit Operating systems. Step 1: Download Mssql 2005 Express edition Mssql 2005 Express Click for Download Step 2: Install Mssql 2005 Express edition using the following steps Check I accept the licensing terms and conditions and click next Click Install
Suche Gameserver für 7 Tage + Support und Setup
04/02/2011 - elite*gold Trading - 12 Replies
Hey Com., suche nen Gameserver für nen paar Tage zum Testen. 12 Slot Außerdem baut ihr mir Many und Sounds rein. Ein bissl Support solltet ihr auch leisten. E*g Preise bitte! Stoned



All times are GMT +2. The time now is 20:00.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.