Jump to content


Error loading content.. PATHS PROBLEMS?

paths configuration iis Windows

  • Please log in to reply
3 replies to this topic

#1 wildfandango

wildfandango

    Member

  • Members
  • PipPip
  • 24 posts

Posted 03 July 2017 - 05:46 PM

 
Hello everyone. My problem is with the paths.
 
I have installed GROCERYCRUD on an IIS server and when I connect I get this error message (in my dev env. with XAMPP runs OK):
 
PHP Error was encountered
Severity: Warning
Message: include (assets / grocery_crud / languages ​​/ spanish.php): failed to open stream: No such file or directory
Filename: libraries / Grocery_CRUD.php
Line Number: 4025
 
The issue is that the route exists I imagine that it will be some configuration problem but I do not know how to solve it:
 
The routes and domains are real belong to development site with test data ... login (admin / amin)
 
Virtualhost aims to:
C:\inetpub\atlantice\CIIES.AC2.ES\codeigniter
 
My web.config file contains:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>


     <rewrite>
          <rules>
              <rule name="Index">
              <match url="^(.*)$" />
              <conditions>
                <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
              </conditions>
                    <action type="Rewrite" url="index.php/{R:1}" />
            </rule>
          </rules>
        </rewrite>
    </system.webServer>
</configuration>
 
My index.php file contains:
$system_path = 'C:\inetpub\atlantice\CIIES.AC2.ES\codeigniter\system';
$application_folder = 'C:\inetpub\atlantice\CIIES.AC2.ES\codeigniter\application';
$view_folder = '';
 
My config.php file contains:
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$config['base_url'] = 'http://ciies.ac2.es';
$config['index_page'] = '';
$config['uri_protocol'] = 'REQUEST_URI';
$config['url_suffix'] = '';
$config['language'] = 'spanish';
$config['charset'] = 'UTF-8';
$config['enable_hooks'] = FALSE;
$config['subclass_prefix'] = 'MY_';
$config['composer_autoload'] = FALSE;
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
$config['enable_query_strings'] = FALSE;
$config['controller_trigger'] = 'c';
$config['function_trigger'] = 'm';
$config['directory_trigger'] = 'd';
$config['allow_get_array'] = TRUE;
$config['log_threshold'] =1;
$config['log_path'] = '';
$config['log_file_extension'] = '';
$config['log_file_permissions'] = 0644;
$config['log_date_format'] = 'Y-m-d H:i:s';
$config['error_views_path'] = '';
$config['cache_path'] = '';
$config['cache_query_string'] = FALSE;
$config['encryption_key'] = '';
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = NULL;
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;
$config['cookie_prefix'] = '';
$config['cookie_domain'] = '';
$config['cookie_path'] = '/';
$config['cookie_secure'] = FALSE;
$config['cookie_httponly']  = FALSE;
$config['standardize_newlines'] = FALSE;
$config['global_xss_filtering'] = FALSE;
$config['csrf_protection'] = FALSE;
$config['csrf_token_name'] = 'csrf_test_name';
$config['csrf_cookie_name'] = 'csrf_cookie_name';
$config['csrf_expire'] = 7200;
$config['csrf_regenerate'] = TRUE;
$config['csrf_exclude_uris'] = array();
$config['compress_output'] = FALSE;
$config['time_reference'] = 'local';
$config['rewrite_short_tags'] = FALSE;
$config['proxy_ips'] = '';
 
I am very lost I would appreciate some help ...
THX in advance...
 
 
 
 
 
 
 
 

 



#2 wildfandango

wildfandango

    Member

  • Members
  • PipPip
  • 24 posts

Posted 04 July 2017 - 05:10 PM

Hello after several tests I solved the problem that was originated in the system of Windows permissions of IIS: The following index.php lines can be left by default if we have not renamed the folder ... which is my case.

$system_path = 'system';
$application_folder = 'application';

But in reality the problem is in permissions of the Windows folder that in the case of CODEIGNITER and IIS have to be for ALL_USERS and IUSR at least:

READ and LIST FOLDER CONTETS

Hello after several tests I solved the problem that was originated in the system of permissions of IIS: The following index.php lines can be left by default if we have not renamed the folder ... which is my case. But in reality the problem was casuado by permissions of the folder that in the case of CODEIGNITER and IIS have to be for ALL_USERS and IUSR at least READ and LIST FOLDER CONTETS



#3 Witureprobse

Witureprobse

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 02 October 2017 - 08:00 AM

Oh, i had the same problem... Thanks for helping me with it! I think now it's working.


Today you can pay for college homework if you struggle with studying or simply have no time on writing!


#4 MeganB

MeganB

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 08 May 2019 - 08:50 AM

The most common mistake of the installation of grocery CRUD Enteprise is when the assets_folder has a wrong path. make sure that you have configured your application/config/config.php file at $config[‘base_url’]. For example if your project URL looks like this:
http://localhost/my-...oject/index.php then your base_url should look like this:
$config['base_url'] = 'http://localhost/my-test-project/';

 

Grocery CRUD Enterprise is a framework agnostic library. That simply means that it doesn’t matter which framework you are using and it doesn’t matter the architecture you are using. This tutorial is taking some architecture decisions basically for you. If you need to have the full freedom of what structure to choose we are suggesting to see the full installation express write guide







Also tagged with one or more of these keywords: paths, configuration, iis, Windows

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users