SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Addict tlacaelelrl's Avatar
    Join Date
    Apr 2011
    Location
    Mexico city, Mexico
    Posts
    353
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    IIS5 default application

    I have never worked with IIS and have this site that is setup in a Windows Server 2003 the site is built in ASP and was asked to move all content from the old database to wordpress so I made the template imported all the content and it all works fine except it is now time to move to the new wordpress, I have been playing around with the settings of IIS and I have not been able to figure out how to server the wordpress folder as the default site, in the default.aspx file I have this

    Code ASP:
    <!--#include virtual="/artman2/publish/indexNew.asp" -->

    wordpress is located at /wordpress so I tried doing this

    Code ASP:
    <!--#include virtual="/wordpress/index.php" -->

    which did not work and throws me an error "Server Error in '/' Application."

    there is also a web.config file which, if deleted, I get another error

    Code XML:
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
     
    	<appSettings>
    		<add key="DBConnectionString" value="server=xxxx\SQLWEB;UID=xxxx;PWD=xxxx;DATABASE=xxxx" />
    		<add key="BMP_Optimized" value="0" />
    		<add key="Demo" value="False" />
    		<add key="bmp_License" value="42478" />
    	</appSettings>
     
      <system.web>
     
        <httpRuntime executionTimeout="36000" maxRequestLength="500000"/>
        <!--  DYNAMIC DEBUG COMPILATION
              Set compilation debug="true" to insert debugging symbols (.pdb information)
              into the compiled page. Because this creates a larger file that executes
              more slowly, you should set this value to true only when debugging and to
              false at all other times. For more information, refer to the documentation about
              debugging ASP.NET files.
        -->
        <compilation defaultLanguage="vb" debug="true" />
     
        <!--  CUSTOM ERROR MESSAGES
              Set customErrors mode="On" or "RemoteOnly" to enable custom error messages, "Off" to disable. 
              Add <error> tags for each of the errors you want to handle.
     
              "On" Always display custom (friendly) messages.
              "Off" Always display detailed ASP.NET error information.
              "RemoteOnly" Display custom (friendly) messages only to users not running 
               on the local Web server. This setting is recommended for security purposes, so 
               that you do not display application detail information to remote clients.
        -->
        <customErrors mode="Off" />
     
        <!--  AUTHENTICATION 
              This section sets the authentication policies of the application. Possible modes are "Windows", 
              "Forms", "Passport" and "None"
     
              "None" No authentication is performed. 
              "Windows" IIS performs authentication (Basic, Digest, or Integrated Windows) according to 
               its settings for the application. Anonymous access must be disabled in IIS. 
              "Forms" You provide a custom form (Web page) for users to enter their credentials, and then 
               you authenticate them in your application. A user credential token is stored in a cookie.
              "Passport" Authentication is performed via a centralized authentication service provided
               by Microsoft that offers a single logon and core profile services for member sites.
        -->
        <authentication mode="Windows" /> 
     
     
        <!--  AUTHORIZATION 
              This section sets the authorization policies of the application. You can allow or deny access
              to application resources by user or role. Wildcards: "*" mean everyone, "?" means anonymous 
              (unauthenticated) users.
        -->
        <authorization>
            <allow users="*" /> <!-- Allow all users -->
     
                <!--  <allow     users="[comma separated list of users]"
                                 roles="[comma separated list of roles]"/>
                      <deny      users="[comma separated list of users]"
                                 roles="[comma separated list of roles]"/>
                -->
        </authorization>
     
        <!--  APPLICATION-LEVEL TRACE LOGGING
              Application-level tracing enables trace log output for every page within an application. 
              Set trace enabled="true" to enable application trace logging.  If pageOutput="true", the
              trace information will be displayed at the bottom of each page.  Otherwise, you can view the 
              application trace log by browsing the "trace.axd" page from your web application
              root. 
        -->
        <trace enabled="true" requestLimit="10" pageOutput="true" traceMode="SortByTime" localOnly="true" />
     
     
        <!--  SESSION STATE SETTINGS
              By default ASP.NET uses cookies to identify which requests belong to a particular session. 
              If cookies are not available, a session can be tracked by adding a session identifier to the URL. 
              To disable cookies, set sessionState cookieless="true".
        -->
        <sessionState 
                mode="InProc"
                stateConnectionString="tcpip=127.0.0.1:42424"
                sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
                cookieless="false" 
                timeout="20" 
        />
     
        <!--  GLOBALIZATION
              This section sets the globalization settings of the application. 
        -->
        <globalization requestEncoding="utf-8" responseEncoding="utf-8" />
     
      </system.web>
     
    </configuration>

    Can someone guide me on what needs to be done for IIS5 to change the default document being server?
    Do you get bothered because I do the same thing every day?
    Do you question why I do it?
    Then find something that you actually like doing!!!

    Stop thinking on what I do.

  2. #2
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,606
    Mentioned
    56 Post(s)
    Tagged
    1 Thread(s)
    Server 2003 comes with IIS6. Are you sure about the version you are running? (open IIS and go to help > about)

    Second, wordpress does not run natively on IIS. Since wordpress is built on PHP, you'll either need a WAMP/LAMP stack (Linux/Windows, Apache, MySQL, PHP), or install FastCGI for integration into IIS.

    I really don't recommend running PHP web apps on IIS if you can avoid it. There are usually more headaches involved *because* they're not designed to run on IIS, and thus, you have to find ways around these issues.
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain

  3. #3
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,653
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    Mike,

    The cgi connector for PHP has a security problem whereby PHP directives can be added to the query string and will be handled by PHP. Therefore, SuPHP is what has eliminated that problem on a server. In other words, for security reasons, tlacaelelrl really has to move to a LAMP server to use WP.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  4. #4
    SitePoint Addict tlacaelelrl's Avatar
    Join Date
    Apr 2011
    Location
    Mexico city, Mexico
    Posts
    353
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by dklynn View Post
    Mike,

    The cgi connector for PHP has a security problem whereby PHP directives can be added to the query string and will be handled by PHP. Therefore, SuPHP is what has eliminated that problem on a server. In other words, for security reasons, tlacaelelrl really has to move to a LAMP server to use WP.

    Regards,

    DK
    I have a small problem with that, the owner of the site wants to keep running the old version so people who have old links can still access them and yes I am running IIS6
    Do you get bothered because I do the same thing every day?
    Do you question why I do it?
    Then find something that you actually like doing!!!

    Stop thinking on what I do.

  5. #5
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,653
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    The "PHP connector" merely changes how PHP is called by the server, not any of the code. Apache can redirect .asp links to .php files but, in the simplest form, the file names should be identical (except for the file extensions). Unfortunately, when the owner wants something which is not secure, you must advise of the problem and just do it - better for you as you can charge more! That's not the way I like to operate but that's what's required with an owner like yours.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  6. #6
    SitePoint Addict tlacaelelrl's Avatar
    Join Date
    Apr 2011
    Location
    Mexico city, Mexico
    Posts
    353
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by dklynn View Post
    The "PHP connector" merely changes how PHP is called by the server, not any of the code. Apache can redirect .asp links to .php files but, in the simplest form, the file names should be identical (except for the file extensions). Unfortunately, when the owner wants something which is not secure, you must advise of the problem and just do it - better for you as you can charge more! That's not the way I like to operate but that's what's required with an owner like yours.

    Regards,

    DK
    Thank you for all your help and well as you can see from my other post I moved to Apache and am using rewrites, everything appears to be working fine!!
    Do you get bothered because I do the same thing every day?
    Do you question why I do it?
    Then find something that you actually like doing!!!

    Stop thinking on what I do.

  7. #7
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Seriously...? IIS cannot run PHP or Wordpress?! You have to be kidding me. With PHP 5.3 the PHP team has giving Windows first-class support as they have with Linux/Unix, its runs just fine with IIS6/7. Even the folks at Wordpress have giving full Windows support. Also. IIS uses FastCGI with PHP, which is not vulnerable to the security vulnerability that Dklynn talked about (Which was also patched already). There is so little that is different with PHP whether you are using IIS or Apache that it doesn't matter to the various applications.

    I swear...has anyone actually tried to use IIS? Or do they just assume it won't work?
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  8. #8
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,633
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    ^^^This.

    Seriously people, learn your web servers. It ain't that hard. I've been running PHP on IIS since 2001 or so. Loads easier now, especially with IIS7 and the web PI where it is a one click install to get PHP w/ FastCGI stood up and running securely.

    If you need to do url rewriting in IIS6 and you've got a dedicated server, check out http://iirf.codeplex.com/ ; straight copy/paste support for your mod rewrite rules with very little fuss.

  9. #9
    SitePoint Addict tlacaelelrl's Avatar
    Join Date
    Apr 2011
    Location
    Mexico city, Mexico
    Posts
    353
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Well the server is running IIS6 and now I have PHP running on Apache and the asp applications running on IIS on a different port as those applications are being used internally only and just for about an hour and everything seems to be working fine, also the reason I moved to Apache is because I feel more comfortable working with it I am not saying it is better than x just don't have experience with IIS and was not going to start right now in a rush when the site needed to be up and running!
    Do you get bothered because I do the same thing every day?
    Do you question why I do it?
    Then find something that you actually like doing!!!

    Stop thinking on what I do.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •