issues installing phundament-2.1-b9 on mac (xampp)

43 views
Skip to first unread message

Lev

unread,
Jun 29, 2011, 6:37:51 PM6/29/11
to phundament-dev
Upon running ./yiic install after setting the db connection. I receive
the following output (see below). Any thoughts?

Application path set to: /Applications/XAMPP/xamppfiles/htdocs/
phundament
Opening database connection 'mysql:dbname=##;host=localhost' ...
PHP Error[2]: PDO::__construct(): [2002] No such file or directory
(trying to connect via unix:///var/mysql/mysql.sock)
in file /Applications/XAMPP/xamppfiles/htdocs/phundament/modules/p2/
commands/InstallCommand.php at line 118
#0 CConsoleApplication->displayError(2, PDO::__construct(): [2002] No
such file or directory (trying to connect via unix:///var/mysql/mysql.sock),
/Applications/XAMPP/xamppfiles/htdocs/phundament/modules/p2/commands/
InstallCommand.php, 118) called at [/Applications/XAMPP/xamppfiles/
htdocs/phundament/lib/yii/base/CErrorHandler.php:206]
#1 CErrorHandler->handleError(CErrorEvent Object ([code] => 2,
[message] => PDO::__construct(): [2002] No such file or directory
(trying to connect via unix:///var/mysql/mysql.sock),[file] => /
Applications/XAMPP/xamppfiles/htdocs/phundament/modules/p2/commands/
InstallCommand.php,[line] => 118,[sender] => CConsoleApplication
Object ([commandMap] => Array ([p2] => modules/p2/commands/
P2Command.php,[install] => modules/p2/commands/InstallCommand.php,
[backup] => modules/p2/commands/BackupCommand.php,[api] => modules/p2/
commands/ApiCommand.php),[] => /Applications/XAMPP/xamppfiles/htdocs/
phundament/commands,[] => CConsoleCommandRunner Object ([commands] =>
Array ([p2] => modules/p2/commands/P2Command.php,[install] => modules/
p2/commands/InstallCommand.php,[backup] => modules/p2/commands/
BackupCommand.php,[api] => modules/p2/commands/ApiCommand.php,
[message] => /Applications/XAMPP/xamppfiles/htdocs/phundament/lib/yii/
cli/commands/MessageCommand.php,[shell] => /Applications/XAMPP/
xamppfiles/htdocs/phundament/lib/yii/cli/commands/ShellCommand.php,
[webapp] => /Applications/XAMPP/xamppfiles/htdocs/phundament/lib/yii/
cli/commands/WebAppCommand.php),[] => ./yiic,[] => ,[] => ),[name] =>
P2 Console Application,[charset] => UTF-8,[sourceLanguage] => en_us,[]
=> ,[] => /Applications/XAMPP/xamppfiles/htdocs/phundament,[] => ,[]
=> ,[] => ,[] => ,[] => ,[] => ,[preload] => Array (),[behaviors] =>
Array (),[] => ,[] => ,[] => ,[] => ,[] => ,[] => Array (),[] => Array
(),[] => Array ([errorHandler] => CErrorHandler Object
([maxSourceLines] => 25,[adminInfo] => the webmaster,[discardOutput]
=> 1,[errorAction] => ,[] => ,[behaviors] => Array (),[] => 1,[] => ,
[] => )),[] => Array ([coreMessages] => Array ([class] =>
CPhpMessageSource,[language] => en_us,[basePath] => /Applications/
XAMPP/xamppfiles/htdocs/phundament/lib/yii/messages),[db] => Array
([class] => CDbConnection),[messages] => Array ([class] =>
CPhpMessageSource),[securityManager] => Array ([class] =>
CSecurityManager),[statePersister] => Array ([class] =>
CStatePersister),[urlManager] => Array ([class] => CUrlManager),
[request] => Array ([class] => CHttpRequest),[format] => Array
([class] => CFormatter)),[] => ,[] => ),[handled] => 1,[] => ,[] => ))
called at [/Applications/XAMPP/xamppfiles/htdocs/phundament/lib/yii/
base/CErrorHandler.php:98]
#2 CErrorHandler->handle(CErrorEvent Object ([code] => 2,[message] =>
PDO::__construct(): [2002] No such file or directory (trying to
connect via unix:///var/mysql/mysql.sock),[file] => /Applications/
XAMPP/xamppfiles/htdocs/phundament/modules/p2/commands/
InstallCommand.php,[line] => 118,[sender] => CConsoleApplication
Object ([commandMap] => Array ([p2] => modules/p2/commands/
P2Command.php,[install] => modules/p2/commands/InstallCommand.php,
[backup] => modules/p2/commands/BackupCommand.php,[api] => modules/p2/
commands/ApiCommand.php),[] => /Applications/XAMPP/xamppfiles/htdocs/
phundament/commands,[] => CConsoleCommandRunner Object ([commands] =>
Array ([p2] => modules/p2/commands/P2Command.php,[install] => modules/
p2/commands/InstallCommand.php,[backup] => modules/p2/commands/
BackupCommand.php,[api] => modules/p2/commands/ApiCommand.php,
[message] => /Applications/XAMPP/xamppfiles/htdocs/phundament/lib/yii/
cli/commands/MessageCommand.php,[shell] => /Applications/XAMPP/
xamppfiles/htdocs/phundament/lib/yii/cli/commands/ShellCommand.php,
[webapp] => /Applications/XAMPP/xamppfiles/htdocs/phundament/lib/yii/
cli/commands/WebAppCommand.php),[] => ./yiic,[] => ,[] => ),[name] =>
P2 Console Application,[charset] => UTF-8,[sourceLanguage] => en_us,[]
=> ,[] => /Applications/XAMPP/xamppfiles/htdocs/phundament,[] => ,[]
=> ,[] => ,[] => ,[] => ,[] => ,[preload] => Array (),[behaviors] =>
Array (),[] => ,[] => ,[] => ,[] => ,[] => ,[] => Array (),[] => Array
(),[] => Array ([errorHandler] => CErrorHandler Object
([maxSourceLines] => 25,[adminInfo] => the webmaster,[discardOutput]
=> 1,[errorAction] => ,[] => ,[behaviors] => Array (),[] => 1,[] => ,
[] => )),[] => Array ([coreMessages] => Array ([class] =>
CPhpMessageSource,[language] => en_us,[basePath] => /Applications/
XAMPP/xamppfiles/htdocs/phundament/lib/yii/messages),[db] => Array
([class] => CDbConnection),[messages] => Array ([class] =>
CPhpMessageSource),[securityManager] => Array ([class] =>
CSecurityManager),[statePersister] => Array ([class] =>
CStatePersister),[urlManager] => Array ([class] => CUrlManager),
[request] => Array ([class] => CHttpRequest),[format] => Array
([class] => CFormatter)),[] => ,[] => ),[handled] => 1,[] => ,[] => ))
called at [/Applications/XAMPP/xamppfiles/htdocs/phundament/lib/yii/
base/CApplication.php:649]
#3 CApplication->handleError(2, PDO::__construct(): [2002] No such
file or directory (trying to connect via unix:///var/mysql/mysql.sock),
/Applications/XAMPP/xamppfiles/htdocs/phundament/modules/p2/commands/
InstallCommand.php, 118, Array ([args] => Array ([0] => config/
local.php),[entryScript] => /Applications/XAMPP/xamppfiles/htdocs/
phundament/config/local.php,[basePath] => /Applications/XAMPP/
xamppfiles/htdocs/phundament,[config] => Array ([preload] => Array
([0] => zend,[1] => log,[2] => ELangHandler,[3] => browserUpdate),
[aliases] => Array ([lib] => application.lib),[import] => Array ([0]
=> application.modules.p2.behaviors.*,[1] =>
application.modules.p2.components.*,[2] =>
application.modules.p2.components.cellmanager.*,[3] =>
application.modules.p2.extensions.*,[4] =>
application.modules.p2.models.*,[5] => zii.widgets.jui.*,[6] =>
application.modules.p2.*,[7] => application.models.*,[8] =>
application.controllers.*,[9] => application.components.*,[10] =>
application.extensions.*,[11] => application.lib.lithron.*,[12] =>
application.modules.p2.components.*,[13] =>
application.modules.p2.extensions.*,[14] =>
application.modules.p2.models.*,[15] => zii.widgets.jui.*,[16] =>
application.modules.demo.models.*),[params] => Array
([protectedRuntimePath] => runtime,[protectedDataPath] => data,
[publicRuntimePath] => www/runtime,[publicRuntimeUrl] => /runtime,
[publicDataPath] => ../data,[publicDataUrl] => /data,
[p2.cellManager.availableWidgets] => Array
([p2.widgets.html.P2HtmlWidget] => HTML,[p2.widgets.blog.P2BlogWidget]
=> Blog,[p2.widgets.submenu.P2SubMenuWidget] => Sub Menu,
[p2.extensions.tweet.ETweet] => Tweet,
[p2.widgets.googlefeed.P2GoogleFeedWidget] => Feed,
[p2.widgets.video.P2VideoWidget] => Video),
[p2.cellManager.dialog.width] => 800px,[p2.cellManager.dialog.height]
=> 600,[p2.cellManager.dialog.position] => top,
[p2.cellManager.dialog.modal] => 1,[p2.cellManager.dialog.autoOpen]
=> ,[p2.feed.entry.url] => Array ([route] => /site/blog),
[p2.info.types] => Array ([P2Html] => Array ([blog] => Blog/News,
[mobile] => Mobile)),[p2.html.admin.descriptionLength] => 1024,
[p2.page.availableLayouts] => Array ([cms] => CMS),
[p2.page.availableViews] => Array ([/cms/default] => Default,[/cms/
simple] => Simple),[p2.file.importPaths] => Array ([0] => data/
p2FileImport),[p2.file.imagePresets] => Array ([default] => Array
([name] => Default 300x300,[commands] => Array ([resize] => Array ([0]
=> 300,[1] => 300),[quality] => 85),[savePublic] => 1,[type] => jpg),
[original] => Array ([name] => Original File & Size,[originalFile] =>
1),[fckbrowse] => Array ([commands] => Array ([resize] => Array ([0]
=> 150,[1] => 150),[quality] => 75),[type] => png)),
[extensions.pdf.swftoolsPath] => /opt/local/bin,[ckeditor] => Array
([type] => fckeditor,[height] => 400,[filebrowserWindowWidth] => 990,
[filebrowserWindowHeight] => 730,[resize_minWidth] => 150,
[toolbar_Custom] => Array ([0] => Array ([0] => Templates,[1] => -,[2]
=> Maximize,[3] => Source,[4] => ShowBlocks,[5] => -,[6] => Undo,[7]
=> Redo,[8] => -,[9] => PasteText,[10] => PasteFromWord),[1] => Array
([0] => JustifyLeft,[1] => JustifyCenter,[2] => JustifyRight,[3] =>
JustifyBlock,[4] => NumberedList,[5] => BulletedList,[6] => Outdent,
[7] => Indent),[2] => Array ([0] => Table,[1] => Blockquote,[2] =>
CreateDiv),[3] => /,[4] => Array ([0] => Image,[1] => Flash,[2] => -,
[3] => Link,[4] => Unlink),[5] => Array ([0] => Bold,[1] => Italic,[2]
=> Underline,[3] => -,[4] => UnorderedList,[5] => OrderedList,[6] => -,
[7] => RemoveFormat),[6] => Array ([0] => Format,[1] => -,[2] =>
Styles)),[toolbar] => Custom,[startupOutlineBlocks] => 1,
[pasteFromWordRemoveStyle] => 1,[pasteFromWordKeepsStructure] => 1,
[templates_replaceContent] => ,[forcePasteAsPlainText] => 1,
[contentsCss] => css/ckeditor.css,[bodyId] => ckeditor,[bodyClass] =>
ckeditor,[templates_files] => modules/p2/config/cktemplates.js,
[stylesCombo_stylesSet] => modules/p2/config/ckstyles.js,
[filebrowserBrowseUrl] => /p2/p2File/ckbrowse,
[filebrowserImageBrowseUrl] => /p2/p2File/ckbrowseimage,
[filebrowserFlashBrowseUrl] => /p2/p2File/ckbrowseflash),
[websiteCompany] => My Company,[languages] => Array ([en_us] =>
English,[de_de] => Deutsch,[ru_ru] => Russian),[adminEmail] =>
ad...@h17n.de,[p2.install.mode] => application,[p2.crud.baseModel] =>
DemoActiveRecord),[modules] => Array ([p2] => Array ([import] => Array
([0] => application.modules.p2.components.cellmanager.*),[params] =>
Array (),[components] => Array ([mailer] => Array ([class] =>
p2.components.P2Mailer))),[srbac] => Array ([userclass] => P2User,
[userid] => id,[username] => name,[debug] => ,[pageSize] => 30,
[superUser] => admin,[layout] => column1),[0] => demo,[gii] => Array
([class] => system.gii.GiiModule,[password] => phundament)),
[components] => Array ([zend] => Array ([class] =>
p2.extensions.zend.EZendAutoloader),[user] => Array ([class] =>
P2WebUser,[allowAutoLogin] => 1),[cache] => Array ([class] =>
CDummyCache),[authManager] => Array ([class] => CDbAuthManager,
[connectionID] => db,[itemTable] => p2_auth_item,[assignmentTable] =>
p2_auth_assignment,[itemChildTable] => p2_auth_item_child),[image] =>
Array ([class] =>
application.modules.p2.extensions.image.CImageComponent,[driver] => GD,
[params] => Array ([directory] => /opt/local/bin)),[db] => Array
([connectionString] => mysql:dbname=p2;host=localhost,[username] =>
root,[password] => ###,[charset] => utf8),[log] => Array ([class] =>
CLogRouter,[routes] => Array ([0] => Array ([class] => CFileLogRoute,
[levels] => error, warning),[1] => Array ([class] => CWebLogRoute,
[levels] => ,[categories] => ),[2] => Array ([class] => CFileLogRoute,
[levels] => error, info, warning, trace,[categories] =>
p2.*,system.db.*,extensions.*))),[errorHandler] => Array
([errorAction] => site/error),[ELangHandler] => Array ([class] =>
p2.extensions.langhandler.ELangHandler),[urlManager] => Array ([class]
=> p2.extensions.langhandler.ELangCUrlManager,[urlFormat] => path,
[showScriptName] => ,[rules] => Array ([<lang:[a-z]{2}_[a-z]{2,}>/cms/
<pageId:\d+>/<pageName:[a-zA-Z0-9.\-_]+>] => p2/p2Page/view,[<lang:[a-
z]{2}_[a-z]{2,}>/cms/<pageId:\d+>] => p2/p2Page/view,[<lang:[a-z]{2}
_[a-z]{2,}>/cms/<pageName:[a-zA-Z0-9.\-_]+>] => p2/p2Page/view,[<lang:
[a-z]{2}_[a-z]{2,}>/wiki/<page:[a-zA-Z0-9.\-_]+>] => site/wiki,[<lang:
[a-z]{2}_[a-z]{2,}>/wiki] => site/wiki,[<lang:[a-z]{2}_[a-z]{2,}>/blog/
<id:\d+>/<name:[a-zA-Z0-9.\-_]+>] => site/blog,[<lang:[a-z]{2}_[a-z]
{2,}>/blog/<id:\d+>] => site/blog,[<lang:[a-z]{2}_[a-z]{2,}>/blog] =>
site/blog,[<lang:[a-z]{2}_[a-z]{2,}>] => /,[<lang:[a-z]{2}_[a-z]{2,}>/
<_c>] => <_c>,[<lang:[a-z]{2}_[a-z]{2,}>/<_c>/<_a>] => <_c>/<_a>,
[<lang:[a-z]{2}_[a-z]{2,}>/<_m>/<_c>/<_a>] => <_m>/<_c>/<_a>)),
[widgetFactory] => Array ([class] => CWidgetFactory)),[basePath] => /
Applications/XAMPP/xamppfiles/htdocs/phundament/config/..,[name] =>
phundament 2,[theme] => yii),[appPath] => /Applications/XAMPP/
xamppfiles/htdocs/phundament,[errors] => ,[connectionString] =>
mysql:dbname=p2;host=localhost))
#4 PDO->__construct(mysql:dbname=p2;host=localhost, root, ####)
called at [/Applications/XAMPP/xamppfiles/htdocs/phundament/modules/p2/
commands/InstallCommand.php:118]
#5 InstallCommand->run(Array ()) called at [/Applications/XAMPP/
xamppfiles/htdocs/phundament/lib/yii/console/CConsoleCommandRunner.php:
62]
#6 CConsoleCommandRunner->run(Array ([0] => ./yiic,[1] => install))
called at [/Applications/XAMPP/xamppfiles/htdocs/phundament/lib/yii/
console/CConsoleApplication.php:88]
#7 CConsoleApplication->processRequest() called at [/Applications/
XAMPP/xamppfiles/htdocs/phundament/lib/yii/base/CApplication.php:135]
#8 CApplication->run() called at [/Applications/XAMPP/xamppfiles/
htdocs/phundament/lib/yii/yiic.php:33]
#9 require_once(/Applications/XAMPP/xamppfiles/htdocs/phundament/lib/
yii/yiic.php) called at [/Applications/XAMPP/xamppfiles/htdocs/
phundament/yiic.php:7]
#10 require_once(/Applications/XAMPP/xamppfiles/htdocs/phundament/
yiic.php) called at [/Applications/XAMPP/xamppfiles/htdocs/phundament/
yiic:4]

Schmunk

unread,
Jun 30, 2011, 6:11:46 PM6/30/11
to phundament-dev
On Jun 30, 12:37 am, Lev <lev.luz...@gmail.com> wrote:
> Upon running ./yiic install after setting the db connection. I receive
> the following output (see below). Any thoughts?
>
> Application path set to: /Applications/XAMPP/xamppfiles/htdocs/
> phundament
> Opening database connection 'mysql:dbname=##;host=localhost' ...
> PHP Error[2]: PDO::__construct(): [2002] No such file or directory
> (trying to connect via unix:///var/mysql/mysql.sock)

Looks like MySQL is not running or accessible.
Because the socket file is missing.
Reply all
Reply to author
Forward
0 new messages