Menu

    Install Squirrelmail Windows 7

      среда 22 апреля
          12
    -->

    SquirrelMail is a Web-based e-mail program. With SquirrelMail, you can read and send e-mail and attachments from within a Web browser, such as Firefox or Internet Explorer. This manual contains an introduction to SquirrelMail. Replaced By RoundCube: As of 2019, PCC will no longer install or support the SquirrelMail web-based e-mail solution. Install and Configure SquirrelMail in CentOS 7 Step 1: First of all disable SELINUX using below command. Step 2: Install and Configure Postfix. Step 3: Install and Configure Dovecot. Step 4: Install and Configure Squirrelmail. Step 5: Create User and Access Webmail.

    by Keith Newman and Robert McMurray

    In this step of building a PHP website, you install IIS and FastCGI, download and install PHP and the WinCache extension, and upload your PHP application.

    When you are done, make sure that IIS and the PHP are installed, and your PHP application has been added to your website. Then go on to Step 2: Configure PHP Settings.

    1.1. Install IIS

    You can use the Web Platform Installer (Web PI) to install IIS, and applications that run on IIS. Web PI installs the latest versions of available Web Platform offerings with just a few simple clicks. Using Web PI, you can download and install any new tools or updates, including PHP. To learn more about the Web PI, see Learn more and install the Web PI.

    If you do not use Web PI to install IIS, you can install IIS manually. To install IIS manually, use the following steps:

    To install IIS on Windows Server 2012

    1. On the Start page, click the Server Manager tile, and then click OK.

    2. In Server Manager, select Dashboard, and click Add roles and features.

    3. In the Add Roles and Features Wizard, on the Before You Begin page, click Next.

    4. On the Select Installation Type page, select Role-based or Feature-based Installation and click Next

    5. On the Select Destination Server page, select Select a server from the server pool, select your server, and click Next.

    6. On the Select Server Roles page, select Web Server (IIS), and then click Next.

    7. On the Select Features page, note the preselected features that are installed by default, and then select CGI. Hitman 1 pc game download. This selection also installs FastCGI, which is recommended for PHP applications.

    8. Click Next.

    9. On the Web Server Role (IIS) page, click Next.

    10. On the Select Role Services page, note the preselected role services that are installed by default, and then click Next.

      Note

      You only have to install the IIS 8 default role services for a static-content web server.

    11. On the Confirm Installation Selections page, confirm your selections, and then click Install.

    12. On the Installation Progress page, confirm that your installation of the Web Server (IIS) role and required role services completed successfully, and then click Close.

    13. To verify that IIS installed successfully, type the following into a web browser:

      http://localhost

      You should see the default IIS Welcome page.

    To install IIS on Windows 8

    1. On the Start page, type Control Panel, and then click the Control Panel icon in the search results.

    2. In Control Panel, click Programs, and then click Turn Windows features on or off.

    3. In the Windows Features dialog box, click Internet Information Services, note the preselected features that are installed by default, and then select CGI. This selection also installs FastCGI, which is recommended for PHP applications.

    4. Click OK.

    5. To verify that IIS installed successfully, type the following into a web browser:

      http://localhost

      You see the default IIS Welcome page.

    1.2. Install PHP by using Web PI

    The preferred method to install PHP on a Windows or Windows Server computer is to use Web Platform Installer (Web PI).

    To install PHP by using Web PI

    1. Open a browser to the following website: Microsoft Web Platform Installer 3.0.
    2. Click Download It Now, and then click Run.
    3. At the top of the Web Platform Installer window, click Products.
    4. Click Frameworks, and then select the current version of PHP.
    5. Click Install. The Web Platform Installation page displays the version of PHP and its dependencies that will be installed.
    6. Click I Accept. Web PI installs the PHP packages.
    7. Click Finish.

    1.3. Download and Install PHP Manually

    If you decide to download PHP and install it manually, the procedures in this section guide you the following tasks:

    • Download PHP and the WinCache extension.
    • Install PHP and WinCache.
    • Add the PHP installation folder to the Path environment variable.
    • Set up a handler mapping for PHP.
    • Add default document entries for PHP.
    • Test your PHP installation.

    To keep this procedure simple, install the WinCache extension but do not configure it. You will configure and test WinCache in Step 2: Configure PHP Settings.

    To download and install PHP and WinCache

    1. Open your browser to Windows for PHP Download Page and download the PHP non-thread-safe zip package.
    2. Download the WinCache extension from the List of Windows Extensions for PHP.
    3. Extract all files in the PHP .zip package to a folder of your choice, for example C:PHP.
    4. Extract the WinCache .zip package to the PHP extensions folder (ext), for example C:PHPext. The WinCache .zip package contains one file (Php_wincache.dll).
    5. Open Control Panel, click System and Security, click System, and then click Advanced system settings.
    6. In the System Properties window, select the Advanced tab, and then click Environment Variables.
    7. Under System variables, select Path, and then click Edit.
    8. Add the path to your PHP installation folder to the end of the Variable value, for example ;C:PHP. Click OK.
    9. Open IIS Manager, select the hostname of your computer in the Connections panel, and then double-click Handler Mappings.
    10. In the Action panel, click Add Module Mapping.
    11. In Request path, type *.php.
    12. From the Module menu, select FastCgiModule.
    13. In the Executable box, type the full path to Php-cgi.exe, for example C:PHPPhp-cgi.exe.
    14. In Name, type a name for the module mapping, for example FastCGI.
    15. Click OK.
    16. Select the hostname of your computer in the Connections panel, and double-click Default Document.
    17. In the Action panel, click Add. Type Index.php in the Name box, and then click OK.
    18. Click Add again. Type Default.php in the Name box, and then click OK.

    To test your PHP installation

    1. Open a text editor, for example Notepad, as Administrator.

    2. In a new file, type the following text: <?php phpinfo(); ?>

    3. Save the file as C:inetpubwwwrootPhpinfo.php.

    4. Open a browser and enter the following URL:

      http://localhost/phpinfo.php

      A nicely formatted webpage is displayed showing the current PHP settings.

    1.4. Add Your PHP Application

    Once you have IIS and PHP installed, you can add a PHP application to your web server. This section describes how to set up your PHP application on an IIS web server with PHP installed. It does not explain how to develop a PHP application.

    To add a PHP web application

    1. Open IIS Manager.

      • For Windows Server 2012, on the Start page click the Server Manager tile, and then click OK. On the Server Manager Dashboard, click the Tools menu, and then click Internet Information Services (IIS) Manager.
      • For Windows 8, on the Start page type Control Panel, and then click the Control Panel icon in the search results. On the Control Panel screen, click System and Security, click Administrative Tools, and then click Internet Information Services (IIS) Manager.
    2. In the Connections pane, right-click the Sites node in the tree, and then click Add Website.

    3. In the Add Website dialog box, type a friendly name for your website in the Site name box.

    4. If you want to select a different application pool than the one listed in the Application Pool box, click Select. In the Select Application Pool dialog box, select an application pool from the Application Pool list and then click OK.

    5. In the Physical path box, type the physical path of the website's folder, or click the browse button (..) to navigate the file system to find the folder.

    6. If the physical path that you entered in step 5 is to a remote share, click Connect as to specify credentials that have permission to access the path. If you do not use specific credentials, select the Application user (pass-through authentication) option in the Connect As dialog box.

    7. Select the protocol for the website from the Type list.

    8. The default value in the IP address box is All Unassigned. If you must specify a static IP address for the website, type the IP address in the IP address box.

    9. Type a port number in the Port text box.

    10. Optionally, type a host header name for the website in the Host Header box.

    11. If you do not have to make any changes to the site, and you want the website to be immediately available, select the Start Web site immediately check box.

    12. Click OK.

    See also

    Updated by Alex FornutoWritten by Alex Fornuto

    Try this guide out by signing up for a Linode account with a $20 credit.
    Contribute on GitHub

    Report an Issue View File Edit File

    Deprecated
    This guide has been deprecated and is no longer being maintained.

    SquirrelMail is a webmail package written in PHP. It supports both SMTP and IMAP protocols. SquirrelMail features cross-platform compatibility since all of its pages render in HTML 4.0. SquirrelMail requires a web server with PHP to run properly. For this guide we’ll be using Apache 2. If you don’t already have Apache and PHP installed, you can check our LAMP Server on Ubuntu 12.04 guide.

    Note
    This guide is written for a non-root user. Commands that require elevated privileges are prefixed with sudo. If you’re not familiar with the sudo command, you can check our Users and Privileges guide.

    Installation

    We’ll begin by updating the system and installing SquirrelMail from the Ubuntu repositories.

    Squirrelmail centos 7
    1. First, make sure your system is up to date by running the following commands:

    2. SquirrelMail is available in the Ubuntu repositories, so we can install it with:

    Configuring the Virtual Host

    Since SquirrelMail is accessed through a web server (Apache in this example), we need a virtual host configuration file to let the web server know where to display files from. In this section we will take the default configuration file from SquirrelMail, move it to the Apache directory, and configure it for use on our system.

    1. SquirrelMail provides a default configuration file for Apache in /etc/squirrelmail/apache.conf. Copy this configuration file into your sites-available folder with the command:

    2. Edit the configuration file to uncomment the <VirtualHost 1.2.3.4:80> block by removing the pound symbol (#), as shown below. Edit the IP and ServerName to match your Linode and/or domain settings:

      /etc/apache2/sites-available/squirrelmail
      Note
      If Apache is serving other virtual hosts you may need to adjust them and/or this file to prevent any conflicts. If you’re running Apache solely for SquirrelMail, you may still want to remove the default virtual host from sites-enabled.
    3. Add a symbolic link to this file in the sites-enabled folder:

    4. Reload Apache with the following command:

    You should now be able to see SquirrelMail’s default login page in your browser after navigating to your Linode’s IP address:

    Configuring SquirrelMail

    Before using SquirrelMail for the first time, it needs to be configured to access your mail server. SquirrelMail provides a tool called squirrelmail-configure, which provides an interactive interface which edits the /etc/squirrelmail/config.php file for you with the input you provide.

    1. Launch the squirrelmail-configure application with the command:

      This will bring up the menu shown below:

    2. There are many options to adjust here; too many for the scope of this guide. The only settings required to make SquirrelMail work are the Server Settings. Press 2 to bring up the Server Settings submenu:

    3. If your mail server is on the same Linode as your SquirrelMail installation, you may not need to make any adjustments to the default settings. Otherwise, adjust the Domain, IMAP, and SMTP settings to match the mail server you want to connect to. You can find additional configuration tips for this section from SquirrelMail’s official documentation here.

    4. When done, press S to save your changes before exiting the menu by pressing Q to quit.

    Signing In to the Web Interface

    1. At this point you should be able to log in to the SquirrelMail Login page using your email credentials. Navigate in your web browser to the Linode’s IP address, or domain name depending on how you’ve configured the virtual host:

    2. The interface layout follows standard email convention; all common functions should be easily accessible:

    3. Once you’re finished, you can sign out using the link in the upper-right corner. Always remember to sign out if you’re using a public computer.

    More Information

    You may wish to consult the following resources for additional information on this topic. While these are provided in the hope that they will be useful, please note that we cannot vouch for the accuracy or timeliness of externally hosted materials.

    Join our Community

    Please enable JavaScript to view the comments powered by Disqus.comments powered by Disqus

    This guide is published under a CC BY-ND 4.0 license.