Archive | July 8th, 2008

Atomic ASL linux setup

I use Centos 5 and plesk 8.4.0, and i made:

1) wget http://3es.atomicrocketturtle.com/installers/atomic.sh
2) sh atomic.sh
3) nano /etc/yum.repos.d/CentOS-Base.repo
4)
[atomic]
name=Atomic Rocket Turtle – $releasever – Atomic PSA-Compatible RPMS
baseurl=http://www.atomicorp.com/channels/atomic/centos/$releasever/$basearch

[plesk]
name=Plesk Server Administrator
baseurl=http://www.atomicorp.com/channels/plesk/latest/centos/$releasever/$basearch
gpgcheck=0

5) yum update
6) restart

At plesk webadmin, plesk version is psa v8.4.0_build84080514.18 os_CentOS 5

Posted in Plesk0 Comments

How to protect PLESK?

You could install:

Firewall: CSF, APF, ASL
Protection Tools: MOD Security, MOD Evasive, fail2ban, BFD

Importent: Keep your Software (Plesk, PHP, WordPress …) uptodate. Running PHP in safe mode (could help maybe)!

The best thing is to buy Atomic Secured Linux

It is more than a Firewall! Its a full package of security and always uptodate! I love it!

Just install ASL and you are done

Posted in Plesk0 Comments

Introduction to Functions

At first glance, functions can be mind-boggling. At the same time, however, they are extremely useful. They help programmers around the world to make their code simpler, faster, and more readable and understandable. That is why it’s important for you to come to grips with the multitude of abilities that functions give you. With that said, lets start with a simple example of what a function looks like: Continue Reading

Posted in Flash, Programming0 Comments

Nameserver setup on 2 Plesk servers

http://forum.swsoft.com/showthread.php?t=38404&highlight=chroot

1.) MySQL Access Rights

On your Plesk server:
Create a MySQL user eg.: secondarydns
Using phpmyadmin, grant this user the SELECT option only for the table domains of the psa database.
Also for maximum security you should set the hostname from which this user will logon. Continue Reading

Posted in Plesk1 Comment

Centos 5 Plesk Install

I’ve recently been doing the exact same thing (albeit 32-bit), having previously always used Fedora, so I thought I’d give you a ‘how-to’ based entirely on my experiences (so it’s not neccesarily gospel, but it’s worked fine for me): Continue Reading

Posted in Plesk0 Comments

BIND update causes DNS Server failure

Definitely sounds like bind-chroot is the culprit. I’ve had a few problems with it myself. Once you’ve removed it from your machine

Quote:
yum remove bind-chroot
service named start

add the following line to your yum.conf file under the [main] section

Quote:

exclude=bind-chroot Continue Reading

Posted in Plesk0 Comments

Network Commands

  1. ping cdl.gr
  2. nslookup ns1.cdl.gr
  3. ipconfig /flushdns
  4. tracert ns1.cdl.gr

Posted in Network0 Comments

Search Command In Linux

find -name “filename”

Continue Reading

Posted in Linux0 Comments

Create tag cloud V3

<?php
 
// connect to database at some point
 
// In the SQL below, change these three things:
// thing is the column name that you are making a tag cloud for
// id is the primary key
// my_table is the name of the database table
 
$query = "SELECT thing AS tag, COUNT(id) AS quantity
  FROM my_table
  GROUP BY thing
  ORDER BY thing ASC";
 
$result = mysql_query($query);
 
// here we loop through the results and put them into a simple array:
// $tag['thing1'] = 12;
// $tag['thing2'] = 25;
// etc. so we can use all the nifty array functions
// to calculate the font-size of each tag
while ($row = mysql_fetch_array($result)) {
    $tags[$row['tag']] = $row['quantity'];
}
 
// change these font sizes if you will
$max_size = 250; // max font size in %
$min_size = 100; // min font size in %
 
// get the largest and smallest array values
$max_qty = max(array_values($tags));
$min_qty = min(array_values($tags));
 
// find the range of values
$spread = $max_qty - $min_qty;
if (0 == $spread) { // we don't want to divide by zero
    $spread = 1;
}
 
// determine the font-size increment
// this is the increase per tag quantity (times used)
$step = ($max_size - $min_size)/($spread);
 
// loop through our tag array
foreach ($tags as $key =&gt; $value) {
 
    // calculate CSS font-size
    // find the $value in excess of $min_qty
    // multiply by the font-size increment ($size)
    // and add the $min_size set above
    $size = $min_size + (($value - $min_qty) * $step);
    // uncomment if you want sizes in whole %:
    // $size = ceil($size);
 
    // you'll need to put the link destination in place of the #
    // (assuming your tag links to some sort of details page)
    echo '&lt;a href="#" style="font-size: '.$size.'%"';
    // perhaps adjust this title attribute for the things that are tagged
    echo ' title="'.$value.' things tagged with '.$key.'"';
    echo '&gt;'.$key.'&lt;/a&gt; ';
    // notice the space at the end of the link
}
 
?>

Should give you something that looks like this (but as links if you so choose):

Thing 1 Thing 2 Thing 3 Thing 4 Thing 5 Thing 6 Thing 7 Thing 8

Posted in PHP0 Comments

Create tag cloud V2

<?php function get_tag_data() {
    $arr = Array('Actionscript' =&gt; 35, 'Adobe' =&gt; 22, 'Array' =&gt; 44, 'Background' =&gt; 43,
	'Blur' =&gt; 18, 'Canvas' =&gt; 33, 'Class' =&gt; 15, 'Color Palette' =&gt; 11, 'Crop' =&gt; 42,
	'Delimiter' =&gt; 13, 'Depth' =&gt; 34, 'Design' =&gt; 8, 'Encode' =&gt; 12, 'Encryption' =&gt; 30,
	'Extract' =&gt; 28, 'Filters' =&gt; 42, 'Flash' =&gt; 32, 'Functions' =&gt; 19,
	'Gaussian Blur' =&gt; 44, 'Grafix' =&gt; 49, 'Graphics' =&gt; 35, 'Hue' =&gt; 47, 'Illustrator' =&gt; 8,
	'Image Ready' =&gt; 12, 'Javascript' =&gt; 47, 'Jpeg' =&gt; 15, 	'Keyboard' =&gt; 18, 'Level' =&gt; 28,
	'Liquify' =&gt; 30, 'Listener' =&gt; 10, 'Logo' =&gt; 12, 'Loops' =&gt; 22, 'Macromedia' =&gt; 26,
	'Method' =&gt; 28, 'MySQL' =&gt; 18, 'Obfuscation' =&gt; 13, 'Object' =&gt; 39, 'Optimize' =&gt; 25,
	'PDF' =&gt; 37, 'PHP' =&gt; 44, 'PSD' =&gt; 17, 'Photography' =&gt; 28, 'Photoshop' =&gt; 46,
	'Revert' =&gt; 50, 'Saturation' =&gt; 35, 'Save as' =&gt; 28, 'Scope' =&gt; 11, 'Scripting' =&gt; 9,
	'Security' =&gt; 41, 'Sharpen' =&gt; 49, 'Switch' =&gt; 41, 'Templates' =&gt; 11, 'Texture' =&gt; 22,
	'Tool Palette' =&gt; 30, 'Variables' =&gt; 50);
    return $arr;
 
function get_tag_cloud() {
// Default font sizes
$min_font_size = 12;
$max_font_size = 30;
 
// Pull in tag data
$tags = get_tag_data();
 
//Finally we start the HTML building process to display our tags. For this demo the tag simply searches Google using the provided tag.
$cloud_html = '';
$cloud_tags = array(); // create an array to hold tag code
foreach ($tags as $tag =&gt; $count) {
	$size = $min_font_size + ($count - $minimum_count)
		* ($max_font_size - $min_font_size) / $spread;
	$cloud_tags[] = '&lt;a style="font-size: '. floor($size) . 'px'
		. '" class="tag_cloud" href="http://www.google.com/search?q=' . $tag
		. '" title="\'' . $tag  . '\' returned a count of ' . $count . '"&gt;'
		. htmlspecialchars(stripslashes($tag)) . '&lt;/a&gt;';
}
$cloud_html = join("\n", $cloud_tags) . "\n";
return $cloud_html;
} ?>

Posted in PHP0 Comments

Domain Finder

Domain Finder Tool by Truste.gr

read more for domains

Advertisers

Wedstar all about wedding - gamos - γαμος
Κατασκευή ιστοσελίδων
Domain Names | Hosting

Adds