RSS

Category Archives: Bilgisayar

PHP CLI define configuration directive

Komut satırından (CLI: Command Line Interface) PHP scripti çalıştırırken, scriptin sağlıklı çalışması için daha yüksek memory limit ihtiyacınız olabilir. Bunu “-d” yada “-define” parametresini komutta kullanarak yapabilirsiniz.
Bu seçeneği kullanarak diğer php.ini’deki ayarları sadece bu komutla çalıştırdığınızda geçerli olmak üzere değişiklik de yapabilirsiniz. Örnek olarak memory_limit değişkenini şöyle değiştiriyoruz:
php -d memory_limit=128M script.php
Bu seçenek size sadece php.ini içinde izin verilen herhangi bir konfigürasyon seçeneğini ayarlamanıza olanak verir.

Php Manual’da -d foo[=bar] Define INI entry foo with value 'bar' şeklinde açıklanıyor.

 

Posted by on 25 Ocak 2016 in Bilgisayar, Programlama

Leave a comment

Üst Menüye Tıklamayı Engelleme

var $j = jQuery.noConflict();
$j(document).ready(function () {
    $j("li:has(ul)").children("a").click(function () {
        return false;
    });
});
 

Posted by on 15 Şubat 2015 in Web

Leave a comment

Resolved: windows failed to load because the system registry file is missing or corrupt

The problem is

Windows could not start because the following file (\WINDOWS\SYSTEM32\CONFIG\SYSTEM) is missing or corrupt:


Windows failed to start. A recent hardware or software change might be the cause. To fix problem:

1. insert your windows installation disc and restart your computer.
2. choose your language settings, and click next
3. click "repair your computer"

If yo do not have this disc, contact your administrator system administrator or computer manufacture for assistance.

file: \windows\system32\config\system
status: 0xc0000098
info : windows failed to load because the system registry file is missing or corrupt

In our case your windows is Windows 7

This problem is exactly the file “\Windows\system32\config\system” may be missing or corrupted and the windows is already have a backup for this file all you need is to copy the backup file to the the current one and restart like the following

With the Windows 7 CD or usb Key boot the system.
Open a command prompt in the recovery console. (Shift + F10)
go to file location (may be windows appear in D not C because usually there is 100 MB may be invisible for booting)

cd c:\Windows\system32\config
ren SYSTEM SYSTEM.BACKUP
copy regback\SYSTEM SYSTEM

Reboot the system.

 

Posted by on 13 Kasım 2014 in Bilgisayar

Leave a comment

Cpanel Log Konumları

cPanel logs most activity that happens on a server to log files so you can go back and review log entries for problems, instead of having to be on the server at the time of them happening.

This guide will cover the locations of the log files for things such as access logs, Apache web server logs, email logs, error logs, ftp logs, MySQL logs, and WHM logs.

If you’d like to have a poster of the 2013 cPanel logs location reference, you can request them from cPanel directly.

You can also view a digitial copy of this poster directly online at go.cPanel.net/logposter.

cPanel logs

Access logs and user actions /usr/local/cpanel/logs/access_log
Account transfers and misc. logs /var/cpanel/logs
Auditing log (account creations, deletions, etc) /var/cpanel/accounting.log
Backup logs /usr/local/cpanel/logs/cpbackup
Brute force protection (cphulkd) log /usr/local/cpanel/logs/cphulkd.log
Cpanel dnsadmin dns clustering daemon /usr/local/cpanel/logs/dnsadmin_log
Cpanel taskqueue processing daemon /usr/local/cpanel/logs/queueprocd.log
DBmapping /usr/local/cpanel/logs/setupdbmap_log
EasyApache build logs /usr/local/cpanel/logs/easy/apache/
Error log /usr/local/cpanel/logs/error_log
Installation log /var/log/cpanel
License updates and errors /usr/local/cpanel/logs/license_log
Locale database modifications /usr/local/cpanel/logs/build_locale_database_log
Login errors (CPSRVD) /usr/local/cpanel/logs/login_log
Horde /var/cpanel/horde/log/
RoundCube /var/cpanel/roundcube/log/
SquirrelMail /var/cpanel/squirrelmail/
Panic log /usr/local/cpanel/logs/panic_log
Per account bandwidth history (Cached) /var/cpanel/bandwidth.cache/{USERNAME}
Per account bandwidth history (Human Readable) /var/cpanel/bandwidth/{USERNAME}
Service status logs /var/log/chkservd.log
Tailwatch driver tailwatchd log /usr/local/cpanel/logs/tailwatch_log
Update analysis reporting /usr/local/cpanel/logs/updated_analysis/{TIMESTAMP}.log
Update (UPCP) log /var/cpanel/updatelogs/updated.{TIMESTAMP}.log
WebDisk (CPDAVD) /usr/local/cpanel/logs/cpdavd_error_log
Website statistics log /usr/local/cpanel/logs/stats_log

cPanel access log

Access logs and user actions /usr/local/cpanel/logs/access_log

cPanel apache log

Apache restarts done through cPanel and WHM /usr/local/cpanel/logs/safeapcherestart_log
Domain access logs /usr/local/apache/domlogs/{DOMAIN}
Processing of log splitting /usr/local/cpanel/logs/splitlogs_log
suPHP audit log /usr/local/apache/logs/suphp_log
Web server and CGI application error log /usr/local/apache/logs/error_log

cPanel email log

Delivery and receipt log /var/log/exim_mainlog
Incoming mail queue /var/spool/exim/input/
Log of messages rejected based on ACLS or other policies /var/log/exim_rejectlog
Unexpected/Fatal error log /var/log/exim_paniclog
IMAP, POP login attempts, transactions, fatal errors and spam scoring /var/log/maillog /var/log/messages
Mailman /usr/local/cpanel/3rdparty/mailmain/logs

MySQL log

MySQL error log /var/lib/mysql/{SERVER_NAME}.err
MySQL slow query log (if enabled in my.cnf) /var/log/slowqueries

Cpanel’de problemlerin kaynakları için bu loglara bakabilirsiniz.

 

Posted by on 23 Ekim 2014 in Bilgisayar, Server

Leave a comment

Linux’ta Dosyaları büyüklüğe göre sıralamak

Bulunduğunuz dizindeki dosyaları ve klasörleri(alt klasörler dahil) büyüklüğüne göre sıralamak için aşagıkaki komutu kullanabilirsiniz.

du -s * | sort -nr | cut -f2- | xargs du -hs

 

Posted by on 24 Ağustos 2014 in Bilgisayar, Linux

Leave a comment