Friday, December 31, 2010

Apache Error PHPMotion The requested URL /upload-media was not found on this server

When you setup PHPMotion video website you will encounter the following error first,

The requested URL /upload-media was not found on this server.

It happens due to the error in Apache Config. Add the following Directory Element to the config file.

<Directory "/var/www/htdocs/htdocs">

Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all

</Directory>



The above directory entry assumes that you have installed phpmotion in /var/www/htdocs/htdocs.

It all happens since .htaccess is denied to run from those directories.

Thursday, December 16, 2010

Worked in Command Line but not through Apache

If something works locally and if that is not working through Apache or outside of the box in a linux system. It cab be of two problems.

1. iptables
2. selinux


With iptables, mostly outgoing connection will not be a problem if the NAT is set properly.
SELinux works on top of it.

setsebool -P httpd_can_network_connect=1

Will all outside the box connectivity with Apache or any other resources.

Add VMware Tools into CentOS 5.5

Sometimes, adding an existing software can be of pain with less documentation. This is one the scenario I had to face it. Lab manager from VMWare provides easy spinning of virtual servers, to get the template complete you need to get the necessary tools installed before you publish. When I click on install, it actually mounts the ISO to the directory but it does not installs it.

find . | grep VMware
mount (found dev)  localdir
cp VMware....  ~/
tar zxvf VMware.....tar.gz
cd vmware-tools-distrib
./vmware-install.pl


You are done. It installs all the Guest Additions before you publish the machine template.

Friday, December 10, 2010

Splitting PCAP or CAP Files

Tool that comes with Wireshark has inbuilt split of the captures. In case if you set the file to higher size, then you can split the file as below.


C:\Program Files\Wireshark\editcap.exe  -c numberofpackets   infile outfile

In linux,

path of wireshark in most of the systems will be in the PATH

editcap -c numberofpackets infile outfile

should split the files into smaller size.