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 »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • 500 Internal Server Error
Pages: [1]

Author Topic: 500 Internal Server Error  (Read 6058 times)

senojeel

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 1
500 Internal Server Error
January 14, 2012, 08:42:23 am
I have seen a lot of posts on this, but cannot figure out my issue.

I migrated my Joomla site and have not been able get to any CiviCRM menu items.  It gives me the error below:

Code: [Select]
The website encountered an error while retrieving http://www.artscouncilofindianapolis.org/administrator/index.php?option=com_civicrm. It may be down for maintenance or configured incorrectly.
It is hosted on a MediaTemple DV 4 (moved from 3.5).  I can get it to install, but it always gets the same error above.  I also have done a clean install of Joomla and CiviCRM and it works fine, so it is not server specs.  There has to be a hook in the Joomla config that I cannot find that is causing the error.

Any ideas? I know I can probably migrate all of my content to a fresh install, but I was trying to avoid that...

Thanks!
Shawn

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: 500 Internal Server Error
January 14, 2012, 01:28:32 pm
Quote from: senojeel on January 14, 2012, 08:42:23 am
I know I can probably migrate all of my content to a fresh install, but I was trying to avoid that...

What you can do is make a fresh install, and then just copy over your old databases. Then just run:

Code: [Select]
UPDATE `civicrm_domain` SET `config_backend`=NULL ;
in the CiviCRM DB and that should be it. That is an easy way to migrate I think.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

senojeel

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 1
Re: 500 Internal Server Error
January 14, 2012, 06:59:34 pm
Are you saying to do a fresh install of Joomla and Civicrm, then copy my Joomla data over, then run the query?

senojeel

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 1
Re: 500 Internal Server Error
January 14, 2012, 08:00:33 pm
I made a clean install of Joomla, exported my content from my original install, then installed CiviCRM and it seems to work now.  Now going to rebuild my CiviCRM forms. Although, maybe I can try to export my previous CiviCRM tables now...

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: 500 Internal Server Error
January 15, 2012, 02:59:25 am
Quote from: senojeel on January 14, 2012, 08:00:33 pm
Although, maybe I can try to export my previous CiviCRM tables now...

Yes, you can copy those over to the new DB and then run that SQL I sent.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

senojeel

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 1
Re: 500 Internal Server Error
January 15, 2012, 07:50:13 pm
I have an installation with all of my migrated data working in a subdirectory.  However, when I try to move it to the root or reinstall in the root using the exact same steps,  I get the same error:

The website encountered an error while retrieving http://www.artscouncilofindianapolis.org/administrator/index.php?option=com_civicrm. It may be down for maintenance or configured incorrectly.
Here are some suggestions:
Reload this webpage later.
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

The steps I used:

1.  I dropped my existing db
2. Installed Joomla 1.5.25
3. Ran sql dump to migrate my data
4. Install CiviCRM 3.4.8
5. run sql dump of my previous CiviCRM data
6. ran UPDATE `civicrm_domain` SET `config_backend`=NULL ;

This produced exactly what I wanted...

I just can't figure out why it won't work in the root.

Any more ideas?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: 500 Internal Server Error
January 16, 2012, 02:32:11 am
There should be an error logged in the server logs when you get a 500 error. Can you find that error?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

senojeel

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 1
Re: 500 Internal Server Error
January 16, 2012, 07:08:55 am
Note to self--Always check server error logs...

It turned out that the template_c directory did not have write permissions.  So now it works.

One more question, all of my CiviCRM menus still had my other directory in the url.  Is there a fast way to change that?  I already changed it by do a find and replace in my sql, I was just wondering if there was an easier way.

Thanks for all of your help.

Shawn

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: 500 Internal Server Error
January 16, 2012, 07:15:27 am
To rebuild menus:

civicrm/menu/rebuild?reset=1

:)
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

senojeel

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 1
Re: 500 Internal Server Error
January 16, 2012, 02:32:00 pm
I remember that now.  Thanks Herschel!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • 500 Internal Server Error

This forum was archived on 2017-11-26.