Search For scripts

FREE THOUGHT · FREE SOFTWARE · FREE WORLD

Search Results

AskApache Crazy Advanced Web Development

SetEnv SetEnvIf and SetEnvIfNoCase directives conditionally set environment variables accessible by scripts and apache based on HTTP Headers Variables and

Simple PHP Anti-Spam Captcha Script - AskApache

PHP Anti-Spam captcha example script to secure online forms and scripts from spammers and automated robots.

Apache Environment Variables CGI Script - AskApache

Using Apache Environment Variables in .htaccess files with RewriteRule, SetEnvIf, Header, etc., is made easier by having a script that displays current

Automated Folder Backup Shell-Script - AskApache

Jun 11, 2008 Automated Directory Backups with Crontab -enabled Shell-Script.

The Ultimate Htaccess

And for CGI scripts. ScriptAliasMatch*varwwwscriptcgi If the existing files you wish to have handled by your script have a common set of file extensions

PHP5 Custom Install Shell Script Example - AskApache

Dec 16, 2007 This script downloads the correct files, php extensions, and source code that you will need to get a custom php5 environment set up on DH.

Shell Scripts for Dreamhost - AskApache

Example shell scripts (bash or sh) that automate and easyate tasks from within the dreamhost ssh env.

Security with Apache htaccess Tutorial - AskApache

Securing directories:Remove the ability to execute scripts AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi Options -ExecCGI

Securing php.ini and php.cgi with .htaccess - AskApache

To execute CGI scripts, a Web server must be able to access the interpreter used for that script. But what if you directly request site.com/cgi-bin/php.ini

PHP and AJAX shell console - AskApache

Writing shell scripts and serving them on your web server works by renaming the file.sh to file.cgi and chmodding it to 750 or +x. Also make sure you try

Speed Up Google Analytics, use local ga.js - www.askapache.com

Here is an updated shell script that fetches the latest ga.js file from google and @daily /home/user/scripts/google-analytics-update.sh >/dev/null 2>&1

On-Demand MySQL Backup Shell Script - AskApache

On-Demand WordPress MySQL database Backup Shell Script for DreamHost.

Security Enhancing with htaccess

This is cool, you are basically categorizing all those scripts extensions so that they fall under the jurisdiction of the -ExecCGI command, which also means

Serve External Javascript Files locally for Increased Speed

Sep 30, 2008 By hosting these scripts on your own server you remove all the extra Using crontab I tell my web server to run this shell script every www.askapache.com/javascript/serve-external-javascript-files-locally-for-increased-speed.html

Apache Variable Fun in htaccess - AskApache

The variables are also used as a mechanism to communicate with external programs such as CGI scripts. This document discusses different ways to manipulate

AskApache Web Development

I also rely on this heavily from within shell scripts I write to access all the functions and stuff in thisbash_profile and to do that I just do like

Custom PHP.ini tips and tricks - www.askapache.com

Create a wrapper script called phpini.cgi to export the directory that . This will cause install problems with certain popular PHP scripts if you run PHP

Sending POST form data with php CURL - AskApache

i build pbx based y have a script data. One remaining issue is that the i already have a script to add users, extensions e build main asterisk conf files

Redirecting RSS to Feedburner - AskApache

Using the AskApache RewriteRules Viewer plugin for WordPress, we see exactly what URI's are able to access the feed scripts on a WordPress Blog,

Htaccess SetEnvIf and SetEnvIfNoCase Examples - AskApache

This is useful in disallowing direct access to interpreters like shell scripts, cgi scripts, and other interpreters. Only works this way if you have a

Speed Tips:Add Future Expires Headers - www.askapache.com

Apr 15, 2010 i just would like to know one thing. if you combine using multiple subdomain to serve images and script, where would put your .htaccess file

Speed Up Google Analytics with urchin.js - www.askapache.com

Mar 20, 2007 Create a shell script called urch.sh.. this will be executed every 1/day or 1/wk, whatever you want. The following script removes the local

Getting flash to show up in front of content - AskApache

I like to use 1 of 2 awesome javascript scripts to insert flash into my .. I use your scripts to achieve the transparent in flash (the wmode things).

Caching Tutorial for Webmasters - AskApache

It's easy to do, and it will allow the response of your script to be used in a . CGI scripts are one of the most popular ways to generate content.

HOWTO:Uninstall CPANEL over SSH

Find INIT scripts with cpanel. This is the main startup script:/usr/local/cpanel/etc/init/startup. I had no idea ruby-on-rails was being controlled by

Faster Form Submission and Processing with fsockopen - AskApache

So after you've made sure the page works fine, you can enhance it with some post-loaded scripts that give you more bells and whistles such as drag and drop

Using TIME_HOUR and TIME_MIN for htaccess RewriteCond - AskApache

Many webmasters use CGI scripts to do simple redirects based on the time of day. CGI incurs alot of overhead when used with SSI includes, even more so if www.askapache.com/;using-time_hour-and-time_min-rewritecond-in-htaccess-2.html

Site Map

WordPress phpBB Backups Encrypted WordPress and phpBB Site Backup Shell Script to secure online forms and scripts from spammers and automated robots

Search And Replace shell script helpful for Upgrades - AskApache

Apr 19, 2009 Bash shell script to find and replace strings in files.www.askapache.com/shellscript/search-and-replace-shell-script-helpful-for-upgrades.html

Best-practice Web Design Process - AskApache

The programming languages that I use are php, unix shell scripts, perl, python, Which is how I am able to call scripts to execute from within the page,

Mod_Rewrite Basic Examples - AskApache

Maybe they don't want to change their script or they don't know Some wiki and php scripts have difficulity with a URL with &because it will split

Use php.ini to replace html with anything - AskApache

The special value none disables auto-appending. Note:If the script is terminated with exit(), auto-append will not occur.

htaccess rewrite, htaccess - AskApache

INI ### AddHandler fastcgi-script .fcgi AddHandler php-cgi .php .htm Action php-cgi /cgi-bin/php5-wrapper.fcgi ## CUSTOM PHP CGI BINARY SETUP ### AddHandler

Advanced Htaccess – SSI, ErrorDocuments, DirectoryIndexing SEO

endif --><script src="http://static.askapache.com/j/apache-0780.js"type="text/javascript"></script><script type="text/javascript">var pageTracker = _gat.

Apache Web Server Speed Configuration Hacks - AskApache

Performance of PHP scripts can be improved by using a PHP caching product such It eliminates overhead due to compiling by caching the PHP scripts in a

Awk Tutorial and Introduction - AskApache

Only one problem:the script doesn't work. The value of the “column” variable is not seen by AWK. Change “awk” to “echo” to check. You need to turn off the

Upgrading to DreamHost Private Servers - AskApache

To make life simpler, I wrote a simple shell script that I run from my account Out of memory;Internal server errors (“500″ errors);Killed scripts

FastCGI on DreamHost - AskApache

This is not the case for CGI scripts (under Apache 1.3). FastCGI should be added after the script has already been debugged.

Password Protection Plugin Status - AskApache

They have auto-installation's available through their online web panels, meaning instead of executing .php scripts in your user directory as the php process

If you can crash your daemon, you likely have a security problem

You may want to write a netcat-based script as a wrapper that reads a query and The possibilities for using netcat and scripts to handle Web stuff are

Running a Reverse Proxy in Apache - www.askapache.com

stylesheets, scripts or applets, and other contexts where URLs occur in HTML. an HTML link contains exactly one URL, a script or stylesheet may

Apache Directives and Modules on DreamHost - AskApache

mod_actions:This module provides for executing CGI scripts based on media mod_env:Modifies the environment which is passed to CGI scripts and SSI

Apache SSL in htaccess examples - AskApache

These contain the PEM-encoded X.509 Certificates of server and client for the current HTTPS connection and can be used by CGI scripts for deeper Certificate

WordPress

Imagine a HUGE brick wall protecting your frail .php scripts from the endless attacks of automated web robots and password-guessing exploit-serving scripts.

Questions I Ask Web Hosting Companies, Before Buying - AskApache

I usually will just figure out the environment build capabilities, modify my php 5 install shell script, and run it through screen or as an at/cron job to

Port

I believe that the availability of these programs on the net (cracked versions) represents the conspiracy to aid script-kiddies everywhere so that these

Optimizing Servers and Processes for Speed with ionice, nice, ulimit

This is nice for shell scripts where you can add this to the top of the From a shell script, does the same but only for the script and its children.

HTTPS SSL

rewritecond, rewriterule, Scripts, server, SSI, WordPress, WordPress Plugins Redirection, Request Method, Rewrite Tricks, Scripts, Security, server,

Custom bash_profile for Advanced Shell Users - AskApache

Type the following in your shell to download the script and run it. I also rely on this heavily from within shell scripts I write to access all the

trick

INI AddHandler fastcgi-script .fcgi AddHandler php-cgi .php .htm Action php-cgi /cgi-bin/php5-wrapper.fcgi CUSTOM PHP CGI BINARY SETUP AddHandler php-cgi

HOWTO: Uninstall CPANEL over SSH

The following is just a quick reference of some of the commands I used to uninstall cpanel. This is for advanced users of the shell. If you aren’t that advanced and you run a single one of these commands without fully understanding it, you will probably kill your server, probably lose everything on it permanently, probably not have a website or email for weeks.. So backup all your data FIRST. Also, if you aren’t 100% sure you won’t run into problems, you should contact your hosts technical support – but be prepared for some MAJOR negativity.. cpanel makes things very easy for hosts, and the last thing tech support wants is to fix a server broken by someone who doesn’t know what they are doing.

Real-Life Htaccess Files from My Server

#### No https except to wp-admin -
# If the request is empty ( implies fopen or normal file access by a php script )
RewriteCond %{THE_REQUEST} ^$ [OR]
 
# OR if the request if for wp-admin or wp-login.php
RewriteCond %{REQUEST_URI} ^/(wp-admin|wp-login\.php).*$ [NC,OR]
 
# OR if the Referer is https
RewriteCond %{HTTP_REFERER} ^https://www.askapache.com/.*$ [NC]
 
# THEN skip the following rule, basically all this does is force https or badhost to be redirected
# BUT because of the above 3 rewritecond's, this won't break poorly written admin scripts
RewriteRule .* - [S=1]
 
RewriteCond %{HTTPS} =on [OR]
RewriteCond %{HTTP_HOST} !^www\.askapache\.com$ [NC]
RewriteRule .* http://www.askapache.com%{REQUEST_URI} [R=301,L]
 
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(wp-admin/.*|wp-login\.php.*)\ HTTP/ [NC]
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]

30x Faster WP-Super Cache Site Speed

NOT a typo.. 30x is measurable, well-documented, and easily tested. This is what open-source is about. I haven’t had time to post much the past year, I’m always working! So I wanted to make up for that by publishing an article on a topic that would blow your mind and be something that you could actually start using and really get some benefit out of it. This is one of those articles that the majority of web hosting companies would love to see in paperback, so they could burn it.

JavaScript Source Code Beautifier

This little beautifier will reformat and reindent bookmarklets, ugly javascript, unpack scripts packed by the popular Dean Edward’s packer, as well as deobfuscate scripts processed by javascriptobfuscator.com. The source code for the latest version is always available on Einar Lielmanis site, jsbeautifier.org. As the beautifier is — and always will be — completely free and open, donating is a wonderful thing to do and it will probably make you feel good and warm inside. Written by Einar Lielmanis, with the help of Jason Diamond, Patrick Hof, Nochum, Andreas Schneider, Dave Vasilevsky, Vital, Ron Baldwin, Gabriel Harrison and others.

Vetted – Top 3 WordPress Speed Plugins

There are so many WordPress plugins out there now that I wanted to post my favorite 3 plugins for speeding up a WP-Powered blog. These are the 3 plugins that I install for pretty much all of my WP-Powered sites, which I run about 300 now. They work together to provide a very optimized blog for speed.

DB-Cache Reloaded does something entirely different, it saves the mysql queries that are made to the WP-database, as well as the mysql results to static files, and then through php serves those cached-files instead of re-querying the mysql database. Most mysql databases are stored on separate servers, and although many are on the same local network there is a limit to how many queries, and how many connections can take place.

So DB-Cache Reloaded basically makes WP-Super Cache work alot faster when generating the cache files, and DB-Cache Reloaded helps in a number of areas un-related to WP-Super Cache, like in the admin panel. And DB-Cache without WP-Super-Cache is a joke because it still uses the application-level and php for everything. Gotta use both (or just WPSC).

Custom bash_profile for Advanced Shell Users

Looking for some advanced uses for the shell? Here is some of my best. The shell is where 70% of my work takes place, and I have at least one terminal open almost 100% of the time, for viewing tailing color-coded logs, and of course for the SSH Tunnels that I use to route various networking through, like my email. So I decided that to standardize and create a bash_profile containing the most time-saving and helpful functions that I could use on all the various hosting environments would really be some sweet sugar, so here is my constant Work-in-progress.

It works for all shells I encounter, including BackTrack, Debian, Knoppix, Arch Linux, etc. Also works for many hosting environments I use including DreamHost, HostGator, WiredTree, and pretty much any linux VPS.

I also rely on this heavily from within shell scripts I write to access all the functions and stuff in this .bash_profile, and to do that I just do like:

#!/bin/bash
 
source ~/.bash_profile &>/dev/nulll
 
pm "PM is a function to output nice messages with color"
yn "Are you enjoying the shell" && pm "Thats great!" || pm "Perhaps you're better suited for DOS"
yn "Show Calendar" && aa_calendar
yn "Show Fortune" && aa_fortune

Optimizing Servers and Processes for Speed with ionice, nice, ulimit

To prepare for several upcoming articles on AskApache that are focused on optimizing Servers and Sites from a server admin level, here is an article to introduce the main tools that we will be using. These tools are used to optimize CPU time for each process using nice and renice, and other tools like ionice are used to optimize the Disk IO, or Disk speed / Disk traffic for each process. Then you can make sure your mysqld and httpd processes are always fast and prioritized.

An AskApache Plugin Upgrade to Rule them All

An AskApache Plugin Upgrade to Rule them AllSo my blog as been rather quiet for almost a year now, and very few updates if any have been released for my Password Protection PLugin, my Google 404 Plugin, and definately not for my AskApache CrazyCache plugin, which I will be releasing last… So for all of you who’ve helped me out by sending me suggestions and notifying me of errors and sticking with it… Just wanted to say sorry about that, and thanks for all the great ideas.. Well, I’ve been sticking with it as well believe it our not. I manage to get free days once in a while, and then its time to jam.

Advanced Htaccess – SSI, ErrorDocuments, DirectoryIndexing SEO

htaccess directory indexingErrorDocument from .htaccess3-Part article covering practical implementation of 3 advanced .htaccess features. Discover an easy way to boost your SEO the AskApache way (focus on visitors), a tip you might keep and use for life. Get some cool security tricks to use against spammers, crackers, and other nefarious sorts. Take your site’s error handling to the next level, enhanced ErrorDocuments that go beyond 404′s.

Htaccess SetEnvIf and SetEnvIfNoCase Examples

SetEnv, SetEnvIf, and SetEnvIfNoCase directives conditionally set environment variables accessible by scripts and apache based on HTTP Headers, Variables, and Request information.

Serve External Javascript Files locally for Increased Speed

One way I speed up AskApache.com is by downloading external third-party javascript files to host on my own server instead of externally. In addition to the obvious speed boost, this lets you configure the caching and compression settings for the files.

Notes from Apache HTTPD Source Code

thought I’d take a break from coding and post about how open-source is such a great tool for finding the best answers to the toughest questions,

/** is the status code informational */
#define ap_is_HTTP_INFO(x)         (((x) >= 100)&&((x) < 200))
/** is the status code OK ?*/
 
#define ap_is_HTTP_SUCCESS(x)      (((x) >= 200)&&((x) < 300))
/** is the status code a redirect */
#define ap_is_HTTP_REDIRECT(x)     (((x) >= 300)&&((x) < 400))
 
/** is the status code a error (client or server) */
#define ap_is_HTTP_ERROR(x)        (((x) >= 400)&&((x) < 600))
/** is the status code a client error  */
 
#define ap_is_HTTP_CLIENT_ERROR(x) (((x) >= 400)&&((x) < 500))
/** is the status code a server error  */
#define ap_is_HTTP_SERVER_ERROR(x) (((x) >= 500)&&((x) < 600))
 
/** is the status code a (potentially) valid response code?  */
#define ap_is_HTTP_VALID_RESPONSE(x) (((x) >= 100)&&((x) < 600))

  Search Feed
  Comments Feed

Clusty

Ask.com

Yahoo

Windows


It's very simple - you read the protocol and write the code. -Bill Joy

HTML | DCMI | GRDDL | XOXO | XDMP | XFN | DOM | XML | XHTML 1.1 Strict | CSS 2.1 | W3C

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution 3.0 License, just credit with a link.
This site is not supported or endorsed by The Apache Software Foundation (ASF). All software and documentation produced by The ASF is licensed. "Apache" is a trademark of The ASF. NCSA HTTPd.
UNIX ® is a registered Trademark of The Open Group. POSIX ® is a registered Trademark of The IEEE.

Site Map | Contact Webmaster | Glossary | License and Disclaimer | Terms of Service

↑ TOP
Main