![]() | |
| |||||||
![]() | |
| Görüntüleme: 1012 - Cevaplar: 24
| LinkBack | Seçenekler | Stil |
| ||||
| php -i | grep php.ini yazarak php.ini dosyamızın nerede olduğunu buluruz. pico, nano yada herhangi bir editör ile php.ini dosyasını acarız ve safe_mode = On ayarını safe_mode = Off yaparız. ardından apache restart attığımızda devreye girer değişiklik. |
| ||||
| Bunu tavsiye etmem sunucunun safe modunu açmayın açarsanız c99 vb birçok expolite izin vermiş olacaksınız buda sunucuda büyük bir açık olur bunun yerine tek domainin safemodunu açın bunu yapmak içinde SSH ile root girişi yapın php.ini dosyanıza giriş yapın ctrl w ile arama yapın domain adını örnek siteadı.com <VirtualHost 127.0.0.1> ServerAlias www.localhost.com localhost.com ServerAdmin webmaster@localhost DocumentRoot /home/localhost/public_html BytesLog domlogs/localhost-bytes_log <IfModule mod_userdir.c> UserDir disabled UserDir enabled localhost </IfModule> <IfModule mod_php4.c> php_admin_value open_basedir "/home/localhost/:/usr/lib/php:/usr/local/lib/php:/t$ </IfModule> ServerName www.localhost User heroyun Group heroyun CustomLog domlogs/localhost.com combined ScriptAlias /cgi-bin/ /home/localhost/public_html/cgi-bin/ </VirtualHost> DocumentRoot /home/localhost/public_html BytesLog domlogs/localhost-bytes_log üstteki 2 satırın arasına php_admin_flag safe_mode 0 yazın yani DocumentRoot /home/localhost/public_html php_admin_flag safe_mode 0 BytesLog domlogs/localhost-bytes_log olsun sonra apacheye resart atın. Kolay gelsin |
| ||||
| Arkadaslar php.ini yi buldum ancak daha evvelki serverlerimde pico php.ini yazdigimda o editör aciliyordu ama bu yeni serverde acilmiyor malesefe alpha563:~ # cd /etc/php5/apache2 alpha563:/etc/php5/apache2 # dir insgesamt 44 -rw-r--r-- 1 root root 44383 2007-05-27 21:48 php.ini alpha563:/etc/php5/apache2 # pico php.ini -bash: pico: command not found alpha563:/etc/php5/apache2 # sanirim bide vi editör var üzerinde ama onu daha önce hic kullanmadim. Yeniden pico ile calisma sansim yokmu acaba ? |
| ||||
| alpha563:~ # wget "ftp://ftp.cac.washington.edu/pine/pine-4.64-1.i386.rpm";rpm - ivh pine-4.64-1.i386.rpm; --11:44:35-- ftp://ftp.cac.washington.edu/pine/pine-4.64-1.i386.rpm => `pine-4.64-1.i386.rpm' Auflösen des Hostnamen »ftp.cac.washington.edu«.... 140.142.3.249, 140.142.15 .201 Verbindungsaufbau zu ftp.cac.washington.edu|140.142.3.249|:21... verbunden. Anmelden als anonymous ... Angemeldet! ==> SYST ... fertig. ==> PWD ... fertig. ==> TYPE I ... fertig. ==> CWD /pine ... fertig. ==> PASV ... fertig. ==> RETR pine-4.64-1.i386.rpm ... fertig. Länge: 3.125.693 (3.0M) (unmaÃgeblich) 100%[====================================>] 3.125.693 810.91K/s ETA 00:00 11:44:43 (667.86 KB/s) - »pine-4.64-1.i386.rpm« gespeichert [3125693] error: Failed dependencies: libcrypto.so.4 is needed by pine-4.64-1.i386 libldap.so.2 is needed by pine-4.64-1.i386 libssl.so.4 is needed by pine-4.64-1.i386 alpha563:~ # apt-get install pico -bash: apt-get: command not found alpha563:~ # rpm -ql pine package pine is not installed alpha563:~ # fertig=finish |
![]() |
| Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir) | |
| Seçenekler | |
| Stil | |
| |
Benzer Konular | ||||
| Konu | Konuyu Başlatan | Forum | Cevaplar | Son Mesaj |
| safe mod patch (alıntı) | ugorur | Joomla | 2 | 06-02-2008 18:02:49 |
| Linux Server- Safe Mode OFF Güvenlik | 0xyGen | Linux | 0 | 07-08-2007 10:34:57 |
| GD Library Kurulumu | Crazy_Blood | Webmaster Genel | 11 | 22-06-2007 18:59:46 |
| safe mod hakkinda | whois | WHM / Cpanel | 9 | 31-05-2007 15:38:17 |