Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorsalmansqadeer
    Hey Guys,

    Im completely new to the Akelos framework, but familiar with PHP - when I came across the framework I knew it was exactly what I was looking for - but for the life of me I cannot get it to install properly.

    Here are the steps that I go through and details of my environment:

    1) I am on a mac intel, using MAMP as my main environment
    2) I have copied the Akelos files into my project folder.
    3) When I navigate to localhost:8888 (as setup by mamp) FIRST I get this error message:

    (Warning) Cannot modify header information - headers already sent by (output started at /Users/Salman/Work/_PERSONAL PROJECTS/Web Development/PHP_Development/SPM/public/index.php:50)

    BUT when I refreshed the page that warning disappears and I successfully obtain the Akelos Getting Started page

    4) I setup the Database configuration, and proceed
    5) I successfully set the language settings
    6) FIRST I get the following error:

    (User Error) Could not create or alter table akelos_migrations using the SQL
    CREATE TABLE akelos_migrations (
    name VARCHAR(255),
    version INTEGER,
    updated_at DATETIME,
    created_at DATETIME,
    PRIMARY KEY (id)

    7) When I refresh - everything "appears" to work fine and I am taken to to the "Welcome Aboard" page
    8) When I try to run Script / Generate I get the following message:

    Warning: mysql_connect(): [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock) in /Users/Salman/Work/_PERSONAL PROJECTS/Web Development/PHP_Development/SPM/vendor/adodb/drivers/adodb-mysql.inc.php on line 353

    Warning: mysql_connect(): No such file or directory in /Users/Salman/Work/_PERSONAL PROJECTS/Web Development/PHP_Development/SPM/vendor/adodb/drivers/adodb-mysql.inc.php on line 353

    Fatal error: Connection to the database failed. mysqlt://salman:******@localhost/socialPM_dev
    in /Users/Salman/Work/_PERSONAL PROJECTS/Web Development/PHP_Development/SPM/lib/AkActiveRecord/AkDbAdapter.php on line 66

    (This happens even if I try to manually create the akelos_migrations table using PHP myadmin and SQL).

    I would love to be able to use this framework - but I absolutely CANT GET PAST THIS!!! Please help!!!
    • CommentAuthordale
    I'm not entirely sure but generally when an error occurs that mentions the .sock file it means your connection settings are wrong or the service (mysql) isn't running. Double check your config/database.yml file to make sure it has everything configured correctly for whichever environment your working in (likely development).