Web Server Setup: 04 - JSP Server ( Tomcat )

Apache jsp server ( Tomcat )

Note: Had to change port# from 8080 to 8081 with VisualSVN running

\xampp\tomcat\conf\server.xml:

<Connector port="8081" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />

   

 

Environment Variables ( Source: RUNNING.txt)

3) Configure Environment Variables

 

Tomcat is a Java application and does not use environment variables. The

variables are used by the Tomcat startup scripts. The scripts use the variables

to prepare the command that starts Tomcat.

 

(3.1) Set CATALINA_HOME (required) and CATALINA_BASE (optional)

 

The CATALINA_HOME and CATALINA_BASE environment variables are used to

Web Server Setup: 03 - SMTP Server ( Mercury )

Setup SMTP Server (Mercury)

 

  • Assign DNS Servers for NIC
  • 68.94.156.1
  • 68.94.157.1

 

  • Start Mercury
  • Windows will prompt for Firewall Blocking

Configure Protocols

  • Disable all but two protocols
  • Mercury SMTP Server
  • Mercury SMTP Relay Client

Web Server Setup: 02 - XAMPP Setup

Setting up the Web Server ( XAMPP )

Installing XAMPP and Configuring Apache

  • Copy XAMPP directory in its entirety
  • Edit httpd.conf
  • Set Apache Server path

  • Listen 81

  • Set ServerName localhost:81

Web Server Setup: 01 - Intro

Webserver Setup

Well, after going through the laborious act of setting up my development environments and webservers recently, I decided to go ahead and take the time to get the bulk of what is required to get everything going with minimal issues. The simplest of issuesMy setup approach was to get a simple web server going, throw all the normal offerings on top of it - including version control and bug tracking tools, and configure Eclipse, JRE, JDK and anything that is portable in nature to end up with a swiss army knife for development, organization and testing.

 

  • XAMPP ( Apache, MySQL, PHP, Perl )
  • Mercury SMTP
  • Tomcat JSP Server
  • Hudson/Jenkins
  • Apache Maven
  • Artifactory
  • Apache ANT
  • Apache AXIS2
  • BugZilla
  • VisualSVN
  • JAVA ( Eclipse, JDK, JRE, WAR/JAR Library )
  • Other?

Drupal 8: Zircon Theme Fix for 'Skip To Main Content'


The Zircon theme has an odd link in the upper left corner when visiting as an 'Unauthenticated User'.

Skip to main content

 

Update The following theme file:

<root_dir>\themes\zircon\templates\html.html.twig

 

Comment or remove the link anchor tag

<a href="#main-content" class="visually-hidden focusable"> {{ 'Skip to main content'|t }} </a>

<!--a href="#main-content" class="visually-hidden focusable"> {{ 'Skip to main content'|t }} </a-->

 

Tags

PHP: Print File Script

<?php
    // connect to handle a file
    $file_handler = fopen("http://www.mysite.com/sitenotes.txt", "r");
    /* to open a local file use this instead
    $file_handler = fopen("data.txt", "r");
    */
    // read the contents
    $contents = fread($file_handler, filesize($file));
    // close the file
    fclose($file_handler);
    // print the contents on your page
    echo $contents;
?>
Tags

OSB Installation Win7 ( Open Source Broadcaster )

Open Source Broadcaster is an excellent tool for creating/streaming videos from a variety of sources. Installation has several dependencies so this quick summary enumerates what else is needed to deploy OSB. [MARKUP IN PROGRESS]

SQL REPLACE Statement

 

Reorganizing a website with a DB backend can be an utter nightmare, particularly when image folders are concerned. The thought of manually updating hundreds, or thousands, of posts is intimidating on a good day - and impossible on a bad day. Enter the SQL REPLACE statement: With a few solid search strings, one can quickly glue things back together. The effectiveness of this technique wanes with the number of adjustments made and how far down a directory tree the adjustments were made. If 100 folder moves were made at low levels, the effort with this increases. In contrast, if 1000's of objects were moved because a high level folder was moved to a different location, it might be that only 3 iterations of the REPACE will be needed. In my case there were several adjustments made, so the task was a bit laborious - HOWEVER using this replace statement saved hours of hunting down and updating tags. So here we go...

Tags
Subscribe to