Running OSSN on IIS (We still don't official support IIS) but OSSN works well with it.
-
Making sure Windows Server 2019 or newer
-
Making sure IIS 10 or newer is installed
-
Making sure to install CGI for IIS (IIS -> Applications -> CGI when Adding new ROLE), remember to find it you need to click small arrow in the list of IIS.
-
Installation of PHP 8.1 C:\PHP\
-
Installation of ioncube loader 12 if using premium social network
-
Enable all required PHP extensions for OSSN see list of required extensions https://www.opensource-socialnetwork.org/wiki/view/706/how-to-install-open-source-social-network
-
Once installed PHP add it into environment variable C:\PHP\
-
Verify environment variable by restarting CMD and run
php -version
-
Now add FastCGIModule for IIS Under
Handler Mapping
Request path: *.php Module: FastCgiModule Executable: "C:\PHP\php-cgi.exe" Name: PHP via FastCGI
-
Now put index.php with content
<?php phpinfo();
-
RUN http://127.0.0.1/index.php and see if you see php information if so that means php works.
-
Now install MySQL with MySQL workbench to manage database. If you wanted to use MariaDB then install that.
-
Create database for OSSN
- Download latest version
- Put it under C:\inetpub\wwwroot\
- Extrat the content of this repository in C:\inetpub\wwwroot\
- Now create a folder C:\inetpub\ossn_data\
- Right click on C:\inetpub\ossn_data\
ossn_data
folder and go to security tab -> Add - After adding select the
IIS_IUSRS
user with making sure in bottom you select Full control. - Same with C:\inetpub\wwwroot\ in this step you only need to select
IIS_IUSRS
Now access the installer by http://127.0.0.1/