Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8545411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:47:07+00:00 2026-06-11T12:47:07+00:00

Based on a recommendation on stack overflow, i am giving yii framework a spin.

  • 0

Based on a recommendation on stack overflow, i am giving yii framework a spin.

It appears that I am only able to gain shell access to my web server if I log in as root.

I am running through the tutorial, and am having a number of problems typical command to create a web app-

/usr/local/bin/php /home/testuser/public_html/yii/framework/yiic webapp /home/testuser/public_html/demo
  1. Do I have to type /usr/local/bin/php EVERY TIME???
  2. Do I have to type /home/testuser/public_html/yii/framework/yiic in full every time???
  3. Do I have to yype /home/testuser/public_html/demo in full?
  4. As I am logged in as ROOT, I have to chown every file / folder created by root to make the file viewable by testuser!!!
  5. I create a new controller using yii. controller message helloWorld, yii does some funky stuff, but I can’t do ANYTHING with the files without chown EVERYTHING!!!

I’m not too confident with SSH, and I know it’s all a learning curve, but… having to change file permissions EVERY time, and having to type full directories every time is just a pain.

I know that there are some shortcuts that I will probably learn with time, but if anybody could give me some pointers to make my life about 1M times easier (considering my main objectives at present are to learn yii framework) linux/terminal/shell commands are currently secondary to my requirements.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T12:47:08+00:00Added an answer on June 11, 2026 at 12:47 pm

    Here’s what I’d do, in this order:

    1 – When you login as root issue the command su - testuser. This changes your effective user id and groupid to that of testuser, meaning, you now are operating as that user account. Your current directory should now be the testuser‘s home directory. To get back to root user just type exit.

    2 – Try running php -v without the fullpath. If it prints out a version number then you don’t have to use the fullpath to run php. If you get an error then you can add /usr/local/bin to your PATH environment variable in your .profile file which is present in testuser‘s home directory. If the .profile doesn’t exist then you can create it.

    3 – Add /home/testuser/public_html/yii/framework to your PATH in testuser‘s .profile.

    After doing all that then the next time you login as root you would be able to do the following:

    su - testuser
    cd public_html
    php yiic webapp demo
    

    And you wont have to worry about permissions since you are creating directories/files as testuser, not root.

    See also: StackOverflow question about modifying your PATH

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Do -fstack-protector and -fstack-protector-all protect heap-based memory allocations too or only stack-based ones ?
By dynamic data rating I mean a time-based recommendation system. One example use case
Based on the recommendation by APIGEE in their RESTful API Design blog post I
I'm trying to add a custom catalog index based on the recommendation here: http://collective-docs.readthedocs.org/en/latest/searching_and_indexing/indexing.html#custom-index-methods
Based on this article I was able to get the FullName to work rather
I am planning to implement a basic recommendation system that uses Facebook Connect or
I'm looking for a recommendation on the best netty class(es) to use that support
I've editted this post based on recommendation by a fellow user. My specific problems
I am looking for good recommendation for graph analysis libraries or framework,better in C++
I've added a scope to a Rails model that allows for searching based on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.