Uploading Drupal on WinHost servers

Discussion in 'Third-party applications' started by mauro218, Apr 27, 2011.

  1. Hi there,

    I'm trying to upload a Drupal Website created in Web Matrix. I used the "Site from Web Gallery" feature in Web Matrix and selected Drupal 7. I was able to use Web Deploy and it worked great.

    Now, I'm trying to to hit my site "http://www.mdrfit.com/" but I'm getting the following error:

    Warning: require_once(C:\Windows\SysWOW64\inetsrv/includes/bootstrap.inc) [function.require-once]: failed to open stream: No such file or directory in E:\web\mdrfitco\index.php on line 21

    Fatal error: require_once() [function.require]: Failed opening required 'C:\Windows\SysWOW64\inetsrv/includes/bootstrap.inc' (include_path='.;C:\PHP\pear') in E:\web\mdrfitco\index.php on line 21

    I think it has something to do with the DRUPAL_ROOT in the index.php file.
    ------------------------------------------------------------
    define('DRUPAL_ROOT', getcwd());
    require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
    drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
    menu_execute_active_handler();
    ------------------------------------------------------------

    I tried hardcoding the Path to root: E:\web\mdrfitco\ instead

    ------------------------------------------------------------
    define('DRUPAL_ROOT', 'E:\web\mdrfitco');
    require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
    drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
    menu_execute_active_handler();
    ------------------------------------------------------------

    After that, it gives me a different error:

    Fatal error: Undefined class constant 'SQLSRV_ATTR_DIRECT_QUERY' in E:\web\mdrfitco\includes\database\sqlsrv\database.inc on line 60

    I think in this case it can't find the path for the driver SQLSRV for MS SQL. Therefore, it can't execute the SQLSRV_ATTR_DIRECT_QUERY function.

    I run the same Drupal site in my localhost and it works like a charm. I don't understand why I can't get it work in Winhost.

    Please, I need help with this!

    Regard,

    Jhonny
     
  2. Ray

    Ray

    Did you fix your issue. Now the error I am getting when I pull up your site http://www.mdrfit.com/ is..

    Fatal error: Undefined class constant 'SQLSRV_ATTR_DIRECT_QUERY' in E:\web\mdrfitco\includes\database\sqlsrv\database.inc

    This may mean a connection string problem to the MySQL.
     
  3. Ray, I don't know if I did correct by replacing getcwd() --> 'E:\web\mdrfitco'
    So far, I have it like this. But now, it's giving the SQLSRV_ATTR_DIRECT_QUERY error. I'm using MS SQL instead of MySQL.

    I though using Webmatrix was going to be easier to install and upload Drupal in Winhost. Any suggestions?

    Any idea of these two errors I'm getting?

    Jhonny
     
  4. Ray

    Ray

    If you used web matrix it may have not setup the MySQL database correctly. You may simply want to download the actual web application from Drupal and manually configure it, and use FTP to upload it to our web server. Try using this link as a guide line on how to achieve this.

    http://forum.Winhost.com/showthread.php?t=5395
     
    Last edited by a moderator: Oct 14, 2015
  5. Drupal form scratch

    Ray,

    I did everything from scratch. I went to Drupal.org and downloaded the most recent version of Drupal 7.

    I unzipped everything into my desktop and used Filezilla to upload all the files. However, when I hit http://www.mdrfit.com it keeps giving me the error:

    Warning: require_once(C:\Windows\SysWOW64\inetsrv/includes/bootstrap.inc) [function.require-once]: failed to open stream: No such file or directory in E:\web\mdrfitco\index.php on line 21

    Fatal error: require_once() [function.require]: Failed opening required 'C:\Windows\SysWOW64\inetsrv/includes/bootstrap.inc' (include_path='.;C:\PHP\pear') in E:\web\mdrfitco\index.php on line 21

    -------------------------------------------------------

    I looked again at the link you gave me
    http://forum.Winhost.com/showthread.php?t=5395
    And I saw people with the same problem. I followed the advise from davep in a post from that link "I created a subdirectory, moved the files into there and was able to complete the installation." and indeed the installation page for Drupal came up and I was able to complete the installation.

    http://www.mdrfit.com/MDR/

    That brings me to the Drupal page, however the index.php points to the root, so I get "The requested page could not be found.".

    I don't think it's a problem with Drupal but the root folder. Maybe some permissions.

    Who can help me in Winhost to set up Drupal? Who do I have to talk to?

    Ray can you help me solving this issue or should I look for a different hosting provider?

    Jhonny
     
    Last edited by a moderator: Oct 14, 2015
  6. Ray

    Ray

    This definitely doesn't sound like a permission issue. Are you sure you uploaded everything to your subfolder?
     
  7. The same issue here I have, even have nothing to add
    By the way I'm sure I've uploaded absolutely everything
     

Share This Page