eZ Community » Forums » Setup & design » Moving from Apache to IIS don't work
expandshrink

Moving from Apache to IIS don't work

Moving from Apache to IIS don't work

Wednesday 17 April 2013 10:03:09 am - 2 replies

Hi there,

I developed a website who is fully working under a Debian Apache2 server and now have to move it to a customer's IIS7 server.

I changed everything in the settings to connect the correct database.

But I encounter the following problems:

  • I have error in log file (see it below)
  • Some pages are working completly and others not (missing images for example). I can't understand the logic yet.

Here is the main error message (I suppose that everything comes from this):

[ Apr 17 2013 07:54:57 ] [86.76.11.50] eZDataType::loadAndRegisterType:
Datatype not found: '
ezobjectrelationlist', searched in these directories: kernel/classes/datatypes

I already reuploaded th ewhole kernel from the dev to the prod but nothing changed.

I absolutly don't know how IIS works. Is it possible that there is some problems with it (and maybe files permissions).

Thanks,

Damien

Wednesday 17 April 2013 11:06:26 am

IIs used to be far simpler in terms of policy mgmt than Apache - as long as the php interpreter can be executed by IIS, you should be ok.

1. can you find the php.ini file, and set in it a good path for php error log? then use it

2. the equivalent of eZ .htaccess for iis has been posted on the forums here. Did you use one?

Wednesday 17 April 2013 11:51:57 am

Quote from Gaetano Giunta :

IIs used to be far simpler in terms of policy mgmt than Apache - as long as the php interpreter can be executed by IIS, you should be ok.

1. can you find the php.ini file, and set in it a good path for php error log? then use it

2. the equivalent of eZ .htaccess for iis has been posted on the forums here. Did you use one?

I haven't the rights to control IIS (it's our customer server and we don't have access on it).

For the config, our customer imported the htaccess in IIS and we have the following web.config :

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="Règle 1 importée" stopProcessing="true">
                    <match url="^api/" ignoreCase="false" />
                    <action type="Rewrite" url="index_rest.php" />
                </rule>
                <rule name="Règle 2 importée" stopProcessing="true">
                    <match url="^index_rest\.php" ignoreCase="false" />
                    <action type="None" />
                </rule>
                <rule name="Règle 3 importée" stopProcessing="true">
                    <match url="^([^/]+/)?content/treemenu.*" ignoreCase="false" />
                    <action type="Rewrite" url="index_treemenu.php" />
                </rule>
                <rule name="Règle 4 importée" stopProcessing="true">
                    <match url="^var/([^/]+/)?storage/images(-versioned)?/.*" ignoreCase="false" />
                    <action type="None" />
                </rule>
                <rule name="Règle 5 importée" stopProcessing="true">
                    <match url="^var/([^/]+/)?cache/(texttoimage|public)/.*" ignoreCase="false" />
                    <action type="None" />
                </rule>
                <rule name="Règle 6 importée" stopProcessing="true">
                    <match url="^design/[^/]+/(stylesheets|images|javascript)/.*" ignoreCase="false" />
                    <action type="None" />
                </rule>
                <rule name="Règle 7 importée" stopProcessing="true">
                    <match url="^share/icons/.*" ignoreCase="false" />
                    <action type="None" />
                </rule>
                <rule name="Règle 8 importée" stopProcessing="true">
                    <match url="^extension/[^/]+/design/[^/]+/(stylesheets|flash|images|lib|videos|pdf|fonts|javascripts?)/.*" ignoreCase="false" />
                    <action type="None" />
                </rule>
                <rule name="Règle 9 importée" stopProcessing="true">
                    <match url="^packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.*" ignoreCase="false" />
                    <action type="None" />
                </rule>
                <rule name="Règle 10 importée" stopProcessing="true">
                    <match url="^packages/styles/.+/thumbnail/.*" ignoreCase="false" />
                    <action type="None" />
                </rule>
                <rule name="Règle 11 importée" stopProcessing="true">
                    <match url="^var/storage/packages/.*" ignoreCase="false" />
                    <action type="None" />
                </rule>
                <rule name="Règle 12 importée" stopProcessing="true">
                    <match url="^favicon\.ico" ignoreCase="false" />
                    <action type="None" />
                </rule>
                <rule name="Règle 13 importée" stopProcessing="true">
                    <match url="^design/standard/images/favicon\.ico" ignoreCase="false" />
                    <action type="None" />
                </rule>
                <rule name="Règle 14 importée" stopProcessing="true">
                    <match url="^extension/invest/design/invest/reflect2\.php" ignoreCase="false" />
                    <action type="None" />
                </rule>
                <rule name="Règle 15 importée" stopProcessing="true">
                    <match url="^robots\.txt" ignoreCase="false" />
                    <action type="None" />
                </rule>
                <rule name="Règle 16 importée" stopProcessing="true">
                    <match url="^w3c/p3p\.xml" ignoreCase="false" />
                    <action type="None" />
                </rule>
                <rule name="Règle 17 importée">
                    <match url=".*" ignoreCase="false" />
                    <action type="Rewrite" url="index.php" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>
expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from