• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 614
  • Last Modified:

Apache2, Yii, and Ubuntu permissions and function issues

Hello,

I have setup a machine with Ubuntu 11.10 and installed Apache2, VSFTP,PHP5, MySQL Server, and things seems to work ok during testing with PhpInfo and a simple FTP install of OpenDocMan which connects to the MySQL quite nicely.

My problem comes from trying to use ANY Yii-based app where it tries to go to an Url through index.php.  I may not have permissions set correctly.  I am new at all this.  Also, I ran the enable mod rewrite for Apache2 (at least it says I did)

When I try to click on a link in any of the Yii demos I get something like this:

"Not Found

The requested URL /yii/demos/hangman/index.php/game/guess/J was not found on this server."

Any help with setting this right would be greatly appreciated.
0
hydrazi
Asked:
hydrazi
  • 4
  • 2
3 Solutions
 
Pierre FrançoisSenior consultantCommented:
The requested URL doesn't make sense with index.php in the middle of it: in a URL, you have first an (optionnal) domain name, followed by an (optional) path composed by directories and finally a file name (php, html or whatever). After that, you can a add "?" followed by some variables and values, but no more directories.

What is the fragment of PHP code you are trying to execute?

Please give also the output of next statement:
echo "\$_SERVER ['DOCUMENT_ROOT'] = $_SERVER ['DOCUMENT_ROOT']";

Open in new window

and explain in which directory you have your apps.
0
 
hydraziAuthor Commented:
Actually, the index.php with directories after it is some kind of function of the Yii Framework.  I have been able to install and run the apps on external webservers with Urls in this same fashion with no issue.  

Here is one for instance:  http://demo.x2engine.com/index.php/site/login

I made your statement its own PHP file and ran it with this result:
$_SERVER ['DOCUMENT_ROOT'] = Array ['DOCUMENT_ROOT']
0
 
Pierre FrançoisSenior consultantCommented:
I am puzzled with your both answers:

1. Probably the Yii Framework rewrites URL with some Apache module, but I have no knowledge of Yii for understanding what's happening on the backstage.

2. I was expecting another output of the above PHP statement, something like:
$_SERVER ['DOCUMENT_ROOT'] = /var/apache/www/

So, I have no clue on what's going on... Sorry.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
hydraziAuthor Commented:
Have gotten no answer.... still working on it....
0
 
hydraziAuthor Commented:
I uninstalled the entirety of the Apache services and then reinstalled them.  Fixed the issue, but still don't know the exact cause.
0
 
hydraziAuthor Commented:
Fixed it myself but appreciate the attempt to help.
0

Featured Post

Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now