{"type":"rich","version":"1.0","provider_name":"phorkie","provider_url":"https:\/\/p.cweiske.de\/","title":"Local Phorkie Setup for Mac OSX","author_name":"Christian Weiske","cache_age":86400,"width":900,"height":900,"html":"<!-- embedding all files of https:\/\/p.cweiske.de\/123 -->\n<link rel=\"stylesheet\" href=\"https:\/\/p.cweiske.de\/css\/embed.css\"\/>\n<div class=\"phork\" id=\"123\">\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  <div class=\"markdown\"><h1>Local Phorkie Setup for Mac OSX<\/h1>\n\n<p>These instructions are intended to be used on Mac OSX Mountain Lion and Mavericks. They may also work for Yosemite, but have not been tested.<\/p>\n\n<hr \/>\n\n<h2>Installing Phorkie<\/h2>\n\n<p><em>This step copies Phorkie to your local Sites directory.<\/em><\/p>\n\n<p>Within <strong>Terminal<\/strong>, add Phorkie to your Sites directory.\n<code>sh\nmkdir ~\/Sites\/phorkie<\/code><\/p>\n\n<p>Next, copy Phorkie to your Sites\u2019 Phorkie directory.\n<code>sh\ncp phorkie-0.4.0.phar ~\/Sites\/phorkie<\/code><\/p>\n\n<p>That\u2019s it!<\/p>\n\n<h2>Configuring .phar files<\/h2>\n\n<p><em>This step makes your Apache installation recognize .phar files.<\/em><\/p>\n\n<p>Within <strong>Terminal<\/strong>, edit your PHP configuration file.\n<code>sh\nedit \/etc\/apache2\/other\/php5.conf<\/code><\/p>\n\n<p>Within your editor, add the <code>.phar<\/code> extension to the <code>application\/x-httpd-php<\/code> type.\n```conf\n<IfModule php5_module>\n  AddType application\/x-httpd-php .phar .php\n  AddType application\/x-httpd-php-source .phps<\/p>\n\n<p><IfModule dir_module>\n    DirectoryIndex index.html index.php\n  <\/IfModule>\n<\/IfModule>\n```<\/p>\n\n<p>That\u2019s it!<\/p>\n\n<h2>Setting up your Host<\/h2>\n\n<p><em>This step makes your computer load <a href=\"http:\/\/phorkie\">http:\/\/phorkie<\/a> from itself.<\/em><\/p>\n\n<p>Within <strong>Terminal<\/strong>, edit your Hosts file.\n<code>sh\nedit \/private\/etc\/hosts<\/code><\/p>\n\n<p>Within your editor, add Phorkie as a Host entry.\n<code>conf\n127.0.0.1       phorkie<\/code><\/p>\n\n<p>That\u2019s it!<\/p>\n\n<h2>Setting up your VirtualHost<\/h2>\n\n<p><em>This step makes your Apache installation load <a href=\"http:\/\/phorkie\">http:\/\/phorkie<\/a> from your local Sites directory.<\/em><\/p>\n\n<p>Within <strong>Terminal<\/strong>, edit your VirtualHosts file.\n<code>sh\nedit \/private\/etc\/apache2\/extra\/httpd-vhosts.conf<\/code><\/p>\n\n<p>Within your editor, add a Phorkie VirtualHost (where %USERNAME% is your username).\n<code>conf\n&lt;VirtualHost *:80&gt;\n  ServerName phorkie\n  DocumentRoot \"\/Users\/%USERNAME%\/Sites\/phorkie\"\n    &lt;Directory \"\/Users\/%USERNAME%\/Sites\/phorkie\"&gt;\n        Options Indexes FollowSymLinks\n        AllowOverride All\n        Order allow,deny\n        Allow from all\n    &lt;\/Directory&gt;\n&lt;\/VirtualHost&gt;<\/code><\/p>\n\n<p>Within <strong>Terminal<\/strong>, test your Apache configuration.\n<code>sh\napachectl configtest<\/code><\/p>\n\n<p>Next, if this returns the message <strong>Syntax OK<\/strong>, restart Apache.\n<code>sh\nsudo apachectl restart<\/code><\/p>\n\n<p>That\u2019s it!<\/p>\n\n<hr \/>\n\n<p>Well done! Now you\u2019re ready to play. Open <a href=\"http:\/\/phorkie\/phorkie-0.4.0.phar\">http:\/\/phorkie\/phorkie-0.4.0.phar<\/a> from your web browser.<\/p>\n<\/div>\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/123\/rev-raw\/b93eb5bbcd11339ff64d9f51abc59c83610217bc\/README.md\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/123#README.md\">README.md<\/a>\n <\/div>\n<\/div>\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  <div class=\"code\"><pre class=\"txt\">fork, forking<\/pre><\/div>\n\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/123\/rev-raw\/b93eb5bbcd11339ff64d9f51abc59c83610217bc\/z-keywords.txt\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/123#z-keywords.txt\">z-keywords.txt<\/a>\n <\/div>\n<\/div>\n<\/div>\n"}
