Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

Saturday, August 6, 2011

SubSonic - FlashPlayer Broken ? ?

Well... forget about banging your head on the wall trying to fix those poor little client machines.  It's not you... It's me...  We've all heard that one before.

But this time, it's true.  Especially when you've hammered down your web-server on a number of occasions, just to see if you could break it...

ok, you ready for the fix?
sudo rm -Rf /var/subsonic/jetty/2169/jsp/org/apache/jsp/WEB_002dINF/jsp

Keep in mind, I'm running mine on a QEMU Virtual Machine that is Ubuntu 11.04 x64 with the most basic of basic installations. No frills people.

I think the cache files got stuck or corrupted at some point during one of my "stress tests"... fun :)

Monday, February 8, 2010

Ubuntu iSCSi target - 9.10

first - create an additional HD for our VM of Ubunutu

next - started VM, used gparted to format the new drive (ext2)
sudo apt-get install gparted

sudo apt-get install iscsitarget

sudo apt-get install lvm2

sudo pvcreate /dev/sdb1

Physical volume "/dev/sdb1" successfully created

sudo vgcreate -s 16M vg0 /dev/sdb1

Volume group "vg0" successfully created

http://www.howtoforge.com/using-iscsi-on-ubuntu-9.04-initiator-and-target

sudo lvcreate -L 20G -n storage_lun1 vg0

Logical volume "storage_lun1" created

sudo gedit /etc/ietd.conf

Target iqn.2010-02.net.obxbill:storage.lun1

IncomingUser

OutgoingUser

Lun 0 Path=/dev/vg0/storage_lun1,Type=fileio

Alias LUN1

#MaxConnections  6

sudo gedit /etc/initiators.allow

iqn.2010-02.net.obxbill:storage.lun1 192.168.27.102

iqn.2010-02.net.obxbill:storage.lun1 192.168.27.106

sudo service iscsitarget start

On windows 2003 servers - download and  install iSCSI initiator for Windows 2003

Then Open the iSCSi Initiator and use the Discover tab, type in the IP of your Ubuntu target, click Logon button

When you see the disk in disk mgr, initialize format select extended partition, then choose ntfs as usual.

Tomorrow, I'll put the process together for building a 2 node cluster.  From there, you can repeat the above process in order to present additional luns to your cluster for things like building a SQL cluster.

Friday, January 22, 2010

Removing suhosin from Ubuntu

http://www.ambitonline.com/nextrelease/archives/113-How-to-Ubuntu-PHP-Remove-Suhosin.html

and

http://ubuntuforums.org/archive/index.php/t-698306.html

I was looking at reasons to do this since apparently it's for protecting your mySQL and other sloppy php code, etc.

Then I found this little article listed above. Hope it helps

Ubuntu - Apache2 - cURL?

Recently, I installed a plugin where one of the features wouldnt work because it said that something called cURL wasn't installed on my server.

Hmmm...

If you use PHP, you may need to use cURL, which is one of the most popular extension. PHP CURL functions are available through the use of libcurl, a library created by Daniel Stenberg, and allow you to connect and communicate with web servers using many
different types of protocols.

Assume you have already setup LAMP. To install or setup cURL on your Linux machine like Ubuntu, run the following line of shell command in your terminal:
sudo apt-get install curl libcurl3 libcurl3-dev php5-curl

Now you have PHP cURL installed, the next thing you need to do is to restart apache2, run the following command in your terminal:
sudo /etc/init.d/apache2 restart