Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: installation prob. PHP related?

  1. #1
    udammann is offline Member
    Join Date
    Feb 2006
    Posts
    7

    Default installation prob. PHP related?

    My environment:

    1. SuSE 10.0 distribution
    2. PHP vers. 4.4..0 all extensions enabled (running JoomlaCMS and other PHP and MySQL related progs without any prob)
    3. MySql vers. 4.1.13

    Downlaoded openSugarCRM 4.0.1

    copied unpacked openSugar 4.0.1 to apache webspace. Apache running,PHP running, MySqlServer running.

    Went to: http://my_domain.com/my_crm/ (my_crm = openSugarCRM 4.0.1)

    starting installation through webURL: ...../install.php and then....

    Warning: main(include/utils/security_utils.php): failed to open stream: No such file or directory in /srv/www/htdocs/Sugar/SugarSuite/include/utils.php on line 32

    Warning: main(): Failed opening 'include/utils/security_utils.php' for inclusion (include_path='/usr/share/php') in /srv/www/htdocs/Sugar/SugarSuite/include/utils.php on line 32

    Warning: main(include/utils/db_utils.php): failed to open stream: No such file or directory in /srv/www/htdocs/Sugar/SugarSuite/include/utils.php on line 2421

    Fatal error: main(): Failed opening required 'include/utils/db_utils.php' (include_path='/usr/share/php') in /srv/www/htdocs/Sugar/SugarSuite/include/utils.php on line 2421

    What the hack might this be...

  2. #2
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: installation prob. PHP related?

    Did you check your permissions and owners? I have a permissions ans owners tutorial on my website under 'documents'
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  3. #3
    udammann is offline Member
    Join Date
    Feb 2006
    Posts
    7

    Default Re: installer provides "wrong" pathways to include files

    Hello;

    I have visited your web support page and read the documents.

    I completely removed the sugarcrm from my apache webspace and reinstalled it

    I made the recommended changes in my php.ini and double checked user permissions read/write stuff in my apache webspace etc.

    I started again the sugarcrm installation via firefox browser. This is what I get:

    Warning: main(include/utils/security_utils.php): failed to open stream: No such file or directory in /srv/www/htdocs/sugarcrm/include/utils.php on line 32

    Warning: main(): Failed opening 'include/utils/security_utils.php' for inclusion (include_path='/usr/share/php') in /srv/www/htdocs/sugarcrm/include/utils.php on line 32

    Warning: main(include/utils/db_utils.php): failed to open stream: No such file or directory in /srv/www/htdocs/sugarcrm/include/utils.php on line 2421

    Fatal error: main(): Failed opening required 'include/utils/db_utils.php' (include_path='/usr/share/php') in /srv/www/htdocs/sugarcrm/include/utils.php on line 2421
    The messages are correct. It seems to be a problem in the installer to find the correct pathes.
    I had a closer look and manually corrected the wrong pathways. In most cases I just had to add a ./ at the beginning og the include files.

    By doing this error message by error message I was able to arrive to the installation screnn and about 60 minuts later I "aarived" at step 6 of the installation routine. By this time the databse was created, a user was set up and the admin was defined. The database sugarcrm was created in MySql, but not populated.

    Are you guys sure that the installation routine is properly working?

    I could not finish the installation routine after all, due to an error in the MySqlHandler section, were a "No valid entry poin"t was reported, so I gave up at this point.
    Last edited by udammann; 2006-02-08 at 04:31 PM.

  4. #4
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: installation prob. PHP related?

    I can't tell you wants wrong yet but I can tell you that the install works, 1000's of installs have been done using it. I can't think of any reason that you would have to instert a './' unless your directory structure was messed up. I'm not sure where to go after that tho. How about your apache logs, is there any useful information there? If you want you could erase your logs then do a install and when it fails either look at the log or attach it here adn we'll look at it.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  5. #5
    sugarchris's Avatar
    sugarchris is offline Sugar Community Member
    Join Date
    Sep 2005
    Location
    San Francisco, CA
    Posts
    861

    Default Re: installation prob. PHP related?

    I believe Ken is correct in his appraisal.

    Try this. At the top of ./index.php add:
    PHP Code:
    echo getcwd();
    die(); 
    What is output? And does it match the directory structure your host provides? Sugar may be getting confused with an unusual kind of apache-redirect/virutal hosting directive(s). I can vouch for the vhost thing working in 99% of installs, so something must be different with your host.

  6. #6
    udammann is offline Member
    Join Date
    Feb 2006
    Posts
    7

    Default Re: installation prob. PHP related?

    I have added your recommended command in your post one line up.

    The URL: http://mydomain.com/sugarcrm just shows this now:

    /srv/www/htdocs/sugarcrm

    The path is perfectly correct.

    That is it.
    Last edited by udammann; 2006-02-08 at 06:16 PM.

  7. #7
    sugarchris's Avatar
    sugarchris is offline Sugar Community Member
    Join Date
    Sep 2005
    Location
    San Francisco, CA
    Posts
    861

    Default Re: installation prob. PHP related?

    If it's correct, why is that you posted:
    Code:
    Warning: main(include/utils/security_utils.php): failed to open stream: No such file or directory in /srv/www/htdocs/Sugar/SugarSuite/include/utils.php on line 32
    ...
    It looks like your install is in Sugar/SugarSuite/.

  8. #8
    udammann is offline Member
    Join Date
    Feb 2006
    Posts
    7

    Default Re: installation prob. PHP related?

    Sorry I have not mentioned here that I have reloaded the complete sugarcrm directory to /srv/www/htdocs/sugarcrm.
    This is the final destination in my webspace. The information hereafter relates to this path.

    OK here are the log files:


    Output of URL: http://mydomain.com/sugarcrm

    Warning: main(include/utils/security_utils.php): failed to open stream: No such file or directory in /srv/www/htdocs/sugarcrm/include/utils.php on line 32

    Warning: main(): Failed opening 'include/utils/security_utils.php' for inclusion (include_path='/usr/share/php') in /srv/www/htdocs/sugarcrm/include/utils.php on line 32

    Warning: main(include/utils/db_utils.php): failed to open stream: No such file or directory in /srv/www/htdocs/sugarcrm/include/utils.php on line 2421

    Fatal error: main(): Failed opening required 'include/utils/db_utils.php' (include_path='/usr/share/php') in /srv/www/htdocs/sugarcrm/include/utils.php on line 2421

    __________________________________________________ __________________________________________________ ______

    apache2 access_log:

    192.168.1.10 - - [08/Feb/2006:21:56:54 +0100] "GET /sugarcrm/install.php HTTP/1.1" 200 781 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 Firefox/1.0.7 SUSE/1.0.7-0.1"
    192.168.1.10 - - [08/Feb/2006:21:56:54 +0100] "GET /favicon.ico HTTP/1.1" 404 1164 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 Firefox/1.0.7 SUSE/1.0.7-0.1"

    __________________________________________________ __________________________________________________ _______

    Apache2 error_log:

    [Wed Feb 08 21:56:45 2006] [error] [client 192.168.1.10] File does not exist: /srv/www/htdocs/favicon.ico
    [Wed Feb 08 21:56:54 2006] [error] [client 192.168.1.10] File does not exist: /srv/www/htdocs/favicon.ico
    I should also note that I have completly deinstalled the apache2 server and made a fresh reinstall through the SuSE YAST package Manager. All my other website such as a Joomla-Portal, Webmin and OpenWebmail are running perfectly. Also after the new installation of the apache Server. I also rebooted the system to make sure that a clean start up was performed. All services are running: Postfix MailServer, FTP-Server, ApacheWebserver and PHP 4.4.0 and MySQL and Perl are up and running.
    Last edited by udammann; 2006-02-08 at 08:21 PM.

  9. #9
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: installation prob. PHP related?

    OK, nothing useful there. Can you show us what ls -l /srv/www/htdocs/sugarcrm/include/utils/security_utils.php (LS-L in lower case) says?
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  10. #10
    udammann is offline Member
    Join Date
    Feb 2006
    Posts
    7

    Default Re: installation prob. PHP related?

    Hi Ken... this is what it shows:

    dammann:~ # ls -l /srv/www/htdocs/sugarcrm/include/utils/security_utils.php
    -rw-rw-rw- 1 root root 3638 Jan 25 03:10 /srv/www/htdocs/sugarcrm/include/utils/security_utils.php
    dammann:~ #

    A short summary again of the problem I am facing
    __________________________________________________ ________________________________

    Warning: main(include/utils/security_utils.php): failed to open stream: No such file or directory in /srv/www/htdocs/sugarcrm/include/utils.php on line 32
    When I check the utils.php code I do find in line 32 an include statement.

    include('include/utils/security_utils.php'); <--- the path setting is not correct in my installation. I swear I did not touch any line of code.

    I just added ./ in the include directive

    include('./include/utils/security_utils.php');

    Rerunning the install URL includes now this statement correctly in line 32 of utils.php and stumbles over the next include statement, due to a path error.

    The next URL error message is:
    Warning: main(include/utils/db_utils.php): failed to open stream: No such file or directory in /srv/www/htdocs/sugarcrm/include/utils.php on line 2421
    __________________________________________________ ________________________________
    Last edited by udammann; 2006-02-09 at 12:20 PM.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •