First, create the database you want to use:
Then, (1) Select database from the left menu, (2) Database must be selected and so written just after your server name, here localhost.
Using the SQL file
phpregister-1.2-databaseImport.sql provided with your phpRegister package, you can either create the Database schema tab with a copy/paste of this file OR use the Import tab and select this file:
Connect to your server through
ssh and change your current path to go where the sql file
phpregister-1.2-databaseImport.sql provided with your phpRegister package is, then:
This configuration files are in the root directory.
This contains general configuration information. When phpRegister is executed, it consults the configuration file to see what parameters are in effect.
Before starting, you must change this values:
You may not want to run your own mail server:
The configuration file
config_smtp.inc.php will be used by the class PHPMailer (Version 5).
$configEmail['isSMTP'] = false; then the localhost apache configuration will be used to send emails.
It's important to correctly configure the email section in order to receive links to activate accounts.
To test your email configuration, create the file
test-email.php in the root directory with this code:
You must receive an email like this:
Once you received this test email, you should delete the file
test-email.php from the server.
This configuration file is used for the Administration section.
To add/modify/remove an item in the Admin sidebar, modify as well the function
show__adminSidebar() from the file
admin_display.inc.php which is in your admin folder.
First, Log in to your Facebook account on Facebook.com, then go to the URL: https://developers.facebook.com/products/. You will have to reenter your password and click on
Register to register as a Facebook Developer if not already done:
Then click on
Create App and create your project:
Once your App is created, you are redirected to
Products / Add product page, create a
Now, (1) specify your Valid OAuth redirect URIs which are links to your file
oauth_facebook.php from the folder
/account/oauth/, you can add localhost too, then click on (2)
Settings / Basic to retrieve your Application ID and your App secret. Don't forget to prepare your website policy and terms, you will have to specify an URL to them or your App might be blocked. They can have the same URL. Then click on
Copy/paste them in your
You can now Log in with Facebook but only with your Facebook account. If you try with another Facebook account, you will get an Error Facebook message telling this app is still in development mode:
To Log in with others Facebook accounts you can add testers from page
Roles / Roles or create Test Users which are temporary Facebook accounts on the page
Role / Test Users.
Once your project is ready for public, go to the page
App review and set your App in public mode:
First, Log in to your Google account on Gmail.com and then go to the URL: https://console.developers.google.com/apis/library to create your project:
And create your project:
Once your project is created, you are redirected to a page where you have to select the credential type you want, you have to choose OAuth client ID:
Now, you are asked to set a product name, click on "Configure consent screen":
Don't forget to prepare your website policy and terms, you will have to specify an URL to your policy and terms, it can be the same URL:
Then, click on Credentials and select OAuth client ID once again:
Now, select Web application and specify your authorized redirect URIs which are links to your file
oauth_google.php from the folder
/account/oauth/, you can add localhost too:
It's done, you can retrieve your
client ID and your
Copy/paste them in your
You can modify, add or delete URIs by clicking on the credential. All credentials will have the same OAuth consent screen, you have to create another project to use another OAuth consent screen.
When you make a modification, this can take few minutes before this change is up and running.
You must have a Microsoft account to create a Windows Live OAuth Application. If you don't have yet a
hotmail.com account, you can create a Microsoft account with an existing email from https://account.microsoft.com/about/ and click
Once you have a Microsoft account, go to this URL to create an App: https://apps.dev.microsoft.com/#/appList
If you go to this URL for the first time, you might be redirected to
https://apps.dev.microsoft.com/Landing..., then just click on
Once you are logged in
https://apps.dev.microsoft.com/#/appList, click on Add an app:
Choose the name of your App and click
The registration page is now displayed. Click on (1)
Generate new password, a popup will appear with your password generated. This is the only one time the password will be displayed. You have to store it securely. You will need to specify this password on your phpRegister file
Then click on (2)
Add platform and add a
Down the page, don't forget to prepare your website policy and terms, you will have to specify an URL to them or your App might be blocked. They can have the same URL.
Copy/Paste your Application ID and the password you stored in the phpRegister file
Then click on save.
To create the first Admin user, go to the admin folder of phpRegister with your browser.
As long as there is no users with spcecial rights, in the admin part, you get a form to create an Admin user.
Browse the table
pr__user and click on edit of the account you want to give admin rights
admin in the last field
adminrights (1) and then click on Go (2).
Connect to your server through
ssh and then connect to your database to launch the sql request:
Then you can access to the Admin section through the new button
My Account menu.