Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide installation info, Zend error #1

Open
nekromoff opened this issue Apr 9, 2017 · 1 comment
Open

Provide installation info, Zend error #1

nekromoff opened this issue Apr 9, 2017 · 1 comment

Comments

@nekromoff
Copy link

nekromoff commented Apr 9, 2017

Please, provide clear installation info. After installing, I get:

Fatal error: Uncaught Zend\Session\Exception\InvalidArgumentException: Invalid save_path provided; not a directory in /var/www/html/downloads/software/src/vendor/zendframework/zendframework/library/Zend/Session/Config/StandardConfig.php:229 Stack trace: #0 /var/www/html/downloads/software/src/vendor/zendframework/zendframework/library/Zend/Session/Config/SessionConfig.php(158): Zend\Session\Config\StandardConfig->setSavePath(false) #1 /var/www/html/downloads/software/src/vendor/zendframework/zendframework/library/Zend/Session/Config/StandardConfig.php(114): Zend\Session\Config\SessionConfig->setSavePath(false) #2 /var/www/html/downloads/software/src/module/Application/Module.php(69): Zend\Session\Config\StandardConfig->setOptions(Array) #3 [internal function]: Application\Module->onBootstrap(Object(Zend\Mvc\MvcEvent)) #4 /var/www/html/downloads/software/src/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent)) #5 /var/www/html/downloads/softwar in /var/www/html/downloads/software/src/vendor/zendframework/zendframework/library/Zend/Session/Config/StandardConfig.php on line 229
@nekromoff
Copy link
Author

These lines should help with installation:

  1. Create /data/session directory in /software/src/ and make it writable
  2. Add the following lines to /software/src/config/autload/global.php:
  'db' => array(
      'driver'         => 'Pdo',
      'dsn'            => 'mysql:dbname=lastenrad;host=localhost',
   ),
   'service_manager' => array(
      'factories' => array(
         'Zend\Db\Adapter\Adapter' => 'Zend\Db\Adapter\AdapterServiceFactory',
      ),
   ),

to make it look like this:

return array(
	'email_receiver' => '[email protected]',
	'email_sender' => '[email protected]',
    'db' => array(
      'driver'         => 'Pdo',
      'dsn'            => 'mysql:dbname=lastenrad;host=localhost',
   ),
   'service_manager' => array(
      'factories' => array(
         'Zend\Db\Adapter\Adapter' => 'Zend\Db\Adapter\AdapterServiceFactory',
      ),
   ),
);

Reload in browser:
http://yourhost/software/src/public/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant