pH7Software / pH7-Social-Dating-CMS

😻 pH7Builder (formerly pH7CMS) is a Professional & Open Source Social Dating CMS written in PHP 8 🚀 This Social Dating Script aims to be low resource-intensive, powerful and secure. pH7Builder includes over 40 modules. It is the first Professional, Free & Open Source Social Dating Site Builder Software and the first choice for enterprise level Da
https://pH7Builder.com
MIT License
952 stars 574 forks source link

XAMPP: How to run PH7-Social-Dating-CMS remotely on your server using XAMPP? #1099

Open ediblepeachey opened 1 year ago

ediblepeachey commented 1 year ago

Overview

Hi, I'm trying to run PH7-Social-Dating-CMS remotely on my server using XAMPP.

Question

Does anyone know where the main configuration file is?

More details (past and future planned steps)

I'm looking for the main configuration to define the database connection parameters, such as the database host name, username, password, and database name. database host name, username, password, and database name. That way I hope/think I'll be able to run PH7-Social-Dating-CMS remotely on my server using XAMPP. I'll then enter the database name, username, and password from new MySQLdatabase that I created using the the phpMYAdmin tool, where imported the "ph7cms_db.sql" file that comes with PH7-Social-Dating-CMS into the database.

Instructions I'm following (from ChatGPT!)

Here are the steps you can follow to run PH7-Social-Dating-CMS remotely on your server using XAMPP:

  1. Download and install XAMPP on your server. You can download it from the Apache Friends website.

  2. Extract the PH7-Social-Dating-CMS files to a directory inside the "htdocs" folder of your XAMPP installation directory. For example, you can create a directory called "ph7cms" inside the "htdocs" folder and extract the files there.

  3. Create a new MySQL database using the phpMyAdmin tool that comes with XAMPP. You can access phpMyAdmin by typing "http://localhost/phpmyadmin" in your web browser.

  4. Import the "ph7cms_db.sql" file that comes with PH7-Social-Dating-CMS into the database you just created using the Import tab in phpMyAdmin.

  5. Rename the "config-sample.inc.php" file in the "inc" directory of the PH7-Social-Dating-CMS files to "config.inc.php".

  6. Open the "config.inc.php" file in a text editor and enter the database name, username, and password that you created in step 3.

  7. Save the "config.inc.php" file and close it.

  8. Open your web browser and type "http://localhost/ph7cms" in the address bar.

  9. Follow the on-screen instructions to complete the installation process.

ediblepeachey commented 1 year ago

This I found the config file: pH7-Social-Dating-CMS/_install/data/configs/config.ini

But having issues setting up XAMPP for remotely running on my server. Any thoughts welcome!

ediblepeachey commented 1 year ago

I've tried changing the code in the config.ini file to the following:

[database] type_name = mysql type = mysqli hostname = "localhost" username = "root" password = "" name = "ph7cms" prefix = "" charset = "utf8mb4" port = 3306

But then, in my browser, when I enter http://localhost/ph7cms, it goes to http://localhost/ph7cms/_install/ and says: This page isn’t workinglocalhost is currently unable to handle this request. HTTP ERROR 500

This is the original code in the config.ini file:

Screenshot 2023-03-29 at 21 11 53

This is what I've changed it to, matching my pHpMySQL database I've made:

Screenshot 2023-03-29 at 21 11 45

And this is the error I get in my browser

Screenshot 2023-03-29 at 21 11 30
euclid12 commented 1 year ago

1)install composer in your file project 2)Create a new MySQL database using the phpMyAdmin 3)delet the attribut required="required" line 25 in _install/views/base/config_system.tpl 4)comment the lines 209 / 310/311/312 in _install/controllers/InstallController.php 5)Then it will work for you, but do not enter the password while setting up bcz its not more required