Welcome Guest, Not a member yet? Register   Sign In
Solved: Server Installation Trouble
#1

[eluser]ywftdg[/eluser]
I have run CI on servers before with no problems, but previously my setup was system folder in same area as httpdocs, above the web root. Then I would put my app in the main root of httpdocs. That worked fine.

My issue now is I have the system folder in same as httpdocs, I used sftp as root user to upload the system here.
I then installed my app into a folder in httpdocs: www.mydomain.com/thedesigners/ (My application folder in here is 'designers')

So my settings for my index.php file are:
Code:
$system_folder = "/var/www/vhosts/mydomain.com/system";

$application_folder = "/var/www/vhosts/mydomain.com/httpdocs/thedesigners/designers";

But the page just does nothing, I even tried a clean reupload of the system folder. I also show no errors or anything in the system/logs files. Any ideas why this is coming up with blank pages?

Basically my folder setup is:

system
httpdocs
-thedesigners (folder)
--designers (application)
#2

[eluser]ywftdg[/eluser]
Anyone ever had this issue with having the 'system' folder installed outside the webroot? I thought at first it was because the owner of the 'system' folder was root on server, but changed that to the normal user, still nothing. It still seems like CI is not even running, it doesn't even show the code igniter 404 errors. I tried running CI on another domain on our server and it worked fine, but that had everything installed into main httpdocs area, not with system above the web. Any ideas?

Currently contacting server provider (Media Temple). Tested many ways, and Code Igniter will not run if the system folder is above httpdocs. CI only runs if its inside httpdocs. Curious if anyone has ever gotten this issue? Maybe some security setting on the server?
#3

[eluser]Colin Williams[/eluser]
Workin fine for me on MediaTemple hosting. Not sure where the problem is.
#4

[eluser]ywftdg[/eluser]
My server is a dedicated virtual, not a grid server. I had no issues in past with clients on grid server, but my site is a dedicated virtual. I checked server logs:

[client 58.10.3.160] PHP Warning: main(): open_basedir restriction in effect. File(/var/www/vhosts/mydomain.com/system/codeigniter/CodeIgniter.php) is not within the allowed path(s):

So I assume I have to allow this in the basedir or whatever in the php config? Seems my server wont let php run unless path is defined..strange?
#5

[eluser]Colin Williams[/eluser]
Not strange, just a security setting. But you're right, I am on a GS
#6

[eluser]ywftdg[/eluser]
Actually, its not fixing this problem. The server errors are gone, still doesn't run. My phpinfo shows these areas are now allowed:

Code:
/var/www/vhosts/mydomain.com/system:/var/www/vhosts/mydomain.com/httpdocs/thedesigners

and I got no more server errors. But the area doesn't completely nothing, just blank pages. I even tried to access my app index.php directly, nothing. This has not been my month with CI, erghh..
#7

[eluser]ywftdg[/eluser]
did a test with echos in the index.php file, it works up until, echo after that does nothing..

Code:
require_once BASEPATH.'codeigniter/CodeIgniter'.EXT;
#8

[eluser]gon[/eluser]
Try setting $system_folder relative to index.php.

Something like this:

$system_folder = dirname(__FILE__) . "../system";

Not sure if this sets the correct path or not in your case. Just make sure you start with dirname(__FILE__), which is the folder where index.php is, and put the relative path to the system folder from it.

I also set $application_folder this way usually.
#9

[eluser]ywftdg[/eluser]
Its reading the file paths no problems. I just tested echoing the files paths, all came out fine. But CI just isn't running at all. I mean nothing, like there is no CI 404 pages, nothing coming from CI. This is very strange, in the few projects i've done with CI, I have never had any issues with it just absolutely NOT running. Waiting on some support from media temple (host) as well, but not expecting much response, since the server is running fine, just CI has issue on it.
#10

[eluser]gon[/eluser]
But did you try?
In the past I solved the same problem this way.




Theme © iAndrew 2016 - Forum software by © MyBB