what the plesk! File path issue.. i think

Hey Guys.. so i see its not just me bugged with it.. I had to take a new hostin account at godaddy and it had to be plesk.. anyway.. now facing some issues. The index.php fails at the line require_once( 'inc/header.inc.php' );....... Its not even pickin the file.. I commented the entire file contents out and put just one echo to verify that it was indeed a file path issue.. how do file paths work on Plesk? Need urgent help here guys!

thanks!

Quote · 6 Feb 2014

Are you sure it's plesk?

All godaddy accounts i have used have had godaddys own custom control panel.

But to be honest. File paths are not controlled in the panel. It's most likely because there server is not properly detecting the BASE url for the site.

most of godaddys servers require the following line be added to the .htaccess file just after RewriteEngine on

RewriteBase /


But. seriously. GoDaddy is unreliable for dolphin. I dropped them for hosting years ago. Some of their hosting accounts work. Most do not.

https://www.deanbassett.com
Quote · 6 Feb 2014

hey Deano.. yes its recent thing.. all new hosting accounts will be on plesk now.. whichever accounts were on cpanel will continue being there..

Yes u r right.. its not got anything to do with Plesk.. does the following give any idea abt wat it cud be? i asked them what the absolute path of the hosting folder would be, and this is wat they said.. its /var/www/vhosts/laymyshops.com/httpdocs/.... httpdocs being the folder where the site's files are placed. Something looks different.. Its supposed to be a windows machine with IIS. This path doesn't look like a windows path.. The forum link the support guy shared is http://support.godaddy.com/help/article/58/finding-your-hosting-accounts-absolute-path?pc_split_value=1&countrysite=in.. In the earlier hosting it used to be a d:/ path.. 

Quote · 6 Feb 2014

forgot to mention.. i added RewriteBase / after RewriteEngine on in .htaccess.. all the same..

Quote · 6 Feb 2014

 

hey Deano.. yes its recent thing.. all new hosting accounts will be on plesk now.. whichever accounts were on cpanel will continue being there..

Yes u r right.. its not got anything to do with Plesk.. does the following give any idea abt wat it cud be? i asked them what the absolute path of the hosting folder would be, and this is wat they said.. its /var/www/vhosts/laymyshops.com/httpdocs/.... httpdocs being the folder where the site's files are placed. Something looks different.. Its supposed to be a windows machine with IIS. This path doesn't look like a windows path.. The forum link the support guy shared is http://support.godaddy.com/help/article/58/finding-your-hosting-accounts-absolute-path?pc_split_value=1&countrysite=in.. In the earlier hosting it used to be a d:/ path.. 

 
That is not a windows path. It's a linux path. So if they changed your server then most likely your sites inc/header.inc.php will need to be changed to match the new path. But you going to need to check with godaddy again on the path.

If you think your on a windows machine, but they are providing a linux path, then they screwed something up somewhere.

Anyhow. Once you have the actual path, then inc/header.inc.php will need to be checked to make sure the paths to your site and php are correct. and you may even need to verify the database connection settings that are in there as well. I have a fealing they put you on a different server. If so then you need to treat this as if the site was moved to another host. Everything needs to be checked.



https://www.deanbassett.com
Quote · 6 Feb 2014

thanks Deano.. am on call with their support now.. lets see.. 

Quote · 6 Feb 2014

LOL> GoDaddy done got up and went a long time ago. Contact Zarconia.net

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 6 Feb 2014

hey.. got it solved the other day.. sharing what i got to know.. the linux type file paths in plesk are correct.. i don't know the underlying mechanism, but atleast seems like that plesk masks (interface) the underlying windows file system.. However, the relative paths don't work.. so for the initial statement in the default index.php, 

require_once( 'inc/header.inc.php' );

you would need to rewrite it as require_once(__DIR__.'/inc/header.inc.php');

After this stmt all remains as is.

cheers!

Quote · 8 Feb 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.