ResidenceCMS icon indicating copy to clipboard operation
ResidenceCMS copied to clipboard

installation problem

Open g12345v opened this issue 3 years ago • 6 comments

Hello I have problem in step 2

Could not find package coderberg/residence-cms with stability stable in a v ersion installable using your PHP version, PHP extensions and Composer vers ion. 123

Does anyone has solution for this?

g12345v avatar Aug 14 '22 15:08 g12345v

Hello @g12345v What Version of PHP/Composer are you using on your server?

php -v
composer -V

Coderberg avatar Aug 15 '22 07:08 Coderberg

my php ver 8.1.6
Composer Ver 2.3.10 I use xampp v3.3.0

I've already finished step 2

now I'm in step 3

I'm the beginner , don't know or understand

  • (step 4)how to configure web server's document / web root to be the public directory.
  • (step 5) Create .env.local from .env file and fill in your database credentials
  • (step 6)Run $ php bin/console app:install -(step 8) To use feedback forms, configure MAILER_DSN in .env.local

Tests -Modify your DATABASE_URL config in .env.test.local

-Execute this command to run tests:

php bin/php unit

Could you please explain [how to] and [which file / folder] I need to configure , run code etc?

Thank you.

g12345v avatar Aug 17 '22 08:08 g12345v

@g12345v What operating system are you running XAMPP on?

Coderberg avatar Aug 18 '22 08:08 Coderberg

Microsoft Windows 10

g12345v avatar Aug 19 '22 03:08 g12345v

@g12345v Sorry for the long wait.

The sequence of actions should be something like this:

  1. Enable the GD extension by uncommenting the following line in the xampp/php/php.ini:
extension=gd
  1. Click the "Shell" button in the XAMPP control panel

  2. In the terminal that opens, enter these commands:

cd htdocs
composer create-project coderberg/residence-cms mywebsite.loc
cd mywebsite.loc
  1. In the C:\xampp\htdocs\mywebsite.loc folder, create a file named .env.local with the following content:
APP_ENV=dev
APP_SECRET=6feff92fb5278f215ddca9545d19fcd3
DATABASE_URL="mysql://root:@127.0.0.1:3306/residence"
MAILER_DSN=null://localhost
LANGUAGE_CODE=en
LOCK_DSN=flock
  1. In the open terminal, run the command:
php bin/console app:install
  1. Open the file C:\xampp\apache\conf\extra\httpd-vhosts.conf and add the following lines to the end:
<VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs/mywebsite.loc/public"
    ServerName mywebsite.localhost
    ServerAlias mywebsite.localhost
 
    ErrorLog "logs/mywebsite.log"
    CustomLog "logs/mywebsite.log" common
</VirtualHost>
  1. Restart the Apache module (Stop/Start button).

  2. Go to http://mywebsite.localhost/

Coderberg avatar Aug 22 '22 11:08 Coderberg

it worked ,Thank you so much!!! @Coderberg

g12345v avatar Aug 25 '22 10:08 g12345v