Godaddy.com root URL path? Help!
Godaddy.com root URL path? Help!
I have a CMSMS site installed on godaddy and I dont think the paths for the uploads or root are set right in my config.php (see pic). When I install sites on my server, these usually point to the path the files sit, but not sure how to do this for godaddy.
Thoughts?
MJD
Thoughts?
MJD
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Godaddy.com root URL path? Help!
place a file in your root directory called getcwd.php
with these contents:
then browse to that url
it will tell you if the path is correct.
with these contents:
then browse to that url
it will tell you if the path is correct.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: Godaddy.com root URL path? Help!
Thanks that show'd me the root was correct but still doesnt explain to me why my fresh install doesnt allow me to use the image install "browse" button. see pic
Re: Godaddy.com root URL path? Help!
Is the root url correct (not path, but url)?
And the image upload path and url?
Nullig
And the image upload path and url?
Nullig
Re: Godaddy.com root URL path? Help!
yes - it looks correct off of the php file you had me create. I am stumped on the other error!
Re: Godaddy.com root URL path? Help!
let me know if you want me to copy you my config files. this is the error I get when i click on the image insert/browse:
Warning: main(//include.php): failed to open stream: No such file or directory in /home/content/K/e/l/Keldaria/html/modules/TinyMCE/filepicker.php on line 4
Fatal error: main(): Failed opening required '//include.php' (include_path='.:/usr/local/lib/php') in /home/content/K/e/l/Keldaria/html/modules/TinyMCE/filepicker.php on line 4
I have read write access to both the filepicker.php (in the path above) and I have a include.php in my root and one in the same as the filepicker.php
Warning: main(//include.php): failed to open stream: No such file or directory in /home/content/K/e/l/Keldaria/html/modules/TinyMCE/filepicker.php on line 4
Fatal error: main(): Failed opening required '//include.php' (include_path='.:/usr/local/lib/php') in /home/content/K/e/l/Keldaria/html/modules/TinyMCE/filepicker.php on line 4
I have read write access to both the filepicker.php (in the path above) and I have a include.php in my root and one in the same as the filepicker.php
Re: Godaddy.com root URL path? Help!
What happens if you change line 4 of filepicker.php to show the full url to include.php, i.e. "http://yoursite.com/include.php".
Nullig
Nullig
Re: Godaddy.com root URL path? Help!
these are the lines from my filepicker.php file: (where would I place the url?) the site url is www.masonryservicescorp.com
modules;
$tiny=$modules["TinyMCE"]['object'];
global $config;
$rootpath=""; $rooturl="";
if ($_GET["type"]=="image") {
$rootpath=$config["image_uploads_path"];
$rooturl=$config["image_uploads_url"];
} else {
$rootpath=$config["uploads_path"];
$rooturl=$config["uploads_url"];
modules;
$tiny=$modules["TinyMCE"]['object'];
global $config;
$rootpath=""; $rooturl="";
if ($_GET["type"]=="image") {
$rootpath=$config["image_uploads_path"];
$rooturl=$config["image_uploads_url"];
} else {
$rootpath=$config["uploads_path"];
$rooturl=$config["uploads_url"];
Re: Godaddy.com root URL path? Help!
Try changing:
require_once($path . DIRECTORY_SEPARATOR . 'include.php');
to:
require_once('http://www.masonryservicescorp.com/include.php');
or:
require_once('/include.php');
Nullig
require_once($path . DIRECTORY_SEPARATOR . 'include.php');
to:
require_once('http://www.masonryservicescorp.com/include.php');
or:
require_once('/include.php');
Nullig
Re: Godaddy.com root URL path? Help!
getting closer.....
this is the new error when i select the browse button
Fatal error: Call to undefined function: check_login() in /home/content/K/e/l/Keldaria/html/modules/TinyMCE/filepicker.php on line 5
this is the new error when i select the browse button
Fatal error: Call to undefined function: check_login() in /home/content/K/e/l/Keldaria/html/modules/TinyMCE/filepicker.php on line 5
Re: Godaddy.com root URL path? Help!
I would change this toCode: Select all
$path = dirname(dirname(dirname($_SERVER['SCRIPT_FILENAME'])));
Code: Select all
$path = dirname(dirname(dirname(__FILE__)));
(BTW: this PHP script can't be included with "http://")
Re: Godaddy.com root URL path? Help!
Made the changes, clicked the browse button and see attached (is this how the new version should look? No upload button?)
Re: Godaddy.com root URL path? Help!
So you've changed the code to:
$path = dirname(dirname(dirname(__FILE__)));
require_once($path . DIRECTORY_SEPARATOR . 'include.php');
Nullig
$path = dirname(dirname(dirname(__FILE__)));
require_once($path . DIRECTORY_SEPARATOR . 'include.php');
Nullig
Re: Godaddy.com root URL path? Help!
I'm using "TinyMCE-2.4.0b4". And that's like my filepicker (insert image) also looks like (and it's working).(is this how the new version should look? No upload button?)
Re: Godaddy.com root URL path? Help!
this what the default code was changed to:
modules;
$tiny=$modules["TinyMCE"]['object'];
global $config;
$rootpath=""; $rooturl="";
if ($_GET["type"]=="image") {
$rootpath=$config["image_uploads_path"];
$rooturl=$config["image_uploads_url"];
} else {
$rootpath=$config["uploads_path"];
$rooturl=$config["uploads_url"];
modules;
$tiny=$modules["TinyMCE"]['object'];
global $config;
$rootpath=""; $rooturl="";
if ($_GET["type"]=="image") {
$rootpath=$config["image_uploads_path"];
$rooturl=$config["image_uploads_url"];
} else {
$rootpath=$config["uploads_path"];
$rooturl=$config["uploads_url"];