Giter Site home page Giter Site logo

Comments (4)

sslopek avatar sslopek commented on June 2, 2024

Currently, the application is only set up to run on apache web servers. If you create a file called 'web.config' in the main folder of the website with the following code (or just add the <rewrite>...<rewrite> section to the existing web.config), it should allow IIS to work the same. I just used this for an install on IIS, and I'll add it to the project after I test it a bit more.

web.config

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="Rewrite to index.php">
                    <match url="index.php|robots.txt|images|test.php" />
                    <action type="None" />
                </rule>
                <rule name="Rewrite CI Index">
                    <match url=".*" />
                    <conditions>
                        <add input="{REQUEST_FILENAME}" pattern="^.+\.(css|js|jpg|jpeg|png|gif|ico|htm|html|eot|woff|ttf|svg|txt)$" negate="true" />
                    </conditions>
                    <action type="Rewrite" url="index.php/{R:0}" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration> 

http://stackoverflow.com/questions/5408111/codeigniter-2-on-iis-with-web-config-file

from phpback.

danieljavas avatar danieljavas commented on June 2, 2024

Thanks, is Working now, but I have other issue, I don't have any entries on the Database the users table is empty, i cannot login on the admin or the regular users page.

from phpback.

sslopek avatar sslopek commented on June 2, 2024

If you have a newer version of MySQL, this is probably the same issue as #48. For now, you can disable strict mode on the database:

"my.ini" file inside MySQL installation directory

# Set the SQL mode to strict
sql-mode="STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION"

Replace with:

sql-mode="NO_ENGINE_SUBSTITUTION"

After you restart the database with STRICT_TRANS_TABLES disabled, I recommend deleting the phpback database and the website directory, then start a clean install.

from phpback.

danieljavas avatar danieljavas commented on June 2, 2024

Perfect!, Its working, Thanks a lot!

from phpback.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.