alexistkd Posted August 15, 2013 Report Posted August 15, 2013 hi im getting this error: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known on line 267 in /home/compraya/public_html/lib/model.php what is it im trying to install via CLI and also via web and the same issue. thank you very much Quote
0 alexistkd Posted August 15, 2013 Author Report Posted August 15, 2013 Printing Stack Trace: #0 /home/compraya/public_html/lib/model.php(256): Model::makeDSN(NULL) #1 /home/compraya/public_html/lib/model.php(278): Model->makeConnection() #2 /home/compraya/public_html/lib/model.php(117): Model->lazyConnect() #3 /home/compraya/public_html/components/record/record.php(654): Model->query('SELECT `value` ...', Array) #4 /home/compraya/public_html/components/session/session.php(233): Record->fetch() #5 [internal function]: Session->sessionSelect('d29c131afa19c5e...') #6 /home/compraya/public_html/components/session/session.php(170): session_start() #7 /home/compraya/public_html/components/session/session.php(37): Session->sessionSet(1800, 'sessions', 'id', 'expire', 'value', 'blesta_sid') #8 [internal function]: Session->__construct() #9 [internal function]: ReflectionClass->newInstance() #10 /home/compraya/public_html/lib/loader.php(211): call_user_func_array(Array, Array) #11 /home/compraya/public_html/lib/loader.php(85): Loader::loadAndInitialize(Object(Main), 'component', Array) #12 /home/compraya/public_html/lib/controller.php(117): Loader::loadComponents(Object(Main), Array) #13 /home/compraya/public_html/app/app_controller.php(0): Controller->components() #14 /home/compraya/public_html/plugins/cms/cms_controller.php(13): AppController->preAction() #15 /home/compraya/public_html/plugins/cms/controllers/main.php(17): CmsController->preAction() #16 /home/compraya/public_html/lib/dispatcher.php(102): Main->preAction() #17 /home/compraya/public_html/index.php(21): Dispatcher::dispatch('/blesta') #18 {main} Quote
0 Tyson Posted August 15, 2013 Report Posted August 15, 2013 Check that your database information is correct. Is it located on a remote server? If so, make sure the DNS is working and a firewall isn't blocking the connection. Quote
0 alexistkd Posted August 15, 2013 Author Report Posted August 15, 2013 its local, a dedicated server the db is local Quote
0 alexistkd Posted August 15, 2013 Author Report Posted August 15, 2013 i tried that but im not sure, everything is running fine, but blesta not Quote
0 alexistkd Posted August 15, 2013 Author Report Posted August 15, 2013 i got this from cli: Attempting to verify database credentials... OK Checking InnoDB support... OK Installing database... 96/96 [========================================] 100% Completed. Configuring database... 23/23 [========================================] 100% Completed. Upgrading database... 4/4 [========================================] 100% 0/0 [========================================] 100% 2/2 [========================================] 100% 0/0 [========================================] 100% 2/2 [========================================] 100% 1/1 [========================================] 100% 1/1 [========================================] 100% 1/1 [========================================] 100% 1/1 [========================================] 100% Completed. Attempting to write config... Ensure that the file (/home/compraya/public_html/config/blesta-new.php) is writable. Press any key to retry. Quote
0 alexistkd Posted August 15, 2013 Author Report Posted August 15, 2013 its strange the dbs is filled perfectly but that error came up Quote
0 Tyson Posted August 15, 2013 Report Posted August 15, 2013 i got this from cli: Attempting to verify database credentials... OK Checking InnoDB support... OK Installing database... 96/96 [========================================] 100% Completed. Configuring database... 23/23 [========================================] 100% Completed. Upgrading database... 4/4 [========================================] 100% 0/0 [========================================] 100% 2/2 [========================================] 100% 0/0 [========================================] 100% 2/2 [========================================] 100% 1/1 [========================================] 100% 1/1 [========================================] 100% 1/1 [========================================] 100% 1/1 [========================================] 100% Completed. Attempting to write config... Ensure that the file (/home/compraya/public_html/config/blesta-new.php) is writable. Press any key to retry. The config file could not be created. Make sure that blesta-new.php is writable by the web server. Be sure the /config/ directory is writable as well. If this is a new installation, you should drop the tables it created before running the install again. Quote
0 alexistkd Posted August 15, 2013 Author Report Posted August 15, 2013 yes i tried chmod 777 everything nothing same issue php_network_getaddresses: getaddrinfo failed: Name or service not known on line Quote
0 alexistkd Posted August 15, 2013 Author Report Posted August 15, 2013 theres no blesta-config.php Quote
0 alexistkd Posted August 15, 2013 Author Report Posted August 15, 2013 when i create blesta-new.php it removes automatically Quote
0 Tyson Posted August 15, 2013 Report Posted August 15, 2013 The config file included with Blesta is blesta-new.php. Once you run the installation, the database tables are created and the blesta.php config file is created. Quote
0 Gualter Posted August 15, 2013 Report Posted August 15, 2013 Hey man, do not spam, create only one topic Quote
0 alexistkd Posted August 15, 2013 Author Report Posted August 15, 2013 u think before install i should chmod 777 blesta-new.php? Quote
0 Tyson Posted August 15, 2013 Report Posted August 15, 2013 u think before install i should chmod 777 blesta-new.php? /config/ and /config/blesta-new.php need to be writable. If you install through the web interface, this is a minimum requirement to proceed with the install. More details and a video on how to install Blesta. Quote
0 alexistkd Posted August 15, 2013 Author Report Posted August 15, 2013 my info: PHP version 5.1.3 or greater is required. Your version: 5.4.17. PASS The PDO extension is required. PASS The pdo_mysql extension is required. PASS The curl extension with a minimum version of 7.10.5 is required. Your version: 7.24.0 PASS The openssl extension with a minimum version of 0.9.6 is required. Your version: 1.0.0 PASS The ionCube Loader extension is required. PASS The config file (/home/compraya/public_html/config/blesta-new.php) and directory (/home/compraya/public_html/config/) must be writable by the webserver (you can change these back after installation is complete). PASS Recommended Requirements: PASS For best results, PHP 5.2 or greater is recommended. PASS The mcrypt extension is recommended for better performance. PASS The gmp extension is highly recommended for better performance. PASS The json extension is recommended for better performance. PASS For better performance ensure that /home/compraya/public_html/cache/ is writable by the webserver. PASS For best results a memory limit of at least 32M is recommended. Your setting: 512M PASS For added security, 'register_globals' should be disabled. PASS The imap extension is required to send and receive mail via SMTP and IMAP. PASS The simplexml and libxml extensions are highly recommended as they may be required to interface with some systems. PASS The zlib extension is highly recommend for better performance. PASS Quote
0 alexistkd Posted August 15, 2013 Author Report Posted August 15, 2013 sorry to ask too much its because im trying to test blesta to buy it sorry Quote
0 alexistkd Posted August 15, 2013 Author Report Posted August 15, 2013 also i saw others websites with same issue http://www.hosting.spiderwebdesign.ca/ http://www.redcontrol.com.ar/ im concerned if this could be a bug or its our server config. Quote
0 alexistkd Posted August 15, 2013 Author Report Posted August 15, 2013 my db config blesta.php Configure::set("Blesta.database_info", array( 'driver' => "mysql", 'host' => "{database_host}", //'port' => "8889", 'database' => "{database_name}", 'user' => "{database_user}", 'pass' => "{database_password}", 'persistent' => false, 'charset_query' => "SET NAMES 'utf8'", 'options' => array() ) that should not show my db real info? where is stored the real info Quote
0 Michael Posted August 15, 2013 Report Posted August 15, 2013 I believe that is filled in on installation. I'm going to try a demo installation in a minute. Quote
0 Tyson Posted August 15, 2013 Report Posted August 15, 2013 also i saw others websites with same issue http://www.hosting.spiderwebdesign.ca/ http://www.redcontrol.com.ar/ im concerned if this could be a bug or its our server config. The error with those sites indicate the database credentials are incorrect. my db config blesta.php Configure::set("Blesta.database_info", array( 'driver' => "mysql", 'host' => "{database_host}", //'port' => "8889", 'database' => "{database_name}", 'user' => "{database_user}", 'pass' => "{database_password}", 'persistent' => false, 'charset_query' => "SET NAMES 'utf8'", 'options' => array() ) that should not show my db real info? where is stored the real info Is that exactly how your database information appears in blesta.php? The tags (e.g. {database_password}) should be replaced with your database password. If your Blesta installation went so far as to create the database tables, populate data, and created the blesta.php config file, then try to edit it to set your database, host, user, and password. Quote
0 Michael Posted August 15, 2013 Report Posted August 15, 2013 It works for me video: http://screencast.com/t/ugMjFYL4 Quote
0 alexistkd Posted August 16, 2013 Author Report Posted August 16, 2013 awesome for some reason the blesta.php is not updated with the db information but editing manually worked, thank so much for all the help guys appreciate it thank you again. Michael 1 Quote
0 MarkTheDaemon Posted August 16, 2013 Report Posted August 16, 2013 Have had exactly the same issue when installing 3.0.0 - all permissions were checked but the installer threw an error about blesta-new.php not being writeable, however the DB had been populated and once I'd written the config file manually I was able to carry on with the initial setup screen. Quote
0 Michael Posted August 16, 2013 Report Posted August 16, 2013 Have had exactly the same issue when installing 3.0.0 - all permissions were checked but the installer threw an error about blesta-new.php not being writeable, however the DB had been populated and once I'd written the config file manually I was able to carry on with the initial setup screen. What PHP version / Mysql version did you have? It worked fine on my server in the video. Quote
Question
alexistkd
hi im getting this error:
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known on line 267 in /home/compraya/public_html/lib/model.php
what is it im trying to install via CLI and also via web and the same issue.
thank you very much
27 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.