Comments (5)
Hello,
Apologies for that. I have modified the instructions to sort this issue out. It was an omission on my part.
Do a pull and you should have the latest instructions.
from phalcon-angular-harryhogfootball.
Let me know if that worked for you or if you have any other issues
from phalcon-angular-harryhogfootball.
Already follow your instruction but still show same error.
This is my apache error log
[Wed Jul 11 22:37:39 2012] [error] [client 127.0.0.1] PHP Warning: parse_ini_file(/home/test/app/config/config.ini): failed to open stream: No such file or directory in /home/test/public_html/ang/public/index.php on line 42
[Wed Jul 11 22:37:39 2012] [error] [client 127.0.0.1] PHP Stack trace:
[Wed Jul 11 22:37:39 2012] [error] [client 127.0.0.1] PHP 1. {main}() /home/test/public_html/ang/public/index.php:0
[Wed Jul 11 22:37:39 2012] [error] [client 127.0.0.1] PHP 2. Phalcon_Config_Adapter_Ini->__construct() /home/test/public_html/ang/public/index.php:42
When i see public/index.php on line 42 >>> $config = new Phalcon_Config_Adapter_Ini($app . 'config/config.ini');
Any suggestion for this ?
Thanks
from phalcon-angular-harryhogfootball.
Sure
My best guess is the way the ROOT_PATH is set in your system.
The $app variable (public/index.php) is calculated as:
if (!defined('ROOT_PATH')) {
if (isset($_SERVER['DOCUMENT_ROOT'])) {
// This is defined BY APACHE. It doesn't appear in IIS or anything
define('ROOT_PATH', dirname($_SERVER['DOCUMENT_ROOT']));
} else {
// This is the default. It is not install specific unfortunately
define('ROOT_PATH', dirname(dirname(__FILE__)));
}
}
$app = ROOT_PATH . '/app/';
$library = ROOT_PATH . '/app/library/';
Where does your host point to? Below is my host (Apache). You will note the DocumentRoot points to the public folder,
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName hhf.ld
DocumentRoot /home/www/hhf.ld/public
<Directory /home/www/hhf.ld>
Options -Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Alternatively, and I am not 100% sure it will work, you could override the ROOT_PATH constant as follows
Add this at the top of your public/index.php (below the try statement)
define('ROOT_PATH', '/home/test/public_html/ang');
from phalcon-angular-harryhogfootball.
It Works out.. Thanks Alot...
from phalcon-angular-harryhogfootball.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phalcon-angular-harryhogfootball.