How to install PhpWiki in XAMPP Windows 11


PhpWiki was the first ever wiki written in PHP. It was first released on December 1999 by Steve Wainstead. It is currently developed Marc-Etienne Vargenau. And for this tutorial, we are going to create another Wiki website out of it. But first, you need to download the XAMPP and PhpWiki installers below.


Requirements:


Assuming that you downloaded the files above, continue to the tutorials below.


Table of Contents

  • XAMPP Installation
  • Opening XAMPP and running Apache and MySQL
  • Copying and pasting PhpWiki installation folder inside htdocs
  • Creating a database needed for PhpWiki installation
  • Installing PhpWiki website using localhost via web browser
  • Opening PhpWiki website homepage
  • Accessing PhpWiki website admin page
  • Sample PhpWiki Themes
  • Editing config.ini file
  • config.ini file important line of codes

Here are the steps on how to install PhpWiki website using XAMPP in Windows pc


XAMPP Installation


1. Open the XAMPP file that you downloaded. If a Warning regarding User account Control (UAC) appears, just press OK to proceed.


xampp installation warning about user account control

2. Under Setup - XAMPP, just press the NEXT button to proceed.


xampp installation wizard welcome page

3. In the Select Components, just leave it as it is and press NEXT to continue.


xampp installation select components

4. In the Installation folder, do not change the default location which is C:\xampp. Just press NEXT to proceed.


xampp installation folder c xampp

5. In the Bitnami for XAMPP, just uncheck "Learn more about Bitnami for XAMPP" and press NEXT to proceed.


bitnami for xampp

6. We are now ready to install XAMPP. Press NEXT to confirm.


xampp is ready to install

7. Wait for the installation to finish.


xampp is unpacking and installing

8. When done, press Finish to exit the installer.


xampp is successfully installed

Opening XAMPP and running Apache and MySQL


1. To open XAMPP, just go to Start and search for xampp. You can also go to This PC > C drive > xampp and click "xampp-control.exe". Inside XAMPP Control Panel, click the Start buttons for Apache and MySQL.


start apache and mysql in xampp control panel

2. Apache and MySQL are both running now if you see two Stop buttons.


apache and mysql is now running in xampp control panel

3. If a Windows Security Alert appears, just press Allow access.


allow access for windows security alert regarding xampp mysqld.exe

Copying and pasting PhpWiki installation folder inside htdocs


1. Extract the PhpWiki zip file that you downloaded. Rename the extracted folder as phpwiki. Copy your phpwiki folder and go to This PC.


search for this pc windows 11

2. Inside This PC, open your C drive.


windows 11 c drive

3. Inside C, open xampp folder.


xampp folder located in c drive windows 11

4. Now, open htdocs folder.


htdocs folder located in xampp folder c drive windows 11

5. Paste phpwiki folder inside htdocs.


copying and pasting the phpwiki installation folder inside xampp htdocs

Creating a database needed for PhpWiki installation


1. We are now creating the database needed for our PhpWiki website installation. Open your web browser and go to 127.0.0.1 and press ENTER. Inside, click phpMyAdmin. And in phyMyAdmin, click Databases.


accessing phpmyadmin via xampp localhost to make phpwiki database

2. In the Create database, name it as phpwiki_db. Next to it, set it to utf8mb4_unicode_ci and press Create.


phpwiki database name

3. In the Create table, name it as phpwiki_table. Make sure number of columns is set to 4. Press Go to proceed.


phpwiki create table, table name

4. For structure, name it as phpwiki and set the Type to INT.


phpwiki structure name

5. For Collation, set it to utf8_unicode_ci and leave all the other fields as blank.


phpwiki collation utf8_unicode_ci

6. Save your work.


save structure collation for phpwiki

Installing PhpWiki website using localhost via web browser


1. We are now ready to install our PhpWiki website. I already prepared the needed config.ini file for this tutorial. I also included the needed config.ini file inside the zip file that you downloaded so that you do not have to encounter any errors and problems during the installation. To start, open your web browser and go to 127.0.0.1/phpwiki/index.php and press ENTER.


accessing phpwiki installation folder via xampp localhost using web browser

2. In the Loading up virgin wiki - This page does not exist. Create it. Just press the Create it link to proceed.


loading up virgin wiki create link

3. Done! You have successfully and instantly installed your PhpWiki website with the WordPress theme.


successfully created phpwiki website

Opening PhpWiki website homepage


1. To open your PhpWiki website homepage, just go to 1270.0.1/phpwiki/index.php or localhost/phpwiki/index.php.


sample phpwiki website homepage with wordpress theme

Accessing PhpWiki website admin page


1. To open your PhpWiki website admin account, just type your username which admin under the User Info. You will be automatically redirected to another page. Continue to STEP 2.


login panel phpwiki website

2. Under Sign In, type admin again in the UserID and password is youradminpassword and press Sign In to proceed. Note: The admin password for this tutorial is actually youradminpassword. I will show you how to change it in the tutorial below.


login page for phpwiki admin user

3. Here is the sample administration page for your PhpWiki website with WordPress theme selected.


sample administration page for phpwiki website

Sample PhpWiki Themes


1. THEME = default (fast to load).


phpwiki website theme default fast to load

2. THEME = Sidebar (slow to load).


phpwiki website theme sidebar slow to load

3. THEME = MacOSX (fast to load).


phpwiki website theme macosx fast to load

4. THEME = smaller (fast to load).


phpwiki website theme smaller fast to load

5. THEME = MonoBook (slow to load).


phpwiki website theme monobook slow to load

6. THEME = Wordpress (fast to load).


phpwiki website theme wordpress fast to load

7. THEME = Portland (fast to load).


phpwiki website theme portland fast to load

8. THEME = Crao (fast to load).


phpwiki website theme crao fast to load

9. THEME = wikilens (fast to load).


phpwiki website theme wikilens fast to load

10. THEME = blog (fast to load).


phpwiki website theme blog fast to load

11. THEME = shamino_com (fast to load).


phpwiki website theme shamino_com fast to load

12. THEME = SpaceWiki (fast to load).


phpwiki website theme spacewiki fast to load

13. THEME = Hawaiian (fast to load).


phpwiki website theme hawaiian fast to load

Editing config.ini file


1. Important note: The 13 themes above are all can be activated by editing your config.ini file located in This PC > C drive > xampp > htdocs > phpwiki > config. As you can see the theme I selected for this tutorial is Wordpress. To activate a theme or any other settings and configurations inside config.ini file, all you need to do is remove the semicolon that you will see in the beginning of the line of code. Example: to activate the ;THEME = Hawaiian, you just need to change it to THEME = Hawaiian and then Save your config.ini file. Just make sure to put back a semicolon to the theme that you just replaced. By the way, you can edit your config.ini file using Notepad.


editing phpwiki config ini file

config.ini file important line of codes


As I have mentioned above, you can easily activate a setting or configuration for PhpWiki website by just removing the semicolon located in the beginning of that line of code. Now, to Rename your wiki, you just need to find (CTRL + F) the line of code WIKI_NAME and put a name for your Wiki inside the double quotations. Same goes for your ADMIN_USER. To change your admin password then you have to search for ADMIN_PASSWD and change "youradminpassword" to your desired password. For DATABASE_DSN, root is the default Username. localhost is the default host, and phpwiki_db is the database that we created earlier in the above tutorial. You can replace these values if you are setting up your PhpWiki website online to a web hosting.


  • WIKI_NAME = "name of your wiki"
  • ADMIN_USER = "admin"
  • ADMIN_PASSWD = "youradminpassword"
  • DATABASE_DSN = "mysql://root@localhost/phpwiki_db"
  • THEME = Wordpress
  • DEFAULT_LANGUAGE = en

Thank you for reading this tutorial guys. It is quite long but it is worth reading. If you have a question, do not hesitate to leave a comment below. Cheers!

No comments:

123how.xyz only wants on-topic comment. Do not include any link, else your comment won't be published. Thanks!

Most Read Tutorials:

Powered by Blogger.