My drupal installation is under a subfolder of my domain; therefore, I need to type the subfolder (www.example.com/drupal) on the address bar inorder for drupal to come up. How can I change the setting so I do not need to type the subfolder, like www.example.com instead of www.example.com/drupal?
I have tried to change the settings.php $base_url ='http://example.com' instead of $base_url ='http://example.com/drupal', but it still does not work. Any idea? Thanks!
Hello. This is more a server setting than a drupal setting. You need to setup a redirect, alias, virtual host, or something to get your desired effect. It may help to tell everyone more about your setup. E.g. apache, IIS, hosted?
Souvent22
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of c cc Sent: Tuesday, January 31, 2006 12:18 AM To: support@drupal.org Subject: [support] setting.php
My drupal installation is under a subfolder of my domain; therefore, I need to type the subfolder (www.example.com/drupal) on the address bar inorder for drupal to come up. How can I change the setting so I do not need to type the subfolder, like www.example.com instead of www.example.com/drupal?
I have tried to change the settings.php $base_url ='http://example.com' instead of $base_url ='http://example.com/drupal', but it still does not work. Any idea? Thanks!
Hi,
Thanks for the quick reply. I don't think I can change any of the server setting because I don't have access to root, and it is on Cpanel with Apache 1.3. Thanks!
On 1/30/06, Earnest Berry earnest.berry@gmail.com wrote:
Hello. This is more a server setting than a drupal setting. You need to setup a redirect, alias, virtual host, or something to get your desired effect. It may help to tell everyone more about your setup. E.g. apache, IIS, hosted?
Souvent22
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of c cc Sent: Tuesday, January 31, 2006 12:18 AM To: support@drupal.org Subject: [support] setting.php
My drupal installation is under a subfolder of my domain; therefore, I need to type the subfolder (www.example.com/drupal) on the address bar inorder for drupal to come up. How can I change the setting so I do not need to type the subfolder, like www.example.com instead of www.example.com/drupal?
I have tried to change the settings.php $base_url ='http://example.com' instead of $base_url ='http://example.com/drupal', but it still does not work. Any idea? Thanks! -- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
Ok. Well, if you installed drupal into a subdirectory, then for the most part the answer is no; since you do not have much access to the server configurations.
What you are trying to do in theory basically (if I understand everything correctly) is make the page: www.example.com/drupal/index.php show up as www.example.com/index.php . The $baseurl is a setting that tells drupal how to formulate it's path. This does not change the server's behavior. Now, you could setup a subdomain. E.g. drupal.example.com, which may help.
Hope all that made some sense. Anyone correct me if I'm wrong. I'm not too familiar with cpanel, so perhaps there is a setting he/she could tweak?
- Souvent
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of c cc Sent: Tuesday, January 31, 2006 12:39 AM To: support@drupal.org Subject: Re: [support] setting.php
Hi,
Thanks for the quick reply. I don't think I can change any of the server setting because I don't have access to root, and it is on Cpanel with Apache 1.3. Thanks!
On 1/30/06, Earnest Berry earnest.berry@gmail.com wrote:
Hello. This is more a server setting than a drupal setting. You need to setup a redirect, alias, virtual host, or something to get your desired effect. It may help to tell everyone more about your setup. E.g. apache, IIS, hosted?
Souvent22
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of c cc Sent: Tuesday, January 31, 2006 12:18 AM To: support@drupal.org Subject: [support] setting.php
My drupal installation is under a subfolder of my domain; therefore, I need to type the subfolder (www.example.com/drupal) on the address bar inorder for drupal to come up. How can I change the setting so I do not need to type the subfolder, like www.example.com instead of www.example.com/drupal?
I have tried to change the settings.php $base_url ='http://example.com' instead of $base_url ='http://example.com/drupal', but it still does not work. Any idea? Thanks! -- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
Okay, thank you very much for your help.
On 1/30/06, Earnest Berry earnest.berry@gmail.com wrote:
Ok. Well, if you installed drupal into a subdirectory, then for the most part the answer is no; since you do not have much access to the server configurations.
What you are trying to do in theory basically (if I understand everything correctly) is make the page: www.example.com/drupal/index.php show up as www.example.com/index.php . The $baseurl is a setting that tells drupal how to formulate it's path. This does not change the server's behavior. Now, you could setup a subdomain. E.g. drupal.example.com, which may help.
Hope all that made some sense. Anyone correct me if I'm wrong. I'm not too familiar with cpanel, so perhaps there is a setting he/she could tweak?
- Souvent
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of c cc Sent: Tuesday, January 31, 2006 12:39 AM To: support@drupal.org Subject: Re: [support] setting.php
Hi,
Thanks for the quick reply. I don't think I can change any of the server setting because I don't have access to root, and it is on Cpanel with Apache 1.3. Thanks!
On 1/30/06, Earnest Berry earnest.berry@gmail.com wrote:
Hello. This is more a server setting than a drupal setting. You need to setup a redirect, alias, virtual host, or something to get your desired effect. It may help to tell everyone more about your setup. E.g. apache, IIS, hosted?
Souvent22
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of c cc Sent: Tuesday, January 31, 2006 12:18 AM To: support@drupal.org Subject: [support] setting.php
My drupal installation is under a subfolder of my domain; therefore, I need to type the subfolder (www.example.com/drupal) on the address bar inorder for drupal to come up. How can I change the setting so I do not need to type the subfolder, like www.example.com instead of www.example.com/drupal?
I have tried to change the settings.php $base_url ='http://example.com' instead of $base_url ='http://example.com/drupal', but it still does not work. Any idea? Thanks! -- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
Keep an eye on the list, perhaps someone may have a diff. answer tomorrow sometime. Hope you enjoy Drupal.
- Souvent
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of c cc Sent: Tuesday, January 31, 2006 12:57 AM To: support@drupal.org Subject: Re: [support] setting.php
Okay, thank you very much for your help.
On 1/30/06, Earnest Berry earnest.berry@gmail.com wrote:
Ok. Well, if you installed drupal into a subdirectory, then for the most part the answer is no; since you do not have much access to the server configurations.
What you are trying to do in theory basically (if I understand everything correctly) is make the page: www.example.com/drupal/index.php show up as www.example.com/index.php . The $baseurl is a setting that tells drupal
how
to formulate it's path. This does not change the server's behavior. Now,
you
could setup a subdomain. E.g. drupal.example.com, which may help.
Hope all that made some sense. Anyone correct me if I'm wrong. I'm not too familiar with cpanel, so perhaps there is a setting he/she could tweak?
- Souvent
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of c cc Sent: Tuesday, January 31, 2006 12:39 AM To: support@drupal.org Subject: Re: [support] setting.php
Hi,
Thanks for the quick reply. I don't think I can change any of the server setting because I don't have access to root, and it is on Cpanel with Apache 1.3. Thanks!
On 1/30/06, Earnest Berry earnest.berry@gmail.com wrote:
Hello. This is more a server setting than a drupal setting. You need to setup a redirect, alias, virtual host, or something to get your desired effect. It may help to tell everyone more about your setup. E.g. apache, IIS, hosted?
Souvent22
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of c cc Sent: Tuesday, January 31, 2006 12:18 AM To: support@drupal.org Subject: [support] setting.php
My drupal installation is under a subfolder of my domain; therefore, I need to type the subfolder (www.example.com/drupal) on the address bar inorder for drupal to come up. How can I change the setting so I do not need to type the subfolder, like www.example.com instead of www.example.com/drupal?
I have tried to change the settings.php $base_url ='http://example.com' instead of $base_url ='http://example.com/drupal', but it still does not work. Any idea? Thanks! -- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
Have a look at:
I think you basically just want to set the DocumentRoot for Apache to include your subdirectory
Djun
On 30-Jan-2006, at 10:32 PM, Earnest Berry wrote:
Keep an eye on the list, perhaps someone may have a diff. answer tomorrow sometime. Hope you enjoy Drupal.
- Souvent
-----Original Message----- From: support-bounces@drupal.org [mailto:support- bounces@drupal.org] On Behalf Of c cc Sent: Tuesday, January 31, 2006 12:57 AM To: support@drupal.org Subject: Re: [support] setting.php
Okay, thank you very much for your help.
On 1/30/06, Earnest Berry earnest.berry@gmail.com wrote:
Ok. Well, if you installed drupal into a subdirectory, then for the most part the answer is no; since you do not have much access to the server configurations.
What you are trying to do in theory basically (if I understand everything correctly) is make the page: www.example.com/drupal/index.php show up as www.example.com/index.php . The $baseurl is a setting that tells drupal
how
to formulate it's path. This does not change the server's behavior. Now,
you
could setup a subdomain. E.g. drupal.example.com, which may help.
Hope all that made some sense. Anyone correct me if I'm wrong. I'm not too familiar with cpanel, so perhaps there is a setting he/she could tweak?
- Souvent
-----Original Message----- From: support-bounces@drupal.org [mailto:support- bounces@drupal.org] On Behalf Of c cc Sent: Tuesday, January 31, 2006 12:39 AM To: support@drupal.org Subject: Re: [support] setting.php
Hi,
Thanks for the quick reply. I don't think I can change any of the server setting because I don't have access to root, and it is on Cpanel with Apache 1.3. Thanks!
On 1/30/06, Earnest Berry earnest.berry@gmail.com wrote:
Hello. This is more a server setting than a drupal setting. You need to setup a redirect, alias, virtual host, or something to get your desired effect. It may help to tell everyone more about your setup. E.g. apache, IIS, hosted?
Souvent22
-----Original Message----- From: support-bounces@drupal.org [mailto:support- bounces@drupal.org] On Behalf Of c cc Sent: Tuesday, January 31, 2006 12:18 AM To: support@drupal.org Subject: [support] setting.php
My drupal installation is under a subfolder of my domain; therefore, I need to type the subfolder (www.example.com/drupal) on the address bar inorder for drupal to come up. How can I change the setting so I do not need to type the subfolder, like www.example.com instead of www.example.com/drupal?
I have tried to change the settings.php $base_url ='http://example.com' instead of $base_url ='http://example.com/drupal', but it still does not work. Any idea? Thanks! -- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ] -- [ Drupal support list | http://lists.drupal.org/ ]
My drupal installation is under a subfolder of my domain; therefore, I need to type the subfolder (www.example.com/drupal) on the address bar inorder for drupal to come up. How can I change the setting so I do not need to type the subfolder, like www.example.com instead of www.example.com/drupal?
This is rather odd. Why do you want drupal in a subfolder when you are not going to use the root folder anyways? Why not just remove the subdirectory and install Drupal in your top directory?
This is rather odd. Why do you want drupal in a subfolder when you are not going to use the root folder anyways? Why not just remove the subdirectory and install Drupal in your top directory? ===============================================
I have a similar problem and the reason is that our ISP provides administrative features like stats, spam control etc with the url using www.mydomain.co.uk/admin which conflicts with Drupal admin feature and I have not been able to find any way to change it in Drupal.
Havn't found a way round it yet!
Rob
Op woensdag 1 februari 2006 11:07, schreef RobiW:
I have a similar problem and the reason is that our ISP provides administrative features like stats, spam control etc with the url using www.mydomain.co.uk/admin which conflicts with Drupal admin feature and I have not been able to find any way to change it in Drupal.
Havn't found a way round it yet!
Yes, but moving it into a subdirectory is not going to help that, obviously! Unless you just use example.com/drupal as your main url, the /admin and so will still give trouble.
Op woensdag 1 februari 2006 11:07, schreef RobiW:
I have a similar problem and the reason is that our ISP provides administrative features like stats, spam control etc with the url using www.mydomain.co.uk/admin which conflicts with Drupal admin feature and I have not been able to find any way to change it in Drupal.
Havn't found a way round it yet!
Yes, but moving it into a subdirectory is not going to help that, obviously! Unless you just use example.com/drupal as your main url, the /admin and so will still give trouble. =========================================
It does overcome the problem in that the site admin facility is accessed directly on mydomain.co.uk/admin whereas drupal site admin is accessed using mydomain.co.uk/drupaldir/admin and both co-exist.
I have a redirect in .htaccess of /index.php to /drupaldir/index.php so only calls to index.php point to drupal site content.
Rob
Op woensdag 1 februari 2006 11:07, schreef RobiW:
I have a similar problem and the reason is that our ISP provides administrative features like stats, spam control etc with the url using www.mydomain.co.uk/admin which conflicts with Drupal admin feature and I have not been able to find any way to change it in Drupal.
Havn't found a way round it yet!
Hey Rob -
If you are willing to make some changes to your Drupal modules/user.module, you can change the URL for the Drupal admin functions. Here's the relevant section (from ver 4.6.5):
//admin pages $items[] = array('path' => 'admin/user', 'title' => t('users'), 'callback' => 'user_admin', 'access' => $admin_access); $items[] = array('path' => 'admin/user/list', 'title' => t('list'), 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); $items[] = array('path' => 'admin/user/create', 'title' => t('add user'), 'callback' => 'user_admin', 'access' => $admin_access, 'type' => MENU_LOCAL_TASK); $items[] = array('path' => 'admin/user/configure', 'title' => t('configure'), 'callback' => 'user_configure', 'access' => $admin_access, 'type' => MENU_LOCAL_TASK); $items[] = array('path' => 'admin/access', 'title' => t('access control'), 'callback' => 'user_admin_perm', 'access' => $admin_access); $items[] = array('path' => 'admin/access/permissions', 'title' => t('permissions'), 'callback' => 'user_admin_perm', 'access' => $admin_access, 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); $items[] = array('path' => 'admin/access/roles', 'title' => t('roles'), 'callback' => 'user_admin_role', 'access' => $admin_access, 'type' => MENU_LOCAL_TASK); $items[] = array('path' => 'admin/access/roles/edit', 'title' => t('edit role'), 'callback' => 'user_admin_role', 'access' => $admin_access, 'type' => MENU_CALLBACK); $items[] = array('path' => 'admin/access/rules', 'title' => t('account rules'), 'callback' => 'user_admin_access', 'access' => $admin_access, 'type' => MENU_LOCAL_TASK, 'weight' => 10); $items[] = array('path' => 'admin/access/rules/list', 'title' => t('list'), 'access' => $admin_access, 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); $items[] = array('path' => 'admin/access/rules/add', 'title' => t('add rule'), 'callback' => 'user_admin_access_add', 'access' => $admin_access, 'type' => MENU_LOCAL_TASK); $items[] = array('path' => 'admin/access/rules/check', 'title' => t('check rules'), 'callback' => 'user_admin_access_check', 'access' => $admin_access, 'type' => MENU_LOCAL_TASK); $items[] = array('path' => 'admin/access/rules/edit', 'title' => t('edit rule'), 'callback' => 'user_admin_access_edit', 'access' => $admin_access, 'type' => MENU_CALLBACK); $items[] = array('path' => 'admin/access/rules/delete', 'title' => t('delete rule'), 'callback' => 'user_admin_access_delete', 'access' => $admin_access, 'type' => MENU_CALLBACK);
if (module_exist('search')) { $items[] = array('path' => 'admin/user/search', 'title' => t('search'), 'callback' => 'user_admin', 'access' => $admin_access, 'type' => MENU_LOCAL_TASK); }
- - - - -
If you change all of the instances of "admin/" (in the "'path' =>" sections) to something like "dru_admin/" in the above code segment of your user.module, all the access URL's will change. I'm pretty sure all of the form-post actions will update as well, as will the menu links in the administer menu... that's the beauty of the structure of Drupal. Oh - one more thing: the menus are cached in Drupal, so changing the code probably won't affect the site immediately. I think logging out and back in may refresh the menu cache, or quitting the browser and coming back in to init a new session.
I haven't actually tested changing the admin paths, and perhaps Ber can comment on any concerns this change might raise... but this method may be one way around your ISP-imposed directory names.
Cheers, --Katin
The parent of this mail gives a soluion that lets you hack into drupal.moudle. That is very bad advice.
http://drupal.org/node/2476 contains a lot of links to solutions.
Bèr
Bèr said:
The parent of this mail gives a soluion that lets you hack into drupal.moudle. That is very bad advice.
http://drupal.org/node/2476 contains a lot of links to solutions.
All the solutions except one listed on the link above require you to hack your includes/common.inc file instead of the modules/user.module file.
Bèr, I'm just learning Drupal. what's the difference between making changes to includes/common.inc and making changes to modules/user.module? Is one okay and the other not? Either would be wiped out by a source-copy update to a new version of Drupal. What else do we need to be wary of?
Deeper info of why such changes are not a good idea would be good to know out here in the field.
- - -
I see only one solution on the page Bèr recommended that reportedly worked and doesn't require any source code changes:
http://drupal.org/node/2476#comment-30525
It recommends using the path module; an elegant and proper solution. As long as your ISP host doesn't route *all* /admin/ paths to their control panel, it'll set up as described. Otherwise, you'll have to set up the path module while your Drupal is still in the subdirectory, and then move it up to the main directory.
Cheers, --Katin
In the new administration module (in CVS) we use the menu.modulecapabilities to reparent menu items. This module essentially creates a new admin path (called sadmin) and reparents admin to be a child of sadmin. Currently this is a 4.7 only module but the concepts should work for 4.6 as well.
On 2/1/06, dir.dev@digitalreef.net dir.dev@digitalreef.net wrote:
Bèr said:
The parent of this mail gives a soluion that lets you hack into drupal.moudle. That is very bad advice.
http://drupal.org/node/2476 contains a lot of links to solutions.
All the solutions except one listed on the link above require you to hack your includes/common.inc file instead of the modules/user.module file.
Bèr, I'm just learning Drupal. what's the difference between making changes to includes/common.inc and making changes to modules/user.module? Is one okay and the other not? Either would be wiped out by a source-copy update to a new version of Drupal. What else do we need to be wary of?
Deeper info of why such changes are not a good idea would be good to know out here in the field.
I see only one solution on the page Bèr recommended that reportedly worked and doesn't require any source code changes:
http://drupal.org/node/2476#comment-30525
It recommends using the path module; an elegant and proper solution. As long as your ISP host doesn't route *all* /admin/ paths to their control panel, it'll set up as described. Otherwise, you'll have to set up the path module while your Drupal is still in the subdirectory, and then move it up to the main directory.
Cheers, --Katin
-- [ Drupal support list | http://lists.drupal.org/ ]
Op woensdag 1 februari 2006 15:47, schreef dir.dev@digitalreef.net:
Bèr said:
The parent of this mail gives a soluion that lets you hack into drupal.moudle. That is very bad advice.
http://drupal.org/node/2476 contains a lot of links to solutions.
All the solutions except one listed on the link above require you to hack your includes/common.inc file instead of the modules/user.module file.
Bèr, I'm just learning Drupal. what's the difference between making changes to includes/common.inc and making changes to modules/user.module? Is one okay and the other not? Either would be wiped out by a source-copy update to a new version of Drupal. What else do we need to be wary of?
Deeper info of why such changes are not a good idea would be good to know out here in the field.
That needs no 'deep why'. Hacking any software is a bad idea. Esp. software that is out ni the big bad internet.
I cannot find it right now, but I am 100% sure that in the handbook and/or the forums there are some examples and solutions that need you to edit only the settings.php. I do not recall the name of that function nor the link.
But that is the road to tak. This should not be solved by hacking any core module or core file.
Bèr
Rob in that cast it a very good reason to use a subdirectory. Ie http:/www.yourdomain/drupal/
Making changes to the code always come back and bites you in a--. This is very simple to do. Just use the full name in the base
/** * Base URL: * * The URL of your website's main page. It is not allowed to have * a trailing slash; Drupal will add it for you. */ $base_url = 'http://yourdomain/drupal';
/**
Don't use localhost
If you have a problem with secondary, pages loading, change the .htaccess statement to reflect the new path.
Regards Ron http://inmrc.com
-----Original Message----- From: dir.dev@digitalreef.net [mailto:dir.dev@digitalreef.net] Sent: Wednesday, February 01, 2006 8:04 AM To: support@drupal.org Subject: RE: [support] setting.php - changing Drupal's admin path
Op woensdag 1 februari 2006 11:07, schreef RobiW:
I have a similar problem and the reason is that our ISP provides administrative features like stats, spam control etc with the url using www.mydomain.co.uk/admin which conflicts with Drupal admin feature and I have not been able to find any way to change it in Drupal.
Havn't found a way round it yet!
Hey Rob -
If you are willing to make some changes to your Drupal modules/user.module, you can change the URL for the Drupal admin functions. Here's the relevant section (from ver 4.6.5):
//admin pages $items[] = array('path' => 'admin/user', 'title' => t('users'), 'callback' => 'user_admin', 'access' => $admin_access); $items[] = array('path' => 'admin/user/list', 'title' => t('list'), 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); $items[] = array('path' => 'admin/user/create', 'title' => t('add user'), 'callback' => 'user_admin', 'access' => $admin_access, 'type' => MENU_LOCAL_TASK); $items[] = array('path' => 'admin/user/configure', 'title' => t('configure'), 'callback' => 'user_configure', 'access' => $admin_access, 'type' => MENU_LOCAL_TASK); $items[] = array('path' => 'admin/access', 'title' => t('access control'), 'callback' => 'user_admin_perm', 'access' => $admin_access); $items[] = array('path' => 'admin/access/permissions', 'title' => t('permissions'), 'callback' => 'user_admin_perm', 'access' => $admin_access, 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); $items[] = array('path' => 'admin/access/roles', 'title' => t('roles'), 'callback' => 'user_admin_role', 'access' => $admin_access, 'type' => MENU_LOCAL_TASK); $items[] = array('path' => 'admin/access/roles/edit', 'title' => t('edit role'), 'callback' => 'user_admin_role', 'access' => $admin_access, 'type' => MENU_CALLBACK); $items[] = array('path' => 'admin/access/rules', 'title' => t('account rules'), 'callback' => 'user_admin_access', 'access' => $admin_access, 'type' => MENU_LOCAL_TASK, 'weight' => 10); $items[] = array('path' => 'admin/access/rules/list', 'title' => t('list'), 'access' => $admin_access, 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); $items[] = array('path' => 'admin/access/rules/add', 'title' => t('add rule'), 'callback' => 'user_admin_access_add', 'access' => $admin_access, 'type' => MENU_LOCAL_TASK); $items[] = array('path' => 'admin/access/rules/check', 'title' => t('check rules'), 'callback' => 'user_admin_access_check', 'access' => $admin_access, 'type' => MENU_LOCAL_TASK); $items[] = array('path' => 'admin/access/rules/edit', 'title' => t('edit rule'), 'callback' => 'user_admin_access_edit', 'access' => $admin_access, 'type' => MENU_CALLBACK); $items[] = array('path' => 'admin/access/rules/delete', 'title' => t('delete rule'), 'callback' => 'user_admin_access_delete', 'access' => $admin_access, 'type' => MENU_CALLBACK);
if (module_exist('search')) { $items[] = array('path' => 'admin/user/search', 'title' => t('search'), 'callback' => 'user_admin', 'access' => $admin_access, 'type' => MENU_LOCAL_TASK); }
- - - - -
If you change all of the instances of "admin/" (in the "'path' =>" sections) to something like "dru_admin/" in the above code segment of your user.module, all the access URL's will change. I'm pretty sure all of the form-post actions will update as well, as will the menu links in the administer menu... that's the beauty of the structure of Drupal. Oh - one more thing: the menus are cached in Drupal, so changing the code probably won't affect the site immediately. I think logging out and back in may refresh the menu cache, or quitting the browser and coming back in to init a new session.
I haven't actually tested changing the admin paths, and perhaps Ber can comment on any concerns this change might raise... but this method may be one way around your ISP-imposed directory names.
Cheers, --Katin
Ron
That's what was done with a redirect in htaccess to the subdir. What would like to do, however, is the browser address bar to show http:/www.yourdomain/about etc not http:/www.yourdomain/drupal/about. I'm sure it can be done with a mod_rewrite or mod_alias but not sure exactly how to do it!
regards Rob
=================================== Rob in that cast it a very good reason to use a subdirectory. Ie http:/www.yourdomain/drupal/
Making changes to the code always come back and bites you in a--. This is very simple to do. Just use the full name in the base
/** * Base URL: * * The URL of your website's main page. It is not allowed to have * a trailing slash; Drupal will add it for you. */ $base_url = 'http://yourdomain/drupal';
/**
Don't use localhost
If you have a problem with secondary, pages loading, change the .htaccess statement to reflect the new path.
Regards Ron http://inmrc.com
-----Original Message----- From: dir.dev@digitalreef.net [mailto:dir.dev@digitalreef.net] Sent: Wednesday, February 01, 2006 8:04 AM To: support@drupal.org Subject: RE: [support] setting.php - changing Drupal's admin path
Op woensdag 1 februari 2006 11:07, schreef RobiW:
I have a similar problem and the reason is that our ISP provides administrative features like stats, spam control etc with the url using www.mydomain.co.uk/admin which conflicts with Drupal admin feature and I have not been able to find any way to change it in Drupal.
Havn't found a way round it yet!
Hey Rob -
If you are willing to make some changes to your Drupal modules/user.module, you can change the URL for the Drupal admin functions. Here's the relevant section (from ver 4.6.5):
//admin pages $items[] = array('path' => 'admin/user', 'title' => t('users'), 'callback' => 'user_admin', 'access' => $admin_access); $items[] = array('path' => 'admin/user/list', 'title' => t('list'), 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); $items[] = array('path' => 'admin/user/create', 'title' => t('add user'), 'callback' => 'user_admin', 'access' => $admin_access, 'type' => MENU_LOCAL_TASK); $items[] = array('path' => 'admin/user/configure', 'title' => t('configure'), 'callback' => 'user_configure', 'access' => $admin_access, 'type' => MENU_LOCAL_TASK); $items[] = array('path' => 'admin/access', 'title' => t('access control'), 'callback' => 'user_admin_perm', 'access' => $admin_access); $items[] = array('path' => 'admin/access/permissions', 'title' => t('permissions'), 'callback' => 'user_admin_perm', 'access' => $admin_access, 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); $items[] = array('path' => 'admin/access/roles', 'title' => t('roles'), 'callback' => 'user_admin_role', 'access' => $admin_access, 'type' => MENU_LOCAL_TASK); $items[] = array('path' => 'admin/access/roles/edit', 'title' => t('edit role'), 'callback' => 'user_admin_role', 'access' => $admin_access, 'type' => MENU_CALLBACK); $items[] = array('path' => 'admin/access/rules', 'title' => t('account rules'), 'callback' => 'user_admin_access', 'access' => $admin_access, 'type' => MENU_LOCAL_TASK, 'weight' => 10); $items[] = array('path' => 'admin/access/rules/list', 'title' => t('list'), 'access' => $admin_access, 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); $items[] = array('path' => 'admin/access/rules/add', 'title' => t('add rule'), 'callback' => 'user_admin_access_add', 'access' => $admin_access, 'type' => MENU_LOCAL_TASK); $items[] = array('path' => 'admin/access/rules/check', 'title' => t('check rules'), 'callback' => 'user_admin_access_check', 'access' => $admin_access, 'type' => MENU_LOCAL_TASK); $items[] = array('path' => 'admin/access/rules/edit', 'title' => t('edit rule'), 'callback' => 'user_admin_access_edit', 'access' => $admin_access, 'type' => MENU_CALLBACK); $items[] = array('path' => 'admin/access/rules/delete', 'title' => t('delete rule'), 'callback' => 'user_admin_access_delete', 'access' => $admin_access, 'type' => MENU_CALLBACK);
if (module_exist('search')) { $items[] = array('path' => 'admin/user/search', 'title' => t('search'), 'callback' => 'user_admin', 'access' => $admin_access, 'type' => MENU_LOCAL_TASK); }
- - - - -
If you change all of the instances of "admin/" (in the "'path' =>" sections) to something like "dru_admin/" in the above code segment of your user.module, all the access URL's will change. I'm pretty sure all of the form-post actions will update as well, as will the menu links in the administer menu... that's the beauty of the structure of Drupal. Oh - one more thing: the menus are cached in Drupal, so changing the code probably won't affect the site immediately. I think logging out and back in may refresh the menu cache, or quitting the browser and coming back in to init a new session.
I haven't actually tested changing the admin paths, and perhaps Ber can comment on any concerns this change might raise... but this method may be one way around your ISP-imposed directory names.
Cheers, --Katin
-- [ Drupal support list | http://lists.drupal.org/ ]
-- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.15.0/248 - Release Date: 01/02/2006
I tried on 4.5 and never got it right. However, I did change the Drupal to a one-letter "D" and used "info" or "blog" for the subdirectory name a few times.
On of the things I all ways do if to create a redirect from the default "index.htm" to "index.php".
So you could create a redirect "index.htm" to "/drupal/index.php" and then use pathauto! Or maybe you won't even need pathauto.
pathauto Provides a mechanism for modules to automatically generate aliases for the content they manage.
I like path auto because it creates the feeling of subdirectory for categories
This should work unless you on a slow host and are getting 10,000 page views a day.
Regards Ron www.inmrc.com
-----Original Message----- From: RobiW [mailto:drupal@bo-ness.org.uk] Sent: Friday, February 03, 2006 10:04 AM To: support@drupal.org Subject: RE: [support] setting.php - changing Drupal's admin path
Ron
That's what was done with a redirect in htaccess to the subdir. What would like to do, however, is the browser address bar to show http:/www.yourdomain/about etc not http:/www.yourdomain/drupal/about. I'm sure it can be done with a mod_rewrite or mod_alias but not sure exactly how to do it!
regards Rob
=================================== Rob in that cast it a very good reason to use a subdirectory. Ie http:/www.yourdomain/drupal/
Making changes to the code always come back and bites you in a--. This is very simple to do. Just use the full name in the base
/** * Base URL: * * The URL of your website's main page. It is not allowed to have * a trailing slash; Drupal will add it for you. */ $base_url = 'http://yourdomain/drupal';
/**
Don't use localhost
If you have a problem with secondary, pages loading, change the .htaccess statement to reflect the new path.
Regards Ron http://inmrc.com
-----Original Message----- From: dir.dev@digitalreef.net [mailto:dir.dev@digitalreef.net] Sent: Wednesday, February 01, 2006 8:04 AM To: support@drupal.org Subject: RE: [support] setting.php - changing Drupal's admin path
Op woensdag 1 februari 2006 11:07, schreef RobiW:
I have a similar problem and the reason is that our ISP provides administrative features like stats, spam control etc with the url using www.mydomain.co.uk/admin which conflicts with Drupal admin feature and I have not been able to find any way to change it in Drupal.
Havn't found a way round it yet!
Hey Rob -
If you are willing to make some changes to your Drupal modules/user.module, you can change the URL for the Drupal admin functions. Here's the relevant section (from ver 4.6.5):
//admin pages $items[] = array('path' => 'admin/user', 'title' => t('users'), 'callback' => 'user_admin', 'access' => $admin_access); $items[] = array('path' => 'admin/user/list', 'title' => t('list'), 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); $items[] = array('path' => 'admin/user/create', 'title' => t('add user'), 'callback' => 'user_admin', 'access' => $admin_access, 'type' => MENU_LOCAL_TASK); $items[] = array('path' => 'admin/user/configure', 'title' => t('configure'), 'callback' => 'user_configure', 'access' => $admin_access, 'type' => MENU_LOCAL_TASK); $items[] = array('path' => 'admin/access', 'title' => t('access control'), 'callback' => 'user_admin_perm', 'access' => $admin_access); $items[] = array('path' => 'admin/access/permissions', 'title' => t('permissions'), 'callback' => 'user_admin_perm', 'access' => $admin_access, 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); $items[] = array('path' => 'admin/access/roles', 'title' => t('roles'), 'callback' => 'user_admin_role', 'access' => $admin_access, 'type' => MENU_LOCAL_TASK); $items[] = array('path' => 'admin/access/roles/edit', 'title' => t('edit role'), 'callback' => 'user_admin_role', 'access' => $admin_access, 'type' => MENU_CALLBACK); $items[] = array('path' => 'admin/access/rules', 'title' => t('account rules'), 'callback' => 'user_admin_access', 'access' => $admin_access, 'type' => MENU_LOCAL_TASK, 'weight' => 10); $items[] = array('path' => 'admin/access/rules/list', 'title' => t('list'), 'access' => $admin_access, 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); $items[] = array('path' => 'admin/access/rules/add', 'title' => t('add rule'), 'callback' => 'user_admin_access_add', 'access' => $admin_access, 'type' => MENU_LOCAL_TASK); $items[] = array('path' => 'admin/access/rules/check', 'title' => t('check rules'), 'callback' => 'user_admin_access_check', 'access' => $admin_access, 'type' => MENU_LOCAL_TASK); $items[] = array('path' => 'admin/access/rules/edit', 'title' => t('edit rule'), 'callback' => 'user_admin_access_edit', 'access' => $admin_access, 'type' => MENU_CALLBACK); $items[] = array('path' => 'admin/access/rules/delete', 'title' => t('delete rule'), 'callback' => 'user_admin_access_delete', 'access' => $admin_access, 'type' => MENU_CALLBACK);
if (module_exist('search')) { $items[] = array('path' => 'admin/user/search', 'title' => t('search'), 'callback' => 'user_admin', 'access' => $admin_access, 'type' => MENU_LOCAL_TASK); }
- - - - -
If you change all of the instances of "admin/" (in the "'path' =>" sections) to something like "dru_admin/" in the above code segment of your user.module, all the access URL's will change. I'm pretty sure all of the form-post actions will update as well, as will the menu links in the administer menu... that's the beauty of the structure of Drupal. Oh - one more thing: the menus are cached in Drupal, so changing the code probably won't affect the site immediately. I think logging out and back in may refresh the menu cache, or quitting the browser and coming back in to init a new session.
I haven't actually tested changing the admin paths, and perhaps Ber can comment on any concerns this change might raise... but this method may be one way around your ISP-imposed directory names.
Cheers, --Katin
-- [ Drupal support list | http://lists.drupal.org/ ]
-- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.15.0/248 - Release Date: 01/02/2006
why not just use mod redirect -
if your host allows you to use mod redirect.
mod redirect allows you to automatically redirect all requests to www.example.com/drupal to www.example.com
it is a simple like that you include in the .htaccess file.
On 2/1/06, RobiW drupal@bo-ness.org.uk wrote:
Op woensdag 1 februari 2006 11:07, schreef RobiW:
I have a similar problem and the reason is that our ISP provides administrative features like stats, spam control etc with the url using www.mydomain.co.uk/admin which conflicts with Drupal admin feature and I have not been able to find any way to change it in Drupal.
Havn't found a way round it yet!
Yes, but moving it into a subdirectory is not going to help that, obviously! Unless you just use example.com/drupal as your main url, the /admin and so will still give trouble. =========================================
It does overcome the problem in that the site admin facility is accessed directly on mydomain.co.uk/admin whereas drupal site admin is accessed using mydomain.co.uk/drupaldir/admin and both co-exist.
I have a redirect in .htaccess of /index.php to /drupaldir/index.php so only calls to index.php point to drupal site content.
Rob
-- [ Drupal support list | http://lists.drupal.org/ ]
You might also see what happens if you create an alias file (aka link file) from index.php to drupal/index.php... does cPanel allow creation of link/alias files? I'm note sure...
If you try this, be sure to have all your Drupal config file settings matching the full domain (www.example.com/drupal), because it'll need to pick that up to run properly.
What you are trying to do in theory basically (if I understand everything correctly) is make the page: www.example.com/drupal/index.php show up as www.example.com/index.php . The $baseurl is a setting that tells drupal
how
to formulate it's path. This does not change the server's behavior. Now,
you
could setup a subdomain. E.g. drupal.example.com, which may help.
Hope all that made some sense. Anyone correct me if I'm wrong. I'm not too familiar with cpanel, so perhaps there is a setting he/she could tweak?
I am managing several Drupal sites, and the hosting service has shut off email from 'nobody' as a security risk.
This breaks registration, password resets, notify, contact, and any other feature that sends email.
There are a variety of confusing and possibly conflicting recommendations on the Drupal site about this problem. Most involve multi-step patches to each site, which becomes very difficult if you are managing multiple sites.
Is the an "approved" way to deal with this problem?
Thanks, Andrew
http://www.designnine.com/ Blacksburg, Virginia Voice: 540.951.4400 Cell: 540.320.4406
Actually it not under a subdirectory. It a subdirectory of Linux but not of your account. If you do not include the drupal directory it will be as you want it www.yourdomain/index.php
If you want to use a subdirectory create a redirect for index.php to http://yourdomain/drupal/index.php
Then make you base reference as above.
Cpanel is very flexible check out the build in help
Best regards Ron Mahon http://inmrc.com
-----Original Message----- From: Earnest Berry [mailto:earnest.berry@gmail.com] Sent: Tuesday, January 31, 2006 12:50 AM To: support@drupal.org Subject: RE: [support] setting.php
Ok. Well, if you installed drupal into a subdirectory, then for the most part the answer is no; since you do not have much access to the server configurations.
What you are trying to do in theory basically (if I understand everything correctly) is make the page: www.example.com/drupal/index.php show up as www.example.com/index.php . The $baseurl is a setting that tells drupal how to formulate it's path. This does not change the server's behavior. Now, you could setup a subdomain. E.g. drupal.example.com, which may help.
Hope all that made some sense. Anyone correct me if I'm wrong. I'm not too familiar with cpanel, so perhaps there is a setting he/she could tweak?
- Souvent
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of c cc Sent: Tuesday, January 31, 2006 12:39 AM To: support@drupal.org Subject: Re: [support] setting.php
Hi,
Thanks for the quick reply. I don't think I can change any of the server setting because I don't have access to root, and it is on Cpanel with Apache 1.3. Thanks!
On 1/30/06, Earnest Berry earnest.berry@gmail.com wrote:
Hello. This is more a server setting than a drupal setting. You need to setup a redirect, alias, virtual host, or something to get your desired effect. It may help to tell everyone more about your setup. E.g. apache, IIS, hosted?
Souvent22
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of c cc Sent: Tuesday, January 31, 2006 12:18 AM To: support@drupal.org Subject: [support] setting.php
My drupal installation is under a subfolder of my domain; therefore, I need to type the subfolder (www.example.com/drupal) on the address bar inorder for drupal to come up. How can I change the setting so I do not need to type the subfolder, like www.example.com instead of www.example.com/drupal?
I have tried to change the settings.php $base_url ='http://example.com' instead of $base_url ='http://example.com/drupal', but it still does not work. Any idea? Thanks! -- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]