CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Page not found error after install
Pages: [1]

Author Topic: Page not found error after install  (Read 2461 times)

abe

  • Guest
Page not found error after install
June 19, 2009, 10:18:26 pm
I am trying to install a brand-new drupal-6.12 site with civicrm-2.2.

I have multiple drupal sites hanging off the root folder www/, the other drupal-site folders are symlinked to www/.  my www/sites folder contains subfolders:
1. 'all'
    +- 'modules'
        +- civicrm
            +- install
        +- other modules
    +- 'themes'
        +- 'basic' (theme)
2. 'd6.mysite.ca' (my d6 site folder), has files
    - settings.php (for d6 config file)
    - civicrm.settings.php file

I manually updated the civicrm.settings.php file to contain site specific settings.  The config was set for separate databases for separate sites.

I logged-in as admin on my site and then tried to run  http://d6.mysite.ca/sites/all/modules/civicrm/install/index.php  but I always get error 'page not found'.

I tested running a phpinfo.php script from each sub-folder,
> d6.mysite.ca/sites/phpinfo.php >>> displayed ok
> d6.mysite.ca/sites/all/phpinfo.php >>> displayed ok also
> d6.mysite.ca/sites/all/modules/phpinfo.php >>> had page-not-found error

Other than civicrm, the d6.mysite.ca works ok as a drupal site.

I am at a loss on this error.  Has anybody encountered similar errors after installation?

Thanks for any help!
« Last Edit: June 19, 2009, 10:22:52 pm by abe »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Page not found error after install
June 20, 2009, 06:57:53 am

i would try to get this url working first:

> d6.mysite.ca/sites/all/modules/phpinfo.php >>> had page-not-found error


before trying to install civicrm. no idea why it is giving the page-not-found error

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

abe

  • Guest
Re: Page not found error after install
June 20, 2009, 03:05:17 pm
I checked in drupal forums, the problem of not being able to run php scripts in drupal subfolders has been discussed in several posts, e.g. http://drupal.org/node/167169 and others.  There seems to be no consistent solution in modifying .htaccess.  I tried most of the posted .htaccess tweaks but none works in my case.

> Drupal-6 takes over the script if it is running from a folder hanging off the 'modules/', either from sites/all/modules or sites/d6.mysite.com/modules.  

It looks like the drupal civicrm install guidelines may not always work when running script '..sites/all/modules/civicrm/install/index.php'.  
> aside from the install/index.php, is there any other alternative for installing civicrm in drupal?
> is there a 'manual' method of installation?
« Last Edit: June 20, 2009, 03:23:29 pm by abe »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Page not found error after install
June 20, 2009, 04:46:53 pm

I suspect this is due to some integration with some other applications / hosting provider. On our boxes (and quite a few others) this has not been an issue. What hosting provider do you use, and what other applications are on the system?

from the url u gave:

Code: [Select]
By default, if a file exists you can access it directly via an accurate URL, without Drupal even getting involved (this is due to a directive in the .htaccess rewrite)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

abe

  • Guest
Re: Page not found error after install
June 20, 2009, 08:27:42 pm
Thanks a lot for your reply  :)

My hosting provider is HostMDS in Canada.  

> Currently there are no other applications on my website apart from drupal-6.12 installed on the root.  
> I did a manual install of D6, not using CPANEL.
> I have restored the default .htaccess file that came with drupal, other changes I made based on the drupal postings did not work.

I did a brand-new D6 install on a different server of my hosting provider, and my script problems have disappeared.  This means that there is a server setting (apache?) that is fundamentally different between the two servers.  I will ask my provider for the differences between the two servers.

.htaccess tweaks are way over my head.  any help is appreciated.

Thanks again.

Abe

  # #####################################
  # [test-1] copied drupal's .htaccess to sites/all/modules
  # D6 error : Page not found
  # D6 log entry:
  # Type        page not found
  # Location    http://d6.<mysite>.ca/sites/all/modules/index.php
  # Referrer
  # Message     500.shtml
  # Severity    warning
  # #####################################
  # [test-2a] change rewrite base
  # result>> Internal server error
  # the server encountered internal error or misconfiguration and was unable to complete request
  # RewriteBase /d6
  # #####################################
  # [test-2b] change rewrite base
  # result>> page not found error
  # RewriteBase /
  # #####################################
  # [test-3] rewrite REQUEST_URI
  # http://drupal.org/node/64708#comment-122102
  # http://drupal.org/node/30334
  # result>> page not found error
  # RewriteCond %{REQUEST_URI} !^/sites/all/modules
  # RewriteCond %{REQUEST_URI} !^/sites/all/modules/
  # #####################################
  # [test-4] rewrite REQUEST_URI
  # http://drupal.org/node/52465#comment-99004
  # result>> page not found error
  # RewriteCond %{REQUEST_URI} ^/(^/sites/all/modules*)$
  # RewriteRule ^(.*)$ $1 [L,QSA]
  # #####################################
  # [test-5] rewrite REQUEST_URI
  # http://drupal.org/node/64708#comment-122131
  # result>> page not found error
  # RewriteCond %{REQUEST_URI} !-U [OR]

« Last Edit: June 21, 2009, 02:01:16 pm by abe »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Page not found error after install

This forum was archived on 2017-11-26.