Click here to Skip to main content
15,916,378 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Im new to php and github, I want to clone this project GitHub - RomaniukVadim/confessions_script: Confessions PHP Script is Anonymous Social network. People can fess up their darkest and deepest secrets anonymously. Script is using BootStrap 4 and it's responsive.[^] , but dont know how to set up datebase, since theres no given database to upload, any help will mean a lot!

What I have tried:

I tried everything, when you clone a git and type localhost/conffesions_script/, it leads you to install.php page, where it asks you to put DB Host, User, Password and Host, which I created in phpmyadmin and typed in, but it shows errors, so whats the right way to install this script?
Posted
Updated 28-Oct-18 12:39pm

1 solution

First copy the repository to your local machine. To do so, click the "clone or download" button, and copy the link and then run the following command.

sh
#this command will copy the master branch
git clone _copied_url

# this command will copy a targeted branch
git clone _copied_url -b target-branch


In the Installation instruction area, it clearly says what to do. Do that.
 
Share this answer
 
Comments
Member 13970084 28-Oct-18 18:48pm    
Im sorry, but where do i type that? In cmd? I have installed Git on PC
Mohibur Rashid 28-Oct-18 19:59pm    
what is your os? if windows then in command prompt, but, make sure your git is in environment path, you can also use absolute path for git command
Member 13970084 28-Oct-18 18:58pm    
I typed it in Git and this shows:

fatal: destination path 'confessions_script' already exists and is not an emptydirectory.
Mohibur Rashid 28-Oct-18 20:00pm    
so, you already have downloaded or cloned the script. its already there. move the data under your target directory for web
Member 13970084 28-Oct-18 20:03pm    
Man you didnt read it well, i know how to clone it and download but i dont know how to run it, maybe you will better understand it like this:

Im new to php and github, I want to clone this project https://github.com/RomaniukVadim/confessions_script, im using Xampp and localhost, first I downloaded the ZIP and uploaded files to xampp/htdocs/myfile, then when I type localhost/myfile it leads me to localhost/myfile/install.php page, and there it asks you to type DB Name, User, Password and Host, so I went to localhost/phpmyadmin and created datebase named root, so I typed all the informations needed on install.php page and it shows that the databases and tables are created, but error appears, saying theres error in line 26 in index.php, which is:

$conn = new mysqli($host, $dbuser, $dbpass, $dbname);

and then when I type localhost/myfile it redirects me to localhost/dashboard and I can't access the website or install.php page. What am I doing wrong, can someone help me? I shared GitHub link, maybe itll be easier if you look the code.

Thanks

I posted it on Stack Overflow too but noone answered.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900