Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Setting Up

BreadTeleporter edited this page Jun 28, 2023 · 9 revisions

Downloading

Installing PHPSocial is easy! First, download a release, or, you can download the lastest source code

Then, extract it to your webservers webroot directory (usually /var/www/html/)

Installing PHP

Now you should install PHP if you have not already

Debian/Ubuntu

sudo apt install php -y

Arch Linux

sudo pacman -Syy php

Fedora

sudo dnf install php-cli

If you are using nginx, you may need to add these lines to your sites-enabled/default file:

location ~ \.php$ {
  fastcgi_split_path_info ^(.+\.php)(/.+)$;
  fastcgi_pass 127.0.0.1:9000;
  fastcgi_index index.php;
  include fastcgi_params;
}

Creating an admin account

Note: Make sure to chown the PHPSocial folder to www-data otherwise setup will not work.

Go to your servers IP, you should see the setup page.

Make sure to pick a secure password.

Creating an admin account (pre-1.2.3)

Note: This section is for releases 1.2.2 and earlier, 1.2.3 and later include a setup guide that will do this step for you.

Create an account (pick a secure password as this will be the admin account)

In the /db/login.json file, change admin from false to true to make your account an administrator.

Note: You will have to log out and log back in for the changes to apply.

Configuring

Go to the config.php file and change the settings to your liking

If you want to install a custom theme, see the Custom Themes page.

Congrats! You've now installed PHPSocial!