Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> WEB Serwer IIS 7 problem z web.config, htaccess i PHP
c-oolt
post 21.01.2017, 16:22:42
Post #1





Grupa: Zarejestrowani
Postów: 7
Pomógł: 0
Dołączył: 13.09.2008

Ostrzeżenie: (0%)
-----


Witam,

Mój problem polega na błędach związanych z plikiem web.config w serwerze IIS 7.5 na Windows Server 2008 R2

Dokładnie sprawa wygląda tak, że:

Otrzymałem do uruchomienia stronę w PHP na serwerze IIS 7 . Wcześniej strona działała pod kontrolą serwera na Linux -ie.
---
Jak wiadomo Apache / Linux opiera się na pliku konfiguracyjnym .htaccess , a IIS 7 na web.config.
---

Po postawieniu IIS oraz uruchomieniu PHP NTS 5.6.29 , PHPMYADMIN, MySQL, ZendGuard (strona go wymaga) w PHP itp. nie mogę wywołać wyżej omawianej strony. Bez przerwy otrzymuje błąd 500.19 kod błędu: 0x8007000d - wg MS jest to błąd złej konfiguracji pliku web.config

Teraz moje pytanie:

Czy ktoś z obecnych forumowiczów byłby w stanie przepisać obecny plik .htaccess do pliku web.config.?

Próby importu pliku .htaccess do IIS 7 kończą się błędami, że nie rozpoznaje wszystkiego i nie może go importować...

Wygenerowanie pliku web.config poprzez znalezione strony www kończy się mimo wszystko błędem 500.19



Błędy z IIS 7 przy imporcie konfiguracji .htaccess :


Kod
<rewrite>

  <rules>

    <rule name="Imported Rule 1" stopProcessing="true">

      <match url="^.*$" />

      <conditions logicalGrouping="MatchAny">

        <!--The condition pattern is not supported: -s.-->

        <!--The condition pattern is not supported: -l.-->

        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" />

      </conditions>

      <action type="None" />

    </rule>

    <!--The rule cannot be converted into an equivalent IIS format because of unsupported flags: E-->

    <!--This rule was not converted because it contains references that are not supported: 'ENV::BASE'-->

  </rules>

</rewrite>
Go to the top of the page
+Quote Post
Pyton_000
post 21.01.2017, 17:32:54
Post #2





Grupa: Zarejestrowani
Postów: 8 068
Pomógł: 1414
Dołączył: 26.10.2005

Ostrzeżenie: (0%)
-----


A gdzie htaccess?
Go to the top of the page
+Quote Post
c-oolt
post 21.01.2017, 23:48:22
Post #3





Grupa: Zarejestrowani
Postów: 7
Pomógł: 0
Dołączył: 13.09.2008

Ostrzeżenie: (0%)
-----


No tak przepraszam.


Zawartość htaccess:

Kod
php_flag magic_quotes_gpc off
:Location /*.php
Use php54
:Location
RewriteEngine On
# The following rule tells Apache that if the requested filename
# exists, simply serve it.
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
# The following rewrites all other queries to index.php. The
# condition ensures that if you are using Apache aliases to do
# mass virtual hosting, the base path will be prepended to
# allow proper resolution of the index.php file; it will work
# in non-aliased environments as well, providing a safe, one-size
# fits all solution.
RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::\2$
RewriteRule ^(.*) - [E=BASE:%1]
RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L]

Go to the top of the page
+Quote Post
Pyton_000
post 22.01.2017, 09:15:27
Post #4





Grupa: Zarejestrowani
Postów: 8 068
Pomógł: 1414
Dołączył: 26.10.2005

Ostrzeżenie: (0%)
-----


https://framework.zend.com/manual/2.4/en/re...mation-services Tadam...
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 19.03.2024 - 08:39