-
Notifications
You must be signed in to change notification settings - Fork 0
Setting Up
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/
)
Now you should install PHP if you have not already
sudo apt install php -y
sudo pacman -Syy php
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;
}
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.
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.
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!