On Wed, 19 May 2010, DEEPAK BHATIA wrote:

> How do I resolve this ? I am root to the linux while creating everything.

As a web developer, you ought to be aware of how permissions work on web 
servers, this is pretty basic stuff.

On Linux/UNIX machines all processes run under their own user IDs generally. 
This means that a PHP script (e.g. your application) running under some 
web server software will NOT be running as you. So in order for that 
application to read/write to a folder you own, that folder needs to have 
read and/or write permissions to the "other" group (user IDs in Linux/UNIX 
are grouped into you, your group and "others").

> > > Fatal error: require_once() [function.require]: Failed opening required
> > >
> > '/root/sfproject/lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php'

Clearly it can't load sfCoreAutoLoad.class.php as shown above and it does 
say its a permissions problem.

In fact, /root is the login folder for root and its NORMAL for it to be 
locked down and unreadable to others, so its no wonder your script 
doesn't work.

And dont even think about changing those folder permissions, because 
installing an application under /root is a Bad Idea. You should create a 
normal user account to house your files and install the application under 
that user's folders not root's. Copying files into /root doesn't give your 
application root permissions and having to login as root to deploy/update 
your application instead of a normal user is just asking for trouble.

I hope you're not using FTP, because you just sent the root password 
for your server as cleartext across the Internet.

To be frank, If you dont understand this stuff or dont want to know then 
do yourself a favor: hire a real systems admin that knows what he's doing.


-- 


-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to