ovflowd / chocolatey

:chocolate_bar: The open source Habbo.com Engine & CMS
GNU General Public License v3.0
51 stars 19 forks source link

Error #368

Closed talhayetkin closed 6 years ago

talhayetkin commented 6 years ago

Can anyone help me with this problem? http://prntscr.com/hl1eat ?

TheOmanNorge commented 6 years ago

What webserver are you using? Xampp, IIS, ? 😀

I know how do to it on IIS and cPanel. Might be able to help you. Please tell me. 👍

TheOmanNorge commented 6 years ago

Example for changing documentroot on IIS. If you have something else please say so.

Have all the requirements in order to run Chocolatey CMS. (PHP 7.1, mysql and so on) Make sure you have uploaded the content of Chocolatey CMS into your root folder, as in this case is wwwroot

For this tutorial I'm running PHP v7.1.7

Example: wwwroot

As you see in the image there is a folder called public fantastic!

Open up IIS Manager and go to this location: Internet Imformation Services -> Sites -> Default Web Site -> Basic settings.

You want to change the Physical Path:

Before and After example images.

Before

before

After [Needs to be changed to this]

after

Go to your php.ini and find this: allow_url_fopen & allow_url_include and set those values to On

You get error messages that is saying 500 error. Go to your php.ini file and locate: display_errors set value to On

Alright, I've got the error messages on my screen saying something about permissions Example:

permission_failed

Right click on wwwroot or at your selected rootfolder. Click Properties & then Security

Select Users and give him full permissions. Example:

users

Oy! I've now got this error!!! plz help..

whops

Check your chocolatey.php file inside the Config folder.

Check and see that your site url is alright. Didnt help?

Make sure your .env details is correct. Upload .sql database file arcturus-1.11.0.sql to your db.

Install Composer https://getcomposer.org/

Open up CMD Remember to change location on cmd. Example: cd c:\inetpub\wwwroot Execute: php artisan migrate

I know I also went out of subject right here now, and didnt stay completely on the topic of documentroot. Just wanted to give you these tips, in case you come across the same problems as me.

Enjoy

enjoy

talhayetkin commented 6 years ago

Can you make a tutorial how to run php artisan migrate ?

TheOmanNorge commented 6 years ago

How to install Composer and Migrating. Sorry if this tutorial is not good. Did this in a hurry!

Go to https://getcomposer.org/download/ Install Composer_Setup.exe

Be sure that you select the right PHP version! Very important! This is for me, might be different from yours!

composer_install1

Restart your PC after installation.

Now go and open console. CMD. Go and select the path. Run cd pathtoyour-rootfolder Example for my system: cd C:\inetpub\wwwroot

When your there. Run composer install and after that run php artisan migrate

Hi! But I now got this error [Fileinfo does not exist.] Go to php.ini and all the way down to extentions. Enable extension=php_fileinfo.dll

Error: cmd_error

How to fix: fileinfo_fix

Take a look at my images down here. It might be to help if you don't understand. 👍

You can open up CMD and jump right into your location by doing this: openupcmd

This is also a way to change path: cmd2

By typing in dir it then shows whats inside the location your at: directory_wwwroot

Running composer install composer_install2

Downloading files [composer install] composer_install3

Running php artisan migrate php_artisan_migrate2

ovflowd commented 6 years ago

Amazing setup! @TheOmanNorge adding it on the Chocolatey Wiki!

TheOmanNorge commented 6 years ago

@sant0ro Thank you. 😅

It's not the greatest tutorial, since i feel that with all the images it's kinda messy. And I would have tried to have done a much better job with the tutorial if I did know before hand that It would be going into the tutorial section one day.

Just saying in case people one day is complaining about it. Anyway if that is the case one day, I'll be here superfast and helping out if someone didnt understand it.

But I appreciate that you added it, and again thank you! 👍

ovflowd commented 6 years ago

@TheOmanNorge if you want to edit. I sent to you an invite to be collaborator of the project. Just accept it and you can by yourself edit it :)

https://github.com/sant0ro/chocolatey/invitations

TheOmanNorge commented 6 years ago

Done. Thanks, I'll find time some day and do it. 👍