PHP & MYSQL: Novice To Ninja Installation Difficulties

In the installation process, I’m having quite a lot of difficulties. When I type in “git clone https://github.com/swder/homestead_improved” into gitbash, all it returns is "fatal: destination path ‘homestead_improved’ already exists and is not an empty. What would be the solution to this.

The repository does not exist. Also, there is already a directory with the same name where your are, so you have to remove it, or let git use some other directory.

1 Like

It’s “swader” not “swder”

2 Likes

Thanks, also how do you store files inside the public directory

I’m having difficulties on this part of the book(pg.12) as that there’s no clear instructions on how to do store files inside the directory?

What book?

In PHP & MYSQL:Novice to Ninja

Can you clarify please, are you talking about writing PHP code to upload files to your server, or are you still on the installation side of things? If the former, have a scan down the forum a little bit as there are several examples of PHP upload scripts with varying capabilities. If the latter, perhaps you could explain in more detail what the problem is.

Are you using the latest (6th) edition of the book? Can I check which chapter and page number you mean, as page 12 doesn’t seem relevant to your question.

Hi validlevi,

I’m afraid I’m not entirely sure what you mean. When you follow the instructions it creates a directory called Public. You need to place all your PHP files inside this directory. At which point did you get stuck? Did you follow the instructions and did the Public directory get created after running the commands

git clone https://github.com/swader/homestead_improved my_project
cd my_project; mkdir -p Project/public
bin/folderfix.sh

Currently, I made the index.html using a text editor. However, my current challenge I don’t know how to write/store it into the public directory so that it’s visible on the web server and when I type in https://192.168.10.10/ into the browser.

I’m not sure I can be any clearer than it is in the book. As it says in the book, before running vagrant up, you first need to navigate to the directory you wish to store your files in using cd, there are examples of doing this in the book and follows on:

One of the directories that was created is called Project. Open this directory and the public directory inside it. This is where you’ll store your PHP scripts, HMTL files, CSS files and images. Any files placed inside the public directory will be accessible on your virtual server.

You will need to save your files, from your editor in this directory. If you ran vagrant up from C:\Users\validlevi\documents you will need to store your files in C:\Users\validlevi\documents\Project\public.

Thanks.

I finally stored it in the directory C:\Users\validlevi\Project\public. How do I see the web page on the virtual server?

You already answered this:

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.