A
A
andrewnsk2017-01-31 12:44:55
Zend Framework
andrewnsk, 2017-01-31 12:44:55

How to transfer a site on zend framework to another hosting, for a beginner?

Hello!
Got a site on zend framework 2.5.1. Consisting of the following folders and files:
-config
-data
-module
-public_html
-vendor
-vendor_mt
composer.json
composer.lock
composer.phar
init_autoloader.php
Uploaded to my hosting. Connected the database to /config/autoload/global.php
On startup it says You don't have permission to access / on this server.
I placed the content of public_html in the root of the site and an error appeared:
Fatal error: Uncaught exception 'RuntimeException' with message 'Unable to load ZF2. Run `php composer.phar install` or define a ZF2_PATH environment variable.' in /home/a0036769/domains/a0036769.xsph.ru/public_html/init_autoloader.php:53 Stack trace: #0 /home/a0036769/domains/a0036769.xsph.ru/public_html/index.php(27): require( ) #1 {main} thrown in /home/a0036769/domains/a0036769.xsph.ru/public_html/init_autoloader.php on line 53

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Bobylev, 2017-01-31
@andrewnsk

Did you read the text of the error? It says that you do not have / do not have ZF. And it even says what to do: install it through the composer or specify the path to it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question