Memorial Day
Support will be closed on Monday, May 28th, 2012 to enjoy Memorial Day with our friends and families.
   
 
Common issue: “Your system folder path does not appear to be set correctly…”
Posted: 03 February 2012 04:24 PM   [ Ignore ]  
Lab Assistant
RankRank
Total Posts:  172
Joined  03-16-2009

This seems to be a common issue, but looking through the past threads I’m not finding a solution that is working for me.

I had a development site at dev.domain.com and need to move the site to the “live” side at domain.com. I was following the instructions on the wiki (http://expressionengine.com/wiki/Move_from_Development_to_Production_on_EE_2), and got to the point where I wanted to login to the CP on the live site.

My setup has the system folder above the web root, so I have the following settings in the relevant files:

In admin.php

$system_path '../system'

In index.php (in web root)

$system_path '../system'

in config.php

$config['cp_url''http://domain.com/admin.php'

But when I go to http://domain.com/admin.php I get the following error:

“Your system folder path does not appear to be set correctly. Please open the following file and correct this: admin.php”

and if I try to go to the website at http://domain.com I get the following error:

“Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php”

I am using EE v2.3.1 build 20111017 Any suggestions for troubleshooting this?

 

Profile
 
 
Posted: 04 February 2012 05:20 PM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRank
Total Posts:  5090
Joined  10-18-2005

Hi D. Shun-Luoi Fong,

While the Wiki is a great resource, we have the process outlined in the User Guide as well. I compared the 2, and there doesn’t seem to be any real differences. However, if you attempt the move using the method from the User Guide, do you have success? Also, for the tine being, can you move /system in to the web-root, updating index.php and admin.php accordingly? Let’s get the move accomplished, then we can go the extra step and get /system secured above web-root.

Cheers!

 Signature 

ExpressionEngine is 2.5 | MojoMotor is 1.2


User Guide | Feature Requests | Bug Tracker | Upgrade Wiki

Profile
 
 
Posted: 05 February 2012 06:36 PM   [ Ignore ]   [ # 2 ]  
Lab Assistant
RankRank
Total Posts:  172
Joined  03-16-2009

Hi Dan,

Thanks for the response. I used the instructions from the user guide, leaving the “system” folder above the web-root. It still didn’t work. However, I then tried moving the “system” folder into the web-root, and it then worked.

Any thoughts why it wouldn’t work above the web-root, when it did before? Any suggestions for getting it to work above web-root?

Thanks!

Profile
 
 
Posted: 07 February 2012 08:56 PM   [ Ignore ]   [ # 3 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  742
Joined  11-08-2004

Shun,

Take a look in the apache conf for the site, specifically the “php_admin_value open_basedir” line, you will need to add the path for the system folder when it’s not in the sites root folder. Plesk locates this file in the conf folder named “httpd.include” inside the folder created for the site (under vhosts), however you should not edit this file directly but instead create a vhost.conf for the setting (otherwise it will get over written if there is ever a change to the site in the Plesk panel).

If the vhost.conf file already exists all you need to do is modify it with the correct path and restart the web service thru the plesk panel.

Here is an example vhost.conf for the change:

<Directory /var/www/vhosts/mysite.com/httpdocs/>
php_admin_value open_basedir "/var/www/vhosts/mysite.com/httpdocs:/tmp:/var/www/vhosts/mysite.com/system"
</Directory

After you have created the file run the plesk command:

/usr/local/psa/admin/sbin/websrvmng ---vhost.conf=mysite.com 

which will let Plesk know about it. To activate it just go into the Plesk panel and restart the web service.

That will fix you up.
Cheers!

 Signature 

Member: ExpressionEngine Pro Network: Mindzipper Development
Mindzipper Homepage

Profile
 
 
Posted: 08 February 2012 03:51 PM   [ Ignore ]   [ # 4 ]  
Moderator
Avatar
RankRankRankRankRankRank
Total Posts:  5090
Joined  10-18-2005

Hi D. Shun-Luoi Fong,

I think JT is on the right track with the open_basedir theory. Have you had a chance to investigate his solution?

Cheers!

 Signature 

ExpressionEngine is 2.5 | MojoMotor is 1.2


User Guide | Feature Requests | Bug Tracker | Upgrade Wiki

Profile
 
 
Posted: 08 February 2012 04:06 PM   [ Ignore ]   [ # 5 ]  
Lab Assistant
RankRank
Total Posts:  172
Joined  03-16-2009

Yep, JT is on the right track…I haven’t gotten to it yet, but will get it taken care of and report back to confirm that it is working correctly. Thanks, JT and Dan!

Profile
 
 
Posted: 12 February 2012 09:26 PM   [ Ignore ]   [ # 6 ]  
Moderator
Avatar
RankRankRankRankRankRank
Total Posts:  5090
Joined  10-18-2005

We look forward to your response!

Cheers,

 Signature 

ExpressionEngine is 2.5 | MojoMotor is 1.2


User Guide | Feature Requests | Bug Tracker | Upgrade Wiki

Profile