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) »
  • No page found problem after installing civicrm on windows
Pages: [1]

Author Topic: No page found problem after installing civicrm on windows  (Read 7380 times)

mathran

  • Guest
No page found problem after installing civicrm on windows
August 21, 2007, 01:12:06 pm
I am a newby on CiviCRM.

I tried to install civiCRM on Drupal. The database stuff and settings did look good during installation.
But:
I had to change the index.php file in the install directory because there were hard coded slashes and no variable. But that was very quickly found and as I am not a php programmer i was a bit proud that i solved the thing.

But the index.php gave me the following warnings:

Warning: session_start() [function.session-start]: open(/tmp\sess_7fa61c27f799e0fdbe1f7c40853007eb, O_RDWR) failed: No such file or directory (2) in C:\Inetpub\wwwroot\CRM\sites\all\modules\civicrm\drupal\install\index.php on line 569

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\Inetpub\wwwroot\CRM\sites\all\modules\civicrm\drupal\install\index.php:569) in C:\Inetpub\wwwroot\CRM\sites\all\modules\civicrm\drupal\install\index.php on line 569

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Inetpub\wwwroot\CRM\sites\all\modules\civicrm\drupal\install\index.php:569) in C:\Inetpub\wwwroot\CRM\sites\all\modules\civicrm\drupal\install\index.php on line 569
Installing CiviCRM...
I am now running through the installation steps (this should take a few minutes)
If you receive a fatal error, refresh this page to continue the installation
•  Building database schema and setup files...
Installed CiviCRM successfully. I will now try and direct you to Drupal Home to confirm that the installation was successful.

Warning: Unknown: open(/tmp\sess_7fa61c27f799e0fdbe1f7c40853007eb, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0


So the installation seemed succesful.
After enabling CiviCRM in drupal and pushing the save button something went wrong.
There was a page was not found problem.
Everything i tried that invovled civicrm gave the same problem.

It is an installation under windows. It's a test version and I opened up all the rights.

Thanks a lot,

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: No page found problem after installing civicrm on windows
August 21, 2007, 02:10:54 pm

most likely this is an issue with a setting in your php.ini, specifically:

session.save_path = "/tmp"

please read the php manual / comments above that line and fix as needed.

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

mathran

  • Guest
Re: No page found problem after installing civicrm on windows
August 22, 2007, 12:26:19 am
Thanks, changing the session.save_path did help. The warning are gone but :
The page not found is still coming.

This is coming after enabling and disabling the civicrm module and when te module is enabled after selecting the civicrm option in the navigation manu.
(the page would be : http://localhost/CRM/index.php?q=civicrm)

Is there something taht I could check ?
Can I put some debug statements somewhere ?

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: No page found problem after installing civicrm on windows
August 22, 2007, 12:51:38 am

Please check your error logs and see if there is anything relevant in the logs

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

mathran

  • Guest
Re: No page found problem after installing civicrm on windows
August 22, 2007, 01:42:04 am
It may sound stupid but where do I find these error logs ?

I do work with IIS on XP and did look for events in the eventviewer, tried the error logs in \system32\Logfiles\W3SVC1.
But didn't found anything.

I looked for other messages on this forum and checked some little things as:
memory_limit = 128M
error_reporting  =  E_ALL & ~E_NOTICE

I did use the automated installler !

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: No page found problem after installing civicrm on windows
August 22, 2007, 01:47:48 am

Sorry, we dont have any experience running our software on windows and/or IIS. So cant be of any help here

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

lloydhome

  • Guest
Re: No page found problem after installing civicrm on windows
August 27, 2007, 06:24:05 am
I am having a very similar problem.  I am running Apache 1.3.33, PHP 5.2, MySQL 5.0.27 on MacOSX 10.4.

I believe the above configuration is irrelevant and if the problem is the same as mine then Windows is also not the issue.

I installed Drupal 5.2 using its wizard and used the DB name drupalcrm.  I then ran the CiviCRM install and accidentally used the Drupal DB name drupal which existed from another test install previously and unrelated to CiviCRM.  I enabled the module and recieved the oddities mentioned by the poster.  I decided to try re-installing CiviCRM - deleted the civicrm.settings.php, dropped the civicrm DB, and reran the wizard.  I then noticed my mistake when the browser's autofill showed 'drupal' as the Drupal DB name.  So I put in the correct name, etc. and ran the install.  Still had the errors about Page Not Found. 

After reading this posting, I decided to check for errors but no errors were there as the default MacOSX PHP install has errors not going to the screen and does not define an error_log filename.  Changed all that, deleted the civicrm.settings.php, dropped the civicrm AND drupalcrm DB.  After rerunning both install wizards all appears to work fine.

I do not know why I needed to drop the drupalcrm database to get this to work.  It seems that given the right DB it should have worked fine.  Maybe it would have and maybe I messed something else up.  It would seem like a good idea to use the Drupal database named in settings.php to keep people from messing it up like I did.  At least prepopulate the values from there and let people change it if they must.  Just a thought.

HTH,

David Lloyd
lloydhome.com

mathran

  • Guest
Re: No page found problem after installing civicrm on windows
August 27, 2007, 07:39:05 am
Thanks David, But it did not work for me.
I dropped the database and even tried to install it in two different databases.

I have a question for Donald Lobo,

We are willing to spend some time on: Getting everything working on a windows enviroment, and of course returning the code to the community.
Can you assist us, by giving some trival information as were to start. (Which function)
Can we make some "deal" on how much questions you can handle before losing your good mood.

Thanks a lot,
Martin

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: No page found problem after installing civicrm on windows
August 27, 2007, 12:52:59 pm

Hey Martin:

Thanx for offering to spend time getting CiviCRM to work a bit better on windows. Much appreciated :)

IRC (irc.freenode.net, #civicrm) is a much better channel for support (since its real time, interactive) rather than forum. So please get on IRC and we can help you there

We definitely are willing to answer as many questions as needed to make this work. There are a few people out there that use CiviCRM on windows. So i think its just a few tweaks to catch all the error conditions etc

You might want to start with giving us a better idea of what is wrong with our windows settings. The installer code is at: drupal/install/

Apologies, if i've sounded "in a bad mood" on the forum sometimes :) I'll try to maintain a good mood when answering forum posts

lobo
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

EdGeraghty

  • Guest
Re: No page found problem after installing civicrm on windows
September 03, 2007, 07:10:25 am
I have been working with CiviCRM under Windows for quite some time, there has been several problems and I try to fix them if I can. I'm not sure if you have everything working yet but I wanted to give you a snippet of my configuration file. The use of back slashes for file paths is important. There is also two patches to 1.8 to fix directory separator problems. The resolved issues are http://issues.civicrm.org/jira/browse/CRM-2247 and http://issues.civicrm.org/jira/browse/CRM-2248.

# NOTES - Under Windows use backslash for filepaths.
# If you have to end with a backslash, you must use TWO of them \\
# otherwise there is a syntax error.
#
# Always use forward slashes for URLs

define( 'CIVICRM_UF_DSN'           , 'mysql://www:password@localhost/www?new_link=true' );

define( 'CIVICRM_DSN'          , 'mysql://civicrm:password@localhost/civicrm?new_link=true' );
define( 'CIVICRM_MYSQL_PATH', 'C:\Program File\MySQL\MySQL Server 5.0\bin' );

$civicrm_root = 'C:\blah\DEV\Workspace\www.blah.ed\drupal\sites\all\modules\civicrm\\';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', 'C:\blah\DEV\drupal_files\www.blah.ed\civicrm\templates_c\\');

define( 'CIVICRM_UF_BASEURL'      , 'http://www.blah.ed/' );

mathran

  • Guest
Re: No page found problem after installing civicrm on windows
September 04, 2007, 12:57:55 pm
Hi Lobo,

Thanks for your good mood. I don't have any expirence with IRC. But that will work. I will start with registering on http://freenode.net.

I tried to change all the slashes and backslashes suggested by EdGeraghty. That gave no result.
Can you tell what procedures are being called by drupel directly after enabling the module and of course pushing the save butten.

What procedure is being called when teh user clicks the civicrm buton in the navigation menu.
Corresponding the link : http://localhost/crm/index.php?q=civicrm.

Thanks a lot,
Mathran

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: No page found problem after installing civicrm on windows
September 04, 2007, 03:32:06 pm

If you are getting a blank page, you might want to check your error log and see what error is being reported

CiviCRM follows normal drupal module conventions and implements the various hooks that drupal invokes. I'm not sure of the order in which they are called, but the following functions are executed from drupal/civicrm.module when there is q=civicrm/* in the url

civicrm_menu
civicrm_block
civicrm_user
civicrm_invoke

Most likely this is a setting issue, so i'd follow the error path rather than tracing the code. You might also want to chat with Ed and see what tweaks he did to make things work on his install

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

mathran

  • Guest
Re: No page found problem after installing civicrm on windows
September 05, 2007, 03:21:05 am
Hi Lobo,

I seems that the CRM_Utils_System::Redirect function returns a https adress instant of a http adress.
If I hard code the adress with htpp instant of https the menu civicrm does respond.
I don't (yet) know if everything is as it should be but it responds.

Does this give any idea where I should look next ?

I did spend some time trying to find out where IIS leaves his errorlog but for now : no result. (Sorry)

Thanks,
Martin

mathran

  • Guest
Re: No page found problem after installing civicrm on windows
September 05, 2007, 03:51:52 am
Hi Lobo,

I did spend some more time on the https problem.
I seems that the system variable $_SERVER['HTTPS'] causes the problem. The value is "Off".
The next lines come from : http://nl3.php.net/reserved.variables

'HTTPS'
Set to a non-empty value if the script was queried through the HTTPS protocol.

Note that when using ISAPI with IIS, the value will be off if the request was not made through the HTTPS protocol.


I did put some comments statements before every combination of this variale and changing the https adress to http.
Of course: that's not a solution, but it gives me the time to test and evaluate civicrm.

Thanks,
Martin

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: No page found problem after installing civicrm on windows
September 05, 2007, 11:07:04 am

martin:

I think i fixed the issue in the codebase. The fix will be part of the next 1.8 release (sometime this week). Thanx for the investigation

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • No page found problem after installing civicrm on windows

This forum was archived on 2017-11-26.