Installation

This is a guide for those who do not know how to build or manage a website, but still would like to try phpSEL. We are going to install XAMPP on a Windows 10 Home PC and set up phpSEL inside.

First of all, download phpSEL and go to https://www.apachefriends.org/hu/index.html to download XAMPP for Windows. When you finished downloading, start the XAMPP installer exe.

A wild warning appears! Don't worry about it, just click [OK].


Click [Next] of course...


All you really need to select besides Apache is MySQL and phpMyAdmin. Click [Next].


The deafult installation folder is perfect for us, just click [Next].


This is just some advertisement, just uncheck the checkbox and click [Next].


Setup is now ready... just like us. Click [Next].


Windows Defender or some other firewall might pop up, [Allow access] for Apache.


Yay! XAMPP is installed! Click [Finish] to start the XAMPP Control Panel.


Select your preferred language... or maybe English? Click [Save].


On the Control Panel click [Start] next to Apache...


...and next to MySQL.


[Allow access] for MySQL too.


Open up your file manager and extract the phpsel.zip file to...


...no, not here...


...here! C:\xampp\htdocs


The phpsel directory should now reside in C:\xampp\htdocs. Let's go inside, we still have to do a few things there.


Yeah, this is the contents of C:\xampp\htdocs\phpsel. Looking good!


Let's try opening phpMyAdmin to install the database. Clicking [Admin] next to MySQL on the XAMPP Control Panel should do it.


But if it doesn't, you can always just localhost/phpmyadmin to your browser's address bar.


Click on the [Databases] link and enter phpsel for the database name and select utf8_general_ci for collation. Click on [Create]


Cool, we have a database. Now click on [Import].


Click on the file select button. Mine is in Hungarian :)


Select the database.sql file in the C:\xampp\htdocs\phpsel directory and click [Open]. On the bottom of the Import page click [Go].


Great! The database is populated! Just one more thing to do...


Simplified version:

Rename the config-sample-xampp.php file to config.php

Original version:

Okay, this will be a big step, prepare yourself! Go back to the file manager and rename the config-sample.php file to config.php. Next you have to open it in an editor, but NOT in Notepad! Use something else like Notepad++ or my favorite: Sublime Text

Find the following lines and edit them to look like this:

$subdirectory = '/phpsel';
$db_database = 'phpsel';
$db_user = 'root';
$db_password = '';

It is also a good idea to change the $login_username and $login_password values to something different than the default to protect your library. This is a crucial step if you install phpSEL on a public server and not locally.


Okay, phpSEL should work now! Go back to your browser and enter localhost/phpsel into the address bar. If you what's on the screenshot, try to log in...


Huge success! Maybe you should add a bookmark, or create a shortcut to your desktop?

Don't forget that in order to use phpSEL, Apache and MySQL has to be running, so if you restart your computer, you have to start them again too.