Categories
Computers

NetBeans PHP Project on Dreamhost Advanced Setup

This guide will show you how to setup a PHP project in NetBeans covering a complicated situation, such as files behind public root. PHP support is new in NetBeans so hopefully this guide will help some new comers to NetBeans that want to use it for PHP websites.

What some may experience when first using an IDE such as NetBeans or Dreamweaver is the native tendency for these programs to guess what is best for you when it comes to your project paths and live site paths. One may be fustrated that when running their project off the IDE it will point them to someting like http://www.domain.com/www.domain.com/testfile.html or upload their files to a similar wrong location in FTP. Especially when trying to mirror the directory structures and names locally and on the server. With the proper setup this can be avoided.

Categories
Computers

Simple Linux User Group (LUG) CMS

I wrote this simple CMS for keeping track of meetings, locations, information, and meeting archives/minutes/files of any sort of club or group events. The backend was created to CMSify the static site built by @thejonmoore of usefulgeek.com It’s not fully featured and may require some manual FTP uploading of your archives, etc, but it has just enough to play with. We ended up just using wiki for our LUG. Check out INKYLUG Indiana and Kentucky Linux Users Group.

download SimpleLUGCMS

Categories
Computers

You don’t have permission to access /php/php-cgi.exe/index.php on this server. PHP 5 on Apache 2.2

Did you get this on your fresh install of PHP5 on Windows?

Forbidden
You don’t have permission to access /php/php-cgi.exe/index.php on this server.

You might encounter this with a default installation of Apache 2.2 (I used the exe installer) and a manual install of PHP5 as cgi on Windows. I placed this in my httpd.conf and followed other steps according to the PHP5 on Apache 2.2 instructions by using in httpd.conf:

#load php5 as cgi
ScriptAlias /php/ “c:/php/”
AddType application/x-httpd-php .php
Action application/x-httpd-php “/php/php-cgi.exe”

In order to fix the forbidden error I had to change this line:

<Directory “C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/”>
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

to this:

<Directory “c:/php”>
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

EDIT: Looking back now, I see this solution at the bottom of the comments from 2006 on the Apache instructions. I probably didn’t find it because this error wasn’t mentioned. I had a feeling that replacing the line probably wasn’t a good thing and that you should add it additionally. That’s what the comment says so I also suggest that approach.

Categories
Computers

Remove AVG LinkScanner Search-Shield update

The installation wizard of AVG has been updated and you no longer need to run fancy command lines to install without Link Scanner or remove it.

1. Download the newest build of AVG from free.grisoft.com
2. Run the installation.
3. Choose ‘Custom installation’. If you already have AVG installed, it will ask what setup type you want to perform… Choose “Add or remove components.”
4. Hit Next twice.
5. Uncheck AVG Search-Shield.
6. Finish the installation Wizard by clicking Next until Finish.

source: avg faq

If you like to install your programs in command line:
c:\avg_free_stf_*.exe /REMOVE_FEATURE fea_AVG_SafeSurf /REMOVE_FEATURE fea_AVG_SafeSearch

Besides how one may feel about the programs performance on their computer, webmasters have also been experiencing issues. What I didn’t think about was all the times AVG is checking every website in search results and generating a lot of hits to web servers.

AVG has made an official response:

As of this date, Search-Shield will no longer scan each search result online for new exploits, which was causing the spikes that web masters addressed with us.

[…] AVG still offers full protection against potential exploits through the LinkScanner Active Surf-Shield [….], which checks every page for malicious content as it is visited but before it is opened.

We’d like to thank the web community for bringing these challenges to our attention, as building community trust and protecting all of our users is critical to us.