esxi disk format

0

Windows komut satırı açılır ve sırasıyla aşağıdaki komutlar çalıştırılır.
diskpart
list disk
select disk xx
clean
create partition primary
select partition 1
active
format quick fs=fat32
assign

Plesk php mcrypt

2

Atomic kullanarak pleks üzerinde mcrypt kurulumunu oldukça basir bir şekilde halledebiliriz.

# wget -q -O – http://www.atomicorp.com/installers/atomic.sh | sh
# yum install php-mcrypt

Whmcs Custom Fields Validation

0

Regular Expression Validation

The regular expression validation rules allow you to define what value the field can take. The user won't be allowed to proceed until it passes the validation rule. Some common examples you might want:

A domain name in the format "google.com"

/^([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)*\.([a-zA-Z]{2,6})$/

A username between 4 and 28 characters in length, alpha-numeric, and allowing underscores

/^[a-z\d_]{4,28}$/i

A telephone number in the following format: (###) ###-####

/^(\(?[0-9]{3,3}\)?|[0-9]{3,3}[-. ]?)[ ][0-9]{3,3}[-. ]?[0-9]{4,4}$/

A date in the format DD/MM/YYYY

/^\d{1,2}\/\d{1,2}\/\d{4}$/

See http://www.regexpr.com/cheatsheet/ for a detailed guide

 

http://docs.whmcs.com/Custom_Fields#Types_of_Custom_Fields

Whmcs Custom Fields

0

{php}
$userid = $this->_tpl_vars['clientsdetails']['userid'];
$result = mysql_query("SELECT value FROM tblcustomfieldsvalues WHERE relid=$userid AND fieldid=###");
$data = mysql_fetch_array($result);
$value = $data["value"];
echo $value;
{/php

### olan yeri custom field id numarası ile değişelim.

Another MySQL daemon already running with the same unix socket.

0

Eğer sizde plesk sunucularınızda "Another MySQL daemon already running with the same unix socket." hata mesajını alıyorsanız sorununuzun çözümü kısaca aşağıdaki işlem olabilir.

1. Sunucunuza bağlanın.

2. Komut satırına tırnak olmadan "rm /var/lib/mysql/mysql.sock" yazın ve  çıkan soruya Y yapıp onaylayın.

 

SSH ile MySQL Yedeği Alma ve Geri Yükleme

0

SSH ile MySQL Yedeği Alma ve Geri Yükleme işlemini yapmak oldukça basit.

Öncelikle konsolumuza bağlı olmamız gerekiyor. Daha sonra aşağıdaki komutları n birincisi yedek almak için. İkincisi ise alınan mysql yedeği eri yüklemek için kullanıyoruz.

mysqldump -u veritabaniadi -p kullaniciadi > emiryeniyedek.sql
mysql -u veritabaniadi -p kullaniciadi < emiryeniyedek.sql

cPanel PHP Ayarları

0

Overview

Most PHP options enable an extension that is shipped with PHP. Other PHP options change how PHP is served.

PHP Options

The following options affect on how PHP is served:

Option
Description
CGI This option is enabled by default. If you disable this option, a PHP CLI binary will be installed in both the /usr/bin/php and/usr/local/bin/php directories. When no CGI binary is available, your server will be unable to serve PHP requests without DSO.
DiscardPath This security option is provided by PHP, but we do not recommend it. If you enable this module, PHP will be unable to function with CGI or FCGID. However, DSO and SuPHP will be able to serve PHP.
FastCGI This option is one way to serve PHP. If you wish to use FastCGI, you must compile Apache with mod_fcgid support and PHP with FastCGI support. FastCGI may interfere with how PHP is served through CGI and suPHP. We recommend that you only enable this option if you will run PHP through mod_fcgid and understand that you must tune FasctCGI's performance.
ForceCGIRedirect This security option is provided by PHP. If you enable this option, PHP will have compatibility issues with CGI.
SafePHPCGI This option sets two flags for PHP that attempt to lock PHP to system php.ini files. This prevents users from the ability to use custom php.ini files when PHP is served through CGI. However, if you enable this option, you can use custom php.ini files if you run PHP with mod_suphp.
Versioning This option was intended to allow the same functionality as concurrent DSO patches; however, it does not work well and is not recommended by cPanel or PHP.

ESXI 5.x üzerinden MegaCLI kullanarak RAID logları alma

0

Gerekli Dosyalar:
http://www.lsi.com/downloads/Public/MegaRAID%20Common%20Files/8.07.07_MegaCLI.zip
Putty
WinSCP

1.Konsol üzerinden:

 

  • F2 Tuşuna basın ve sisteme log in olunuz.

  • Troubleshooting Options“ı seçininiz.

  • “Disable SSH” bölümüne gelip açılan ekrandan SSH’ı aktif ediniz

2. vSphere üzerinden:

  • Hostunuzu seçiniz

  • “Configuration“ seceneğini seçiniz.

  • Software“ yazan bölümden “Security Profile“ seçiniz.

  • Açılan sayfada Sağ üst köşeden Properties’i seçiniz :

  • Açılan bölümden önce SSH ve sonrasında sağ alt köşeden Options‘ı seçiniz.

  • SSH servisini start“ ile calıştırınız(log alım işlemi bittikten sonra yine deactive edebilirsiniz)

WinSCP ile Hosta bağlanın. File Protocol SCP ayarında olduğundan emin olalım.
İndirdiğiniz *zip dosyasini lütfen açınız ve VmwareMN olanı seçiniz.
VIB paketini ilgili hostun /tmp/ klasörüne kopyalayınız.

Putty ile sisteme bağlanıp log toplama:

Putty üzerinden Hostunuza bağlanınız.

  • Sisteme login olunuz
  • Cd /tmp ile tmp klasörüne giriniz
  • Ls komutuyla MegaCli-VIB package doğru klasörde mi diye kontrol ediniz.
  • Lütfen şu komutlari yazınız.
  • esxcli software vib install –v /tmp/vmware-esx-MegaCli-8.07.07.vib –no-sig-check
  • MegaCli hostunuza yüklenecektir.

Şimdi cd /opt/lsi/MegaCLi komutuyla MegaCLI klasörüne geçiniz.
Ls komutuyla MegaCLI“ ve libstore.so“ bilgisi klasörde mi diye kontrol ediniz.
Şimdi şu komut yazınız : ./MegaCli –FwTermLog –Dsply –aALL
Komut sonrası Raid controllerdan bir Output görebilirsiniz.

Sırada bu Outputu Textfile çevirme işleminde,
Lütfen şu komutu kullanınız: ./MegaCli –FwTermLog –Dsply –aALL > /tmp/lsi.txt
Şimdi /tmp klasöründe textfile bulabilirsiniz.

Teknik Uzmana yollayabileceğiniz başka önemli bilgiler:
./MegaCli -PDList -aALL > /tmp/disks.txt
Sistemde olan Harddisk, Firmware ve Boyut bilgileri içindir.
./MegaCli -LDInfo -LALL -aALL > /tmp/LDinfo.txt
Hangi RAID konfigürasyonu ve benzeri bilgiler içindir.
./MegaCli -AdpAllInfo -aALL > tmp/Adapterinfo.txt
RAID Controller ayarları içindir.
./MegaCli -AdpBbuCmd -aALL > /tmp/Battery.txt
Controller batarya bilgileri içindir.
./MegaCli -AdpEventLog -IncludeDeleted -f deleted.txt –aALL

RAID Controller kartın ilk çalıştırılıdığı günden,bugüne kadar bilgileri toplar.
Dikkat “deleted.txt” daima MegaCli klasörüne kayit edilir, bunu değiştirmek mümkün değildir.

 

Kaynak : http://de.community.dell.com/techcenter/extras/w/wiki/1279.esxi-5-x-uzerinden-megacli-kullanarak-raid-loglar-alma.aspx

 

Go to Top