23. PDOException
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­Connector.php47
22. PDO __construct
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­Connector.php47
21. Illuminate\Database\Connectors\Connector createConnection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­MySqlConnector.php20
20. Illuminate\Database\Connectors\MySqlConnector connect
…/­bootstrap/­compiled.php5685
19. Illuminate\Database\Connectors\ConnectionFactory createSingleConnection
…/­bootstrap/­compiled.php5681
18. Illuminate\Database\Connectors\ConnectionFactory make
…/­bootstrap/­compiled.php5593
17. Illuminate\Database\DatabaseManager makeConnection
…/­bootstrap/­compiled.php5548
16. Illuminate\Database\DatabaseManager connection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Support/­Facades/­Schema.php26
15. Illuminate\Support\Facades\Schema getFacadeAccessor
…/­bootstrap/­compiled.php1411
14. Illuminate\Support\Facades\Facade getFacadeRoot
…/­bootstrap/­compiled.php1445
13. Illuminate\Support\Facades\Facade __callStatic
…/­app/­models/­LangModel.php12
12. Illuminate\Support\Facades\Schema hasTable
…/­app/­models/­LangModel.php12
11. LangModel getLangConfig
…/­vendor/­botnd/­shop/­src/­routes.php15
10. require
…/­vendor/­botnd/­shop/­src/­Botnd/­Shop/­ShopServiceProvider.php34
9. Botnd\Shop\ShopServiceProvider boot
…/­bootstrap/­compiled.php615
8. Illuminate\Foundation\Application Illuminate\Foundation\{closure}
<#unknown>0
7. array_walk
…/­bootstrap/­compiled.php616
6. Illuminate\Foundation\Application boot
…/­bootstrap/­compiled.php677
5. Illuminate\Foundation\Application handle
…/­bootstrap/­compiled.php5797
4. Illuminate\Session\Middleware handle
…/­bootstrap/­compiled.php6404
3. Illuminate\Cookie\Queue handle
…/­bootstrap/­compiled.php6351
2. Illuminate\Cookie\Guard handle
…/­bootstrap/­compiled.php8430
1. Stack\StackedHttpKernel handle
…/­bootstrap/­compiled.php639
0. Illuminate\Foundation\Application run
/­var/­www/­biodobryva/­data/­www/­biodobryva.com/­index.php49

PDOException (2002)

Callstack information; navigate with mouse or keyboard using Ctrl+↑ or Ctrl+↓
Copy-to-clipboard button
Exception message and its type
Code snippet where the error was thrown
Server state information
Application provided context information
PDOException thrown with message "SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)" Stacktrace: #23 PDOException in /var/www/biodobryva/data/www/biodobryva.com/local/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:47 #22 PDO:__construct in /var/www/biodobryva/data/www/biodobryva.com/local/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:47 #21 Illuminate\Database\Connectors\Connector:createConnection in /var/www/biodobryva/data/www/biodobryva.com/local/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php:20 #20 Illuminate\Database\Connectors\MySqlConnector:connect in /var/www/biodobryva/data/www/biodobryva.com/local/bootstrap/compiled.php:5685 #19 Illuminate\Database\Connectors\ConnectionFactory:createSingleConnection in /var/www/biodobryva/data/www/biodobryva.com/local/bootstrap/compiled.php:5681 #18 Illuminate\Database\Connectors\ConnectionFactory:make in /var/www/biodobryva/data/www/biodobryva.com/local/bootstrap/compiled.php:5593 #17 Illuminate\Database\DatabaseManager:makeConnection in /var/www/biodobryva/data/www/biodobryva.com/local/bootstrap/compiled.php:5548 #16 Illuminate\Database\DatabaseManager:connection in /var/www/biodobryva/data/www/biodobryva.com/local/vendor/laravel/framework/src/Illuminate/Support/Facades/Schema.php:26 #15 Illuminate\Support\Facades\Schema:getFacadeAccessor in /var/www/biodobryva/data/www/biodobryva.com/local/bootstrap/compiled.php:1411 #14 Illuminate\Support\Facades\Facade:getFacadeRoot in /var/www/biodobryva/data/www/biodobryva.com/local/bootstrap/compiled.php:1445 #13 Illuminate\Support\Facades\Facade:__callStatic in /var/www/biodobryva/data/www/biodobryva.com/local/app/models/LangModel.php:12 #12 Illuminate\Support\Facades\Schema:hasTable in /var/www/biodobryva/data/www/biodobryva.com/local/app/models/LangModel.php:12 #11 LangModel:getLangConfig in /var/www/biodobryva/data/www/biodobryva.com/local/vendor/botnd/shop/src/routes.php:15 #10 require in /var/www/biodobryva/data/www/biodobryva.com/local/vendor/botnd/shop/src/Botnd/Shop/ShopServiceProvider.php:34 #9 Botnd\Shop\ShopServiceProvider:boot in /var/www/biodobryva/data/www/biodobryva.com/local/bootstrap/compiled.php:615 #8 Illuminate\Foundation\Application:Illuminate\Foundation\{closure} in <#unknown>:0 #7 array_walk in /var/www/biodobryva/data/www/biodobryva.com/local/bootstrap/compiled.php:616 #6 Illuminate\Foundation\Application:boot in /var/www/biodobryva/data/www/biodobryva.com/local/bootstrap/compiled.php:677 #5 Illuminate\Foundation\Application:handle in /var/www/biodobryva/data/www/biodobryva.com/local/bootstrap/compiled.php:5797 #4 Illuminate\Session\Middleware:handle in /var/www/biodobryva/data/www/biodobryva.com/local/bootstrap/compiled.php:6404 #3 Illuminate\Cookie\Queue:handle in /var/www/biodobryva/data/www/biodobryva.com/local/bootstrap/compiled.php:6351 #2 Illuminate\Cookie\Guard:handle in /var/www/biodobryva/data/www/biodobryva.com/local/bootstrap/compiled.php:8430 #1 Stack\StackedHttpKernel:handle in /var/www/biodobryva/data/www/biodobryva.com/local/bootstrap/compiled.php:639 #0 Illuminate\Foundation\Application:run in /var/www/biodobryva/data/www/biodobryva.com/index.php:49

SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)

	 */
	public function createConnection($dsn, array $config, array $options)
	{
		$username = array_get($config, 'username');
 
		$password = array_get($config, 'password');
 
		return new PDO($dsn, $username, $password, $options);
	}
 
	 */
	public function createConnection($dsn, array $config, array $options)
	{
		$username = array_get($config, 'username');
 
		$password = array_get($config, 'password');
 
		return new PDO($dsn, $username, $password, $options);
	}
 
		$dsn = $this->getDsn($config);
 
		$options = $this->getOptions($config);
 
		// We need to grab the PDO options that should be used while making the brand
		// new connection instance. The PDO options control various aspects of the
		// connection's behavior, and some might be specified by the developers.
		$connection = $this->createConnection($dsn, $config, $options);
 
		if (isset($config['unix_socket']))
        if (isset($config['read'])) {
            return $this->createReadWriteConnection($config);
        }
        return $this->createSingleConnection($config);
    }
    protected function createSingleConnection(array $config)
    {
        $pdo = $this->createConnector($config)->connect($config);
        return $this->createConnection($config['driver'], $pdo, $config['database'], $config['prefix'], $config);
    }
    }
    public function make(array $config, $name = null)
    {
        $config = $this->parseConfig($config, $name);
        if (isset($config['read'])) {
            return $this->createReadWriteConnection($config);
        }
        return $this->createSingleConnection($config);
    }
    protected function createSingleConnection(array $config)
        if (isset($this->extensions[$name])) {
            return call_user_func($this->extensions[$name], $config, $name);
        }
        $driver = $config['driver'];
        if (isset($this->extensions[$driver])) {
            return call_user_func($this->extensions[$driver], $config, $name);
        }
        return $this->factory->make($config, $name);
    }
    protected function prepare(Connection $connection)
        $this->app = $app;
        $this->factory = $factory;
    }
    public function connection($name = null)
    {
        list($name, $type) = $this->parseConnectionName($name);
        if (!isset($this->connections[$name])) {
            $connection = $this->makeConnection($name);
            $this->setPdoForType($connection, $type);
            $this->connections[$name] = $this->prepare($connection);
	/**
	 * Get the registered name of the component.
	 *
	 * @return string
	 */
	protected static function getFacadeAccessor()
	{
		return static::$app['db']->connection()->getSchemaBuilder();
	}

    {
        if ($root = static::getFacadeRoot()) {
            return get_class($root);
        }
    }
    public static function getFacadeRoot()
    {
        return static::resolveFacadeInstance(static::getFacadeAccessor());
    }
    protected static function getFacadeAccessor()
    }
    public static function setFacadeApplication($app)
    {
        static::$app = $app;
    }
    public static function __callStatic($method, $args)
    {
        $instance = static::getFacadeRoot();
        switch (count($args)) {
            case 0:
class LangModel extends Eloquent {
 
	protected $table = 'languages';	
 
	public static function getLangConfig() {
		$out = array();
 
		if (!Schema::hasTable('languages'))
			return array('default'=>array('code'=>'ru'), 'languages'=>array('ru'));
 
class LangModel extends Eloquent {
 
	protected $table = 'languages';	
 
	public static function getLangConfig() {
		$out = array();
 
		if (!Schema::hasTable('languages'))
			return array('default'=>array('code'=>'ru'), 'languages'=>array('ru'));
 
| Extending Route object with Shop-specific routes
|
*/
 
 
$lang = App::getLocale();
 
$lang_config = LangModel::getLangConfig();
 
 
	 * Bootstrap the application events.
	 *
	 * @return void
	 */
	public function boot() {
		$this->package('botnd/shop');
		require __DIR__.'/../../helpers.php';
		require __DIR__.'/../../routes.php';
		require __DIR__.'/../../view_composers.php';
		require __DIR__.'/../../events.php';
    }
    public function boot()
    {
        if ($this->booted) {
            return;
        }
        array_walk($this->serviceProviders, function ($p) {
            $p->boot();
        });
        $this->bootApplication();
<#unknown>
    public function boot()
    {
        if ($this->booted) {
            return;
        }
        array_walk($this->serviceProviders, function ($p) {
            $p->boot();
        });
        $this->bootApplication();
    }
            return $m['class'] != $class;
        });
    }
    public function handle(SymfonyRequest $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
    {
        try {
            $this->refreshRequest($request = Request::createFromBase($request));
            $this->boot();
            return $this->dispatch($request);
        } catch (\Exception $e) {
    public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
    {
        $this->checkRequestForArraySessions($request);
        if ($this->sessionConfigured()) {
            $session = $this->startSession($request);
            $request->setSession($session);
        }
        $response = $this->app->handle($request, $type, $catch);
        if ($this->sessionConfigured()) {
            $this->closeSession($session);
    public function __construct(HttpKernelInterface $app, CookieJar $cookies)
    {
        $this->app = $app;
        $this->cookies = $cookies;
    }
    public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
    {
        $response = $this->app->handle($request, $type, $catch);
        foreach ($this->cookies->getQueuedCookies() as $cookie) {
            $response->headers->setCookie($cookie);
    public function __construct(HttpKernelInterface $app, Encrypter $encrypter)
    {
        $this->app = $app;
        $this->encrypter = $encrypter;
    }
    public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
    {
        return $this->encrypt($this->app->handle($this->decrypt($request), $type, $catch));
    }
    protected function decrypt(Request $request)
    public function __construct(HttpKernelInterface $app, array $middlewares)
    {
        $this->app = $app;
        $this->middlewares = $middlewares;
    }
    public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
    {
        return $this->app->handle($request, $type, $catch);
    }
    public function terminate(Request $request, Response $response)
        if ($this->isBooted()) {
            $this->fireAppCallbacks(array($callback));
        }
    }
    public function run(SymfonyRequest $request = null)
    {
        $request = $request ?: $this['request'];
        $response = with($stack = $this->getStackedClient())->handle($request);
        $response->send();
        $stack->terminate($request, $response);
| Once we have the application, we can simply call the run method,
| which will execute the request and send the response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have whipped up for them.
|
*/
SassCompiler::run("scss/", "css/",'scss_formatter');
$app->run();
 
empty
empty
empty
empty
empty
Key Value
PATH /usr/local/bin:/usr/bin:/bin
REDIRECT_HANDLER application/x-httpd-php5
REDIRECT_STATUS 200
HTTPS on
UNIQUE_ID Zfl18N07@7tsFE3ju3yhjwAAABU
HTTP_HOST biodobryva.com
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_PORT 443
HTTP_CONNECTION close
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
SERVER_SIGNATURE
SERVER_SOFTWARE Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 PHP/5.4.16
SERVER_NAME biodobryva.com
SERVER_ADDR 127.0.0.1
SERVER_PORT 80
REMOTE_ADDR 54.166.234.171
DOCUMENT_ROOT /var/www/biodobryva/data/www/biodobryva.com
REQUEST_SCHEME http
CONTEXT_PREFIX /php-bin/
CONTEXT_DOCUMENT_ROOT /var/www/php-bin-isp-php56/biodobryva/
SERVER_ADMIN webmaster@biodobryva.com
SCRIPT_FILENAME /var/www/biodobryva/data/www/biodobryva.com/index.php
REMOTE_PORT 37672
REDIRECT_URL /index.php
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /preimuschestva
SCRIPT_NAME /index.php
ORIG_SCRIPT_FILENAME /var/www/php-bin-isp-php56/biodobryva/php
ORIG_PATH_INFO /index.php
ORIG_PATH_TRANSLATED /var/www/biodobryva/data/www/biodobryva.com/index.php
ORIG_SCRIPT_NAME /php-bin/php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710847472.867
REQUEST_TIME 1710847472
empty
0. Whoops\Handler\PrettyPageHandler