Search posterous

Search all posts and users. Type a name, type a favorite song title, whatever! See what comes up.
  

More posterous blogs











More recommended blogs »

Here are posterous posts filed under apache...

Daniele says...

Getting it working

Here's the basics of password protecting a directory on your server.

You'll need to create a password file. This file should be placed somewhere not accessible from the web. This is so that folks cannot download the password file. For example, if your documents are served out of /usr/local/apache/htdocs you might want to put the password file(s) in /usr/local/apache/passwd.

To create the file, use the htpasswd utility that came with Apache. This will be located in the bin directory of wherever you installed Apache. To create the file, type:

htpasswd -c /usr/local/apache/passwd/passwords rbowen

htpasswd will ask you for the password, and then ask you to type it again to confirm it:

# htpasswd -c /usr/local/apache/passwd/passwords rbowen
New password: mypassword
Re-type new password: mypassword
Adding password for user rbowen

If htpasswd is not in your path, of course you'll have to type the full path to the file to get it to run. On my server, it's located at /usr/local/apache/bin/htpasswd

Next, you'll need to configure the server to request a password and tell the server which users are allowed access. You can do this either by editing the httpd.conf file or using an .htaccess file. For example, if you wish to protect the directory /usr/local/apache/htdocs/secret, you can use the following directives, either placed in the file /usr/local/apache/htdocs/secret/.htaccess, or placed in httpd.conf inside a <Directory /usr/local/apache/apache/htdocs/secret> section.

AuthType Basic
AuthName "Restricted Files"
AuthUserFile /usr/local/apache/passwd/passwords
Require user rbowen

Let's examine each of those directives individually. The AuthType directive selects that method that is used to authenticate the user. The most common method is Basic, and this is the method implemented by mod_auth. It is important to be aware, however, that Basic authentication sends the password from the client to the browser unencrypted. This method should therefore not be used for highly sensitive data. Apache supports one other authentication method: AuthType Digest. This method is implemented by mod_auth_digest and is much more secure. Only the most recent versions of clients are known to support Digest authentication.

The AuthName directive sets the Realm to be used in the authentication. The realm serves two major functions. First, the client often presents this information to the user as part of the password dialog box. Second, it is used by the client to determine what password to send for a given authenticated area.

So, for example, once a client has authenticated in the "Restricted Files" area, it will automatically retry the same password for any area on the same server that is marked with the "Restricted Files" Realm. Therefore, you can prevent a user from being prompted more than once for a password by letting multiple restricted areas share the same realm. Of course, for security reasons, the client will always need to ask again for the password whenever the hostname of the server changes.

The AuthUserFile directive sets the path to the password file that we just created with htpasswd. If you have a large number of users, it can be quite slow to search through a plain text file to authenticate the user on each request. Apache also has the ability to store user information in fast database files. The mod_auth_dbm module provides the AuthDBMUserFile directive. These files can be created and manipulated with the dbmmanage program. Many other types of authentication options are available from third party modules in the Apache Modules Database.

Finally, the Require directive provides the authorization part of the process by setting the user that is allowed to access this region of the server. In the next section, we discuss various ways to use the Require directive.

Filed under: apache

tneupaney says...

I just installed the new karmic koala, in my laptop. After I configured everything i installed apache2. While i started the apache2 service daemon I bumped into the following error:

apache2: Could not determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

While this error is not new to people who have configured apache previously, but the remedy was wonderfully easy. So i wanted to share this with you folks. To do so, you need to edit the httpd.conf file located in /etc/apache2 folder. You need to have sudo access (Obviously). So choose your favourite editor and write the following lines in it.

ServerName YOURSERVERNAME

This majical line will solve your problem. Try restarting the service by the following command and watch the error fly away.

sudo /etc/init.d/apache2 restart

Filed under: Apache

Skis says...

Men's Beginner Skis

When an individual is learning a new sport, having equipment that is supportive to novice is key to developing good technique. Modern skis help to follow and provide support for the novice as they progress in skill level. Skis such as these provide an ease of motion that is excellent...


trails-> handling-> skier-> skiing-> skis-> advance


  • boarders Mt Southington, Plantsville, CT Mt Southington is located in - Plantsville, CT Phone - (860) 628 0954 / (800) 982 6828 Website- http://www.mountsouthington.com/ About the Resort - The Mount Southington resort, which is open all day and night, provides trails for skiers and snowboarders of all age levels and experience levels as well. There...
  • skis Men's Beginner Skis When an individual is learning a new sport, having equipment that is supportive to novice is key to developing good technique. Modern skis help to follow and provide support for the novice as they progress in skill level. Skis such as these provide an ease of motion that is excellent...
  • spooner Spooner Lake Cross Country Ski Area, Carson City, NV Spooner Lake Cross Country Ski Area is located in: Carson City, NV Phone: (775) 749-5349 Website: http://www.spoonerlake.com/ About the Resort: This is an incredible resort that spans more than 9000 acres. Whether you are brand new to cross country skiing or an old pro, this is probably the best place...
  • Atomic Metron II B5 Skis Atomic Metron II B5 skis may not be the cheapest skis on the market, but they certainly are among the best. With a retail price of around $1000, they will set you back, but in return, you’ll be getting a high quality ski and one that will offer you more...
  • The Top Five Ski Resorts in the US Aspen is a popular Rocky Mountain town that is located in Colorado but it is also home to a spectacular ski resort. This town of Aspen offers a touch of European flair and this holds true with their world class ski resort, The Aspen Mountain. This particular resort holds its...
  • What Type of Skier are You? If you are into skiing then you should know what type of skier that you are. This is an important question because ski resorts label their slopes accordingly. Are you a beginner, an advanced skier, an expert, or the extreme skier? You might not think that it really matters but...
  • Top Skis for Cross Country Skiing - Product Reviews of CC Skis There are a lot of different selections that you can make when choosing cross country skis. Here are some of the top skis for cross country skiing. - Alpina Tracker Cross Country Ski - The Alpina Tracker Cross Country Ski is a cross country ski that features aggressive side-cut Nordic...
  • durango Durango Mountain Resort, Durango, CO Durango Mountain Resort is located in: Durango, CO Phone: (970) 247-9000 Website: http://www.durangomountainresort.com/ About the Resort: This is a historic area that is home to some of the best skiing terrain in the world. Forget about gentle slopes - this resort is home to trademark benching, rolling and exhilarating terrain....
  • bearvalley Bear Valley Mountain Resort, Bear Valley, CA Bear Valley Mountain Resort is located in: Bear Valley, CA Phone: (209) 753-2301 Website: http://www.bearvalley.com/winter/index.asp About the Resort: This is a great, all inclusive ski resort located in the heart of the Sierra's. They have a fantastic reputation as being a great place to bring the family, even if not...
  • skiing Eco-Friendly Ski Tips Recently, a new controversy has erupted as to how “green” the sport of skiing really is. A group in France called skiers the “cancer of the slopes” and many have stated that the although skiers love the great outdoors, they may be the ones responsible for its demise. While this...
Query search by BlogSearchQuery.com
5 Online Store Search Results
  1. Skis Downhill Skiing Winter Sports

  2. Skis Cross Country Skiing Winter Sports

"trails" "handling" "skier" "skiing" "skis" "advance"


  • Start A Small On-Line Business Starting an online business all of your own requires planning, strong ideas, some research, facts, money and an urge to succeed and take your business to levels you have never before imagined. Some of the aspects you will read about may appear to be easiest to accomplish than other aspects....
  • Trend Following in the Forex Markets Trend Following in the Forex Markets I want to speak this morning with the idea of trend following in the forex markets and how to use forex signals. There is no magic to trend following in the forex markets. It is not easy however. The magic is using one of...
  • Unwanted Species Invading Invasive species can be defined as any species of plant or animal that inhabits an area in which it is non-native. An invasive species usually is considered to be one that adversely affects the habitat they invade on many levels. One of the currently alarming examples of invasive species...
  • Best posts on Squirrelman's Nutzy World from Nov 2009 Too many posts to handle? If you missed out on a great post from last month, here's a quick digest of the top posts that you may want to check out:Best posts on Squirrelman's Nutzy World from Nov 2009Posted on Sunday, November 1st, 2009 in Uncategorized - Views: ()Too many...
  • Best posts on Squirrelman's Nutzy World from Nov 2009 Too many posts to handle? If you missed out on a great post from last month, here's a quick digest of the top posts that you may want to check out:Best posts on Squirrelman's Nutzy World from Nov 2009Posted on Sunday, November 1st, 2009 in Uncategorized - Views: ()Too many...
  • Best posts on Squirrelman's Nutzy World from Nov 2009 Too many posts to handle? If you missed out on a great post from last month, here's a quick digest of the top posts that you may want to check out:Life Insurance is Not an InvestmentPosted on Sunday, November 1st, 2009 in Finance - Views: (93)from ezinsurance.com.au:There is no doubt...
  • Best posts on Squirrelman's Nutzy World from Nov 2009 Too many posts to handle? If you missed out on a great post from last month, here's a quick digest of the top posts that you may want to check out:What's Wrong With These Pictures?Posted on Sunday, November 1st, 2009 in Irreverant Observations - Views: (30)I was walking by a...
  • Best posts on Squirrelman's Nutzy World from Nov 2009 Too many posts to handle? If you missed out on a great post from last month, here's a quick digest of the top posts that you may want to check out:What's Wrong With These Pictures?Posted on Sunday, November 1st, 2009 in Irreverant Observations - Views: (30)I was walking by a...
  • Best posts on Squirrelman's Nutzy World from Nov 2009 Too many posts to handle? If you missed out on a great post from last month, here's a quick digest of the top posts that you may want to check out:Best posts on Squirrelman's Nutzy World from Nov 2009Posted on Sunday, November 1st, 2009 in Uncategorized - Views: ()Too many...
  • Best posts on Squirrelman's Nutzy World from Nov 2009 Too many posts to handle? If you missed out on a great post from last month, here's a quick digest of the top posts that you may want to check out:Best posts on Squirrelman's Nutzy World from Nov 2009Posted on Sunday, November 1st, 2009 in Uncategorized - Views: ()Too many...
Web blog search by BlogSearchQuery.com
5 Online Store Search Results
  1. Skis Cross Country Skiing Winter Sports

  2. Skis Downhill Skiing Winter Sports


    • Computer Repair Contracts that Keep You Profitable If you are trying to set up profitable computer repair contracts for your small business clients, you might have some questions about their real benefits, or at least how to clearly explain these benefits to non-technical small business decision makers.Many small business technology providers choose not to use on-going agreements...
    • biking More Cycling Glossary Madison - Named after Madison Square Garden, which was the home of the original six day races. Madisons are team races that can last from six hours long all the way to six days long, with a team consisting of two to three riders. Each team will only have one...
    • Lake Siskiyou, Mount Shasta, CA Lake Siskiyou is located near: Mount Shasta, CA Phone: 1-888-926-2618 About the Lake: This gorgeous lake was formed by damming the upper portion of the Sacramento River. You can see Mount Shasta from anywhere on the lake and it is truly one of the most picturesque lakes we have ever...
    • How You Can Call To And From Virtually Anywhere For Free One way of calling for free is through achievement of mastery in mental telepathy and clairaudience :-)But also, much more easily, you can accomplish that feat these days through the means of widely available technology. And while long distance physical travel is usually accompanied by monetary spending and sometimes...
    • Book Review -- The Hero Of Ages The last book in Brandon Sanderson's breakout Mistborn trilogy is The Hero of Ages.  It's arguably the best of the three books, yet my wife, who burned through the first two books, has yet to complete this one.  She's tried it a handful of times, but just hasn't gotten rolling....
    • Best posts on Squirrelman's Nutzy World from Nov 2009 Too many posts to handle? If you missed out on a great post from last month, here's a quick digest of the top posts that you may want to check out:Best posts on Squirrelman's Nutzy World from Nov 2009Posted on Sunday, November 1st, 2009 in Uncategorized - Views: ()Too many...
    • T.I. Ft. Justin Timberlake - Dead And Gone (Official Music Video) [HD] Get this song sent directly to your cell phone exclusively from deadandgone-tone.com TI Ft. Justin Timberlake - Dead And Gone (Official Music Video + Download Link & Lyrics) [HD] Paper Trail Download Link: hip-hop-downloadz.com Use RapFan159 as your referrer!! Lyrics: Chorus: Ooooooo I've been travelin on this road to...
    • Could Low Wii Supply Drive Up Demand for Its Competitors? The Wii is, of course, the hot-ticket item this Christmas, just like last year. And once again, there aren't enough to go around. Micah and I frequently watch G4, the "geek" network. During one of their news segments, G4 brought in some people to discuss the Wii supply and...
    • Polycom Redefines Desktop Communications with Launch of VVX 1500 Business Media Phone The Polycom VVX 1500 is the first of its kind business media phone combining advanced IP telephony with business-class video and the ability to integrate with key business applications PLEASANTON, Calif. - Mar 09, 2009 : Polycom, Inc. [Nasdaq: PLCM], the global leader in telepresence, video, and voice communications solutions,...
    • white-coats The Friday gathering - White coat syndrome? Last week ago I went to the hand surgeon for a follow up on my broken finger.  As part of the visit they check my weight, temperature and blood pressure.  My blood pressure was little high, 142 over 105.  The lower number was their concern.  For those that may...
    Search on blogs by BlogSearchQuery.com

    Blog Search Query Tags:

    skis elan Snow k2 Skis level paths apache new sport elan family confidence flow 4 stable manner skier

Filed under: apache

Skis says...

Men's Beginner Skis

When an individual is learning a new sport, having equipment that is supportive to novice is key to developing good technique. Modern skis help to follow and provide support for the novice as they progress in skill level. Skis such as these provide an ease of motion that is excellent...


trails-> handling-> skier-> skiing-> skis-> advance


  • boarders Mt Southington, Plantsville, CT Mt Southington is located in - Plantsville, CT Phone - (860) 628 0954 / (800) 982 6828 Website- http://www.mountsouthington.com/ About the Resort - The Mount Southington resort, which is open all day and night, provides trails for skiers and snowboarders of all age levels and experience levels as well. There...
  • skis Men's Beginner Skis When an individual is learning a new sport, having equipment that is supportive to novice is key to developing good technique. Modern skis help to follow and provide support for the novice as they progress in skill level. Skis such as these provide an ease of motion that is excellent...
  • spooner Spooner Lake Cross Country Ski Area, Carson City, NV Spooner Lake Cross Country Ski Area is located in: Carson City, NV Phone: (775) 749-5349 Website: http://www.spoonerlake.com/ About the Resort: This is an incredible resort that spans more than 9000 acres. Whether you are brand new to cross country skiing or an old pro, this is probably the best place...
  • Atomic Metron II B5 Skis Atomic Metron II B5 skis may not be the cheapest skis on the market, but they certainly are among the best. With a retail price of around $1000, they will set you back, but in return, you’ll be getting a high quality ski and one that will offer you more...
  • The Top Five Ski Resorts in the US Aspen is a popular Rocky Mountain town that is located in Colorado but it is also home to a spectacular ski resort. This town of Aspen offers a touch of European flair and this holds true with their world class ski resort, The Aspen Mountain. This particular resort holds its...
  • What Type of Skier are You? If you are into skiing then you should know what type of skier that you are. This is an important question because ski resorts label their slopes accordingly. Are you a beginner, an advanced skier, an expert, or the extreme skier? You might not think that it really matters but...
  • Top Skis for Cross Country Skiing - Product Reviews of CC Skis There are a lot of different selections that you can make when choosing cross country skis. Here are some of the top skis for cross country skiing. - Alpina Tracker Cross Country Ski - The Alpina Tracker Cross Country Ski is a cross country ski that features aggressive side-cut Nordic...
  • durango Durango Mountain Resort, Durango, CO Durango Mountain Resort is located in: Durango, CO Phone: (970) 247-9000 Website: http://www.durangomountainresort.com/ About the Resort: This is a historic area that is home to some of the best skiing terrain in the world. Forget about gentle slopes - this resort is home to trademark benching, rolling and exhilarating terrain....
  • bearvalley Bear Valley Mountain Resort, Bear Valley, CA Bear Valley Mountain Resort is located in: Bear Valley, CA Phone: (209) 753-2301 Website: http://www.bearvalley.com/winter/index.asp About the Resort: This is a great, all inclusive ski resort located in the heart of the Sierra's. They have a fantastic reputation as being a great place to bring the family, even if not...
  • skiing Eco-Friendly Ski Tips Recently, a new controversy has erupted as to how “green” the sport of skiing really is. A group in France called skiers the “cancer of the slopes” and many have stated that the although skiers love the great outdoors, they may be the ones responsible for its demise. While this...
Query search by BlogSearchQuery.com
5 Online Store Search Results
  1. Skis Downhill Skiing Winter Sports

  2. Skis Cross Country Skiing Winter Sports

"trails" "handling" "skier" "skiing" "skis" "advance"


  • Start A Small On-Line Business Starting an online business all of your own requires planning, strong ideas, some research, facts, money and an urge to succeed and take your business to levels you have never before imagined. Some of the aspects you will read about may appear to be easiest to accomplish than other aspects....
  • Trend Following in the Forex Markets Trend Following in the Forex Markets I want to speak this morning with the idea of trend following in the forex markets and how to use forex signals. There is no magic to trend following in the forex markets. It is not easy however. The magic is using one of...
  • Unwanted Species Invading Invasive species can be defined as any species of plant or animal that inhabits an area in which it is non-native. An invasive species usually is considered to be one that adversely affects the habitat they invade on many levels. One of the currently alarming examples of invasive species...
  • Best posts on Squirrelman's Nutzy World from Nov 2009 Too many posts to handle? If you missed out on a great post from last month, here's a quick digest of the top posts that you may want to check out:Best posts on Squirrelman's Nutzy World from Nov 2009Posted on Sunday, November 1st, 2009 in Uncategorized - Views: ()Too many...
  • Best posts on Squirrelman's Nutzy World from Nov 2009 Too many posts to handle? If you missed out on a great post from last month, here's a quick digest of the top posts that you may want to check out:Best posts on Squirrelman's Nutzy World from Nov 2009Posted on Sunday, November 1st, 2009 in Uncategorized - Views: ()Too many...
  • Best posts on Squirrelman's Nutzy World from Nov 2009 Too many posts to handle? If you missed out on a great post from last month, here's a quick digest of the top posts that you may want to check out:Life Insurance is Not an InvestmentPosted on Sunday, November 1st, 2009 in Finance - Views: (93)from ezinsurance.com.au:There is no doubt...
  • Best posts on Squirrelman's Nutzy World from Nov 2009 Too many posts to handle? If you missed out on a great post from last month, here's a quick digest of the top posts that you may want to check out:What's Wrong With These Pictures?Posted on Sunday, November 1st, 2009 in Irreverant Observations - Views: (30)I was walking by a...
  • Best posts on Squirrelman's Nutzy World from Nov 2009 Too many posts to handle? If you missed out on a great post from last month, here's a quick digest of the top posts that you may want to check out:What's Wrong With These Pictures?Posted on Sunday, November 1st, 2009 in Irreverant Observations - Views: (30)I was walking by a...
  • Best posts on Squirrelman's Nutzy World from Nov 2009 Too many posts to handle? If you missed out on a great post from last month, here's a quick digest of the top posts that you may want to check out:Best posts on Squirrelman's Nutzy World from Nov 2009Posted on Sunday, November 1st, 2009 in Uncategorized - Views: ()Too many...
  • Best posts on Squirrelman's Nutzy World from Nov 2009 Too many posts to handle? If you missed out on a great post from last month, here's a quick digest of the top posts that you may want to check out:Best posts on Squirrelman's Nutzy World from Nov 2009Posted on Sunday, November 1st, 2009 in Uncategorized - Views: ()Too many...
Web blog search by BlogSearchQuery.com
5 Online Store Search Results
  1. Skis Cross Country Skiing Winter Sports

  2. Skis Downhill Skiing Winter Sports


    • Computer Repair Contracts that Keep You Profitable If you are trying to set up profitable computer repair contracts for your small business clients, you might have some questions about their real benefits, or at least how to clearly explain these benefits to non-technical small business decision makers.Many small business technology providers choose not to use on-going agreements...
    • biking More Cycling Glossary Madison - Named after Madison Square Garden, which was the home of the original six day races. Madisons are team races that can last from six hours long all the way to six days long, with a team consisting of two to three riders. Each team will only have one...
    • Lake Siskiyou, Mount Shasta, CA Lake Siskiyou is located near: Mount Shasta, CA Phone: 1-888-926-2618 About the Lake: This gorgeous lake was formed by damming the upper portion of the Sacramento River. You can see Mount Shasta from anywhere on the lake and it is truly one of the most picturesque lakes we have ever...
    • How You Can Call To And From Virtually Anywhere For Free One way of calling for free is through achievement of mastery in mental telepathy and clairaudience :-)But also, much more easily, you can accomplish that feat these days through the means of widely available technology. And while long distance physical travel is usually accompanied by monetary spending and sometimes...
    • Book Review -- The Hero Of Ages The last book in Brandon Sanderson's breakout Mistborn trilogy is The Hero of Ages.  It's arguably the best of the three books, yet my wife, who burned through the first two books, has yet to complete this one.  She's tried it a handful of times, but just hasn't gotten rolling....
    • Best posts on Squirrelman's Nutzy World from Nov 2009 Too many posts to handle? If you missed out on a great post from last month, here's a quick digest of the top posts that you may want to check out:Best posts on Squirrelman's Nutzy World from Nov 2009Posted on Sunday, November 1st, 2009 in Uncategorized - Views: ()Too many...
    • T.I. Ft. Justin Timberlake - Dead And Gone (Official Music Video) [HD] Get this song sent directly to your cell phone exclusively from deadandgone-tone.com TI Ft. Justin Timberlake - Dead And Gone (Official Music Video + Download Link & Lyrics) [HD] Paper Trail Download Link: hip-hop-downloadz.com Use RapFan159 as your referrer!! Lyrics: Chorus: Ooooooo I've been travelin on this road to...
    • Could Low Wii Supply Drive Up Demand for Its Competitors? The Wii is, of course, the hot-ticket item this Christmas, just like last year. And once again, there aren't enough to go around. Micah and I frequently watch G4, the "geek" network. During one of their news segments, G4 brought in some people to discuss the Wii supply and...
    • Polycom Redefines Desktop Communications with Launch of VVX 1500 Business Media Phone The Polycom VVX 1500 is the first of its kind business media phone combining advanced IP telephony with business-class video and the ability to integrate with key business applications PLEASANTON, Calif. - Mar 09, 2009 : Polycom, Inc. [Nasdaq: PLCM], the global leader in telepresence, video, and voice communications solutions,...
    • white-coats The Friday gathering - White coat syndrome? Last week ago I went to the hand surgeon for a follow up on my broken finger.  As part of the visit they check my weight, temperature and blood pressure.  My blood pressure was little high, 142 over 105.  The lower number was their concern.  For those that may...
    Search on blogs by BlogSearchQuery.com

    Blog Search Query Tags:

    skis elan Snow k2 Skis level paths apache new sport elan family confidence flow 4 stable manner skier

Filed under: apache

MaestroFJP says...

Every once is a while I get asked the questions about open source licenses.  Here is a simple tutorial on how to apply the Apache 2.0 License to your project.

1. First you'll need a copy of the Apache 2.0 License for your project. Grab a copy by downloading in text form from the Apache Software Foundation.
2. Now, you need to modify a notice statement so you can add them to your files. We'll get to where you put the notice statement in step 3 so just hold your horses for a moment. Here is boilerplate notice which you will modify for your project:

   Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
   limitations under the License.


Some things you must do:

a) Replace all [bracketed] items in the above notice statement. There are only two of these items so should not be hard for you to do.
b) Do not leave the brackets in the notice. For example, "[yyyy]" would be replaced with "2009" (or what ever year you release in). Again, do not leave the brackets in the notice statement.

3. Apply the your notice statement to each and every file in which the Apache License applies. The most common mistake when applying the license that people think that supplying the license text is enough to make your the project licensed under the Apache License.  Again, you must place a copy of the notice statement (probably at the top) in the appropriate "comment syntax" for the file format.

4. Secondly, you need two files in the root or top directory of your distribution.  It's best to not deeply nest them in a some directory deep in your project.  Leave them in the root or top directory. One file should be named LICENSE (no file extension) in which you will place the text from the license you just downloaded in step 1. The other file that is required is a file named NOTICE in which you place a copy of your notice statement you modified above and a listing of the names of licensed libraries used in your project (be sure to list the names of the developers of those projects as well -- show your appreciation).

5. If use other code in your project that is licensed under a different license, I must make sure those libraries are compatible with the Apache 2.0 License.  For example, GPL version 2.0 is not compatible with the Apache 2.0 license. Also, you must leave any original copyright and patent notices in the code you redistribute.  It is important that you preserve this notifications and you must explicitly sate if you made changes to that file.

Presto! You're done!  The depending on the size of the project, adding the notice statement to each file will take you the most time.  I'd recommend against using a SVN keyword or other placeholder to dynamically insert the notice statement at build time because your notice would not be present when browsing code through a source code repository (such as SVN or CVS).

Filed under: Apache

Zend Server 4.0.6 is now available for download.

This maintenance release includes:

  • PHP 5.2.11
  • Zend Framework 1.9.5
  • Apache 2.2.14 for Windows, Mac OS (Zend Server CE only), and tarball distributions
  • Windows 7 support
  • Security and other bug fixes

Download Zend Server 4.0.6 »


** Note for Linux users: Starting with Zend Server 4.0.5, the Zend Server and Zend Server CE DEB/RPM repositories have moved to a unified location under http://repos.zend.com/zend-server. This was done in order to simplify migrations between PHP 5.2 and PHP 5.3, and between Zend Server CE and Zend Server.

If you have not already done so, please update your repository setup and follow the update procedure, as described here: http://forums.zend.com/viewtopic.php?f=8&t=4309

If your repository setup had already been updated for the 4.0.5 release, upgrading to 4.0.6 should be done using the normal upgrade methods described in the installation guide.

Filed under: apache

Andrew says...

Create /etc/php.ini and make it writable

cd /etc
sudo cp php.ini.default php.ini
sudo chmod 777 php.ini

In php.ini, find this line:

;date.timezone =

Uncomment it and insert your time zone (http://php.net/manual/en/timezones.php)

date.timezone =America/Vancouver

Restore php.ini permissions

sudo chmod 444 php.ini

Restart Apache

sudo apachectl restart

As promised. Hot tip - you should probably avoid Entropy just for now (certainly - they will update it).

For whatever reason - I had a myriad of problems attempting to get it to work with Apache on my new 64 bit machine. Once we switched back to the original Apache PHP5 module, it seemed to work properly.

Filed under: apache

Andrew says...

Working in Web Development means you have to have a development environment installed on your local machine, in order to test and develop dynamic pages, using a web server (Apache,), a database (MySQL) and a scripting language (PHP). There are ways of getting those components installed in a bundle, like WAMP, LAMP or MAMP. But as a developer, you are more the manual type, right? So as I had to go through that installation process recently, this article documents the steps I went through.

Apache

OSX already comes with Apache installed, it is just a matter of starting the server. You can do this if you go to System Preferences > Sharing and check “Web Sharing”. The Apache default page should now be displayed at

Later on, you can use the following commands to start, stop or restart Apache:

$ sudo apachectl start
$ sudo apachectl stop
$ sudo apachectl restart

If you would like to change the DocumentRoot of the server, you need to edit the httpd.conf file:

$ sudo vi /etc/apache2/httpd.conf

In here, you need to change the DocumentRoot setting:

DocumentRoot "/Users/myUser/myNewWebroot/"
<Directory "/Users/myUser/myNewWebroot/">
...
</Directory>

PHP

PHP comes bundled up with Leopard as well. The important things to know here are where it got installed and where to find the configuration file.

Most likely, it got installed to:

/usr/local/php5

The configuration file should be located at:

/private/etc/php.ini

You only need to make sure that Apache knows that PHP is available, so edit httpd.conf:
$ sudo vi /etc/apache2/httpd.conf

And add the following lines (in the appropriate sections, to keep things tidy):

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

LoadModule php5_module libexec/apache2/libphp5.so

Finished with that, restart Apache, empty the browser cache and then load a php file for testing if it is correctly interpreted.

MySQL

Download the most recent dmg image from the MySQL site.

Before actually installing MySQL, I found it helps to restart the computer before proceeding with the installation. When running through the installation wizard, MySQL will get installed to:

/usr/local/mysql-VERSION

So, for example:

/usr/local/mysql-5.0.51b-osx10.5-x86/

Also, a symlink should have been created:

/usr/local/mysql -> mysql-5.0.51b-osx10.5-x86

You should also install the Preference Pane, which comes with the installation package as MySQL.prefPane

To start MySQL manually, run the following command:
$ sudo /Library/StartupItems/MySQLCOM/MySQLCOM start

You should also add MySQL to $PATH:
$ vi ~/.profile
$ export PATH=$PATH:/usr/local/mysql/bin
$ source ~/.profile

To check whether that was successful, run:
$ echo $PATH

The default settings for the root user are:

  • Username: root
  • Password: [leave blank]

Add-on: PHPmyAdmin

To get PHPmyAdmin installed, which comes in handy for managing your database(s), download the latest package from their download page. Extract that package to a directory somewhere in your DocumentRoot.

Open config.sample.inc.php with an editor of your choice and add the following details for your MySQL installation:

/*
 * This is needed for cookie based authentication to encrypt password in
 * cookie
 */
$cfg['blowfish_secret'] = 'whatever'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

$cfg['Servers'][$i]['user']          = 'root';
$cfg['Servers'][$i]['password']      = ''; // use here your password

After you made those changes, save the file as config.inc.php.

PEAR

PEAR should also already be available on your Mac. The location is probably:

/usr/local/php5/bin/pear

It is a good idea to add the path to PEAR to $PATH, similar to setting the path for MySQL (see above). In addition, upgrade PEAR to the latest version like so:

$ sudo pear channel-update pear.php.net
$ sudo pear upgrade PEAR

Resources

Nice clean "how to" article. I'm looking for a really comprehensive one on Snow Leopard (I'll post it if I find it)- cause getting all this to run yesterday was kind of a pain.

Filed under: apache

simonbowen says...

Today I discovered that Apache helpfully includes a manual located at http://yourdomain.com/manual. I am sure it doesn't do this on everyones site, but I was using CPanel with a CentOS server, I think. I only noticed this when I had to run a web application I had made through a PCI test, provided by McAfee. It flagged up that directory listings were allowed (/manual/images), and therefore gave me a red mark (well orange actually, since it was only at severity level 3).

Anyway, I had to disable loads of stuff in my httpd.conf, located at "/etc/httpd/conf/httpd.conf". But comment out this line



AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|ru))?(/.*)?$ "/usr/local/apache/manual$1"


That will stop the manual loading or any of its subdirectories.

Filed under: apache

fotis says...

I'll try to make it as simple and fast as i can, to help you out with this awkward installation procedure

There is always the MAMP Solution (http://mamp.info), which i know it's pretty cool, but a former linux guy like me can't compromise, plus, current version of MAMP (up to today at least) doesn't include PHP 5.3.0, which i really needed to install, in order to start porting my huge web projects. The basic PHP 5.3.0 features/changes i wanted to work with were namespaces and some deprecated functions (of course there are others, but too minor to even mention). Installin by compiling the source was one-way solution for me, and it reminded me of back in the day i was always tweaking my linux box.

Note: I cheated: I installed a binary version of MySQL because of the neat auto-start features and the "System Preferences" PrefPane. You can find MySQL in this address: http://dev.mysql.com/downloads/mysql/5.1.html#macosx-dmg Of course, if you want, you can always switch to source distribution and proceed with a simple configure, make, make install (configure options are up to you)

So, i started by downloading the source code for Apache and PHP. First things first: Apache web server

You can download the source code in the following url: http://httpd.apache.org/download.cgi . The file you downloaded looks something like httpd-2.2.14.tar.bz2 so you'd probably want to untar it by using in the Terminal

 bzip2 -cd httpd-2.2.14.tar.bz2 | tar x

After that, you enter the dir, and start configuring by using the following command:

./configure --prefix=/usr/local --enable-mods-shared=all --enable-cache --enable-mem-cache --enable-mime-magic --enable-headers --enable-ssl --enable-dav --enable-suexec --enable-vhost-alias --enable-rewrite --enable-so --with-sslport=443

The configure options are up to you and you can edit/add more by using 

 ./configure --help

After the configure process is done, we can run

make
 make install

Now we have apache installed into /usr/local so we can start the server by running

 /usr/local/bin/apachectl -k start

Same procedure for PHP. Download PHP 5.3.0 using this address http://www.php.net/downloads.php#v5 and select the "Complete Source Code" section. You'll probably end up with an archive that looks like php-5.3.0.tar.bz2

Untar it, enter the directory and DO NOTHING! That's because you can't just run configure by using a simple configure command. Let me be more specific on that:

PHP need some libraries. Example if you want to configure it using the --with-readline option (if your scripts need the readline library), or if you do extensive use of XML like me, you can't just configure it without installing the libraries. Linux users have the priviledge of downloading, installing etc. Mac users on the other hand, have to use the MacPorts tool (http://www.macports.org). 

Download and install MacPorts by using the dmg provided. MacPorts is installed into /opt/local so in terminal you can run the command

/opt/local/bin/port search libxml2

The program outputs results that are based on your search (here, is libxml2), you pick the title that matches your needs and you run

 /opt/local/bin/port install libxml2

Now that you have installed all the libraries you need, you can run the configure command by using this (of course you can add/remove options you like/don't like). IMPORTANT: You must include the --with-config-file-path directive beacuse otherwise you won't be able to use php.ini, Be careful on the paths that are related to apache (apache, apxs):

./configure --prefix=/usr/local --with-apxs2=/usr/local/bin/apxs  --with-config-file-path=/usr/local/lib --with-bz2 --with-zlib=/opt/local --enable-ftp --with-gd --enable-gd-native-ttf --with-mcrypt --with-mysql --with-readline=/opt/local --enable-soap --enable-zip --enable-bcmath --enable-calendar --enable-exif --enable-magic-quotes --enable-mbstring --enable-sockets --enable-wddx --enable-zend-multibyte --with-jpeg-dir=/usr/X11R6 --with-png-dir=/usr/X11R6 --with-pdo-mysql=/usr/local/mysql --with-curl=/opt/local --enable-mbregex --with-libxml-dir=/opt/local --with-gettext=/opt/local --with-iconv-dir=/opt/local --with-freetype-dir=/usr/X11R6

 

The jpeg, freetype and png libraries that came with your mac, are not only compatible, but it's recommended to use them, that's why in some of the options above are using the /usr/X11R6 path.

If you've correctly installed by using MacPorts all the libraries you need the configure process ends normally and you'll se the "Creating files" section

If you run make now, you'll probably get the following error (If not, WOW! you can proceed :D ):

Undefined symbols for architecture i386:

  "_xmlTextReaderSchemaValidate", referenced from:
      _zim_xmlreader_setSchema in php_xmlreader.o
  "_xmlTextReaderSetup", referenced from:
      _zim_xmlreader_XML in php_xmlreader.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
Undefined symbols for architecture x86_64:
  "_xmlTextReaderSchemaValidate", referenced from:
      _zim_xmlreader_setSchema in php_xmlreader.o
  "_xmlTextReaderSetup", referenced from:
      _zim_xmlreader_XML in php_xmlreader.o
ld: symbol(s) not found for architecture x86_64

It may seem weird and difficult to cure, but it's not actually. The makefile generated by the configure process contains some wrong variables and all you have to do is open it, go straight to line that contains the following line:

MH_BUNDLE_FLAGS = -bundle -bundle_loader /usr/sbin/httpd -L/usr/lib\
 -L/usr/lib -laprutil-1 -lsqlite3 -lexpat -liconv -L/usr/lib -lapr-1 -lpthread	

Delete the duplicate -L/usr/lib nd before every occurence of the -L/usr/lib add -L/opt/local/lib as described in this blog post: http://blog.yimingliu.com/2009/02/24/missing-library-symbols-while-compiling-php-528/

so you'll end up with something that looks like that:

MH_BUNDLE_FLAGS = -bundle -bundle_loader /usr/sbin/httpd -L/opt/local/lib \
 -L/usr/lib -laprutil-1 -lsqlite3 -lexpat -liconv -L/opt/local/lib -L/usr/lib -lapr-1 -lpthread	
	You are now ready to hit make again. If another error occures, it means you messed up this line. Be sure to have as many -L/opt/local/lib occurences as -L/usr/lib. You can also add two occurences of -L/usr/local/lib
At this point, make should give you a clean, fresh build of PHP 5.3.0. You may now make install and start tweaking your httpd.conf located in /usr/local/conf
You must add the line
LoadModule php5_module modules/libphp5.so 
You must add the line
AddType application/x-httpd-php .php
And also tweak the DirectoryIndex by adding index.php
<IfModule dir_module>
    DirectoryIndex index.php index.html
</IfModule>

If you now try to restart (or start) apache for the first time. you'll probably face another error that has to do with some undefined symbol "_iconv" or something related to libiconv.2.dylib

This is the second fix you have to take care: You open up envvars file inside the apache bin directory. (In our case: /usr/local/bin/envvars) and tweak this line

DYLD_LIBRARY_PATH="/usr/local/lib:/usr/lib:$DYLD_LIBRARY_PATH"

To look something like that, which includes your macports libraries

DYLD_LIBRARY_PATH="/opt/local/lib:/usr/local/lib:/usr/lib:$DYLD_LIBRARY_PATH"

There you go! You are now ready to start your apache web server (/usr/local/bin/apachectl -k start) and work on your PHP 5.3.0 projects.

Have fun!

 

 

 

Filed under: Apache