Installation

From SocialStrap Wiki
Jump to: navigation, search

How to install SocialStrap

  • Download and unzip the socialstrap package if you haven't already.
  • Create a database for socialstrap on your web server, as well as a MySQL user who has all privileges for accessing and modifying it.
  • Copy all files to your web server using your favorite FTP client
  • Run the socialstrap installation script by accessing the URL in a web browser. This should be the URL where you uploaded the socialstrap files.
  • Follow installation instructions
  • Default administrator username/password is admin/admin123

Note: if you don’t want to use socialstrap installer then simply unpack everything from data.zip file and upload files to your web server. To configure database open config-sample.php in a text editor, fill in your information, and save it as config.php. You can import database from /database/database.sql file using phpMyAdmin or similar database admin tool.


Non-Apache Server Notes

Microsoft IIS7 Web Server

This web application relies on simple rewrite rules used by the Zend Framework. In order to config your IIS web server you can user web.config file with this content:

<?xml version="1.0" encoding="UTF-8"?> 

<configuration>
	<system.webServer>
		<rewrite>
			<rules>
				<rule name="Imported Rule 1" stopProcessing="true">
					<match url="^.*$" />
					<conditions logicalGrouping="MatchAny">
						<add input="{REQUEST_FILENAME}"
							 matchType="IsFile" pattern=""
							 ignoreCase="false" />
					</conditions>
					<action type="None" />
				</rule>
				<rule name="Imported Rule 2" stopProcessing="true">
					<match url="^.*$" />
					<action type="Rewrite" url="index.php" />
				</rule>
			</rules>
		</rewrite>
		<defaultDocument>
			<files>
				<add value="index.php" />
			</files>
		</defaultDocument>
	</system.webServer>
</configuration>



Nginx web server

This web application relies on simple rewrite rules used by the Zend Framework. In order to config your nginx web server read the sample below.

Nginx + fastcgi sample configuration file:

# START
server {

listen 80;

root /var/www/html/socialstrap;
index index.php;

server_name www.yoursite.com;

location / {
	try_files $uri /index.php?$args;
}

location ~ \.php$ {
    fastcgi_pass   127.0.0.1:9000;
    fastcgi_index  index.php;
    fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
    include        fastcgi_params;
}

}
# END