İyinet'e Hoşgeldiniz!

Türkiye'nin En Eski Webmaster Forum'una Hemen Kayıt Olun!

Kayıt Ol!

Server Requirement Error: register_globals is disabled in your PHP configuration

C0$kuN

0
İyinet Üyesi
Katılım
12 Haziran 2007
Mesajlar
168
Reaction score
0
Arkadaşlar http://www.sagabilgisayar.com/tr/ da çıkıyor


Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory.

Server'ın kullandığı php.ini den değişltiremem güvelik için

php.ini diye bir klasör açtım içine
Kod:
register_globals = on

gene aynı

.htaccess koyduğum ve içine register_globals = on yazdığım zaman ise
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


php versiyon 5.2.5
 

C0$kuN

0
İyinet Üyesi
Katılım
12 Haziran 2007
Mesajlar
168
Reaction score
0
htaccess içine onu koyuncada

http://www.sagabilgisayar.com/tr/


Kod:
Apache error_logs a baktım

[Thu Feb 14 20:59:50 2008] [alert] [client 88.243.27.80] /home2/sagabilg/public_html/.htaccess: Invalid command 'php_flag', perhaps mis-spelled or defined by a module not included in the server configuration


Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.



Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
 

iyinet

Root
Admin
Hosting Firması
Katılım
2 Eylül 2002
Mesajlar
5,030
Reaction score
73
Konum
Sakarya

C0$kuN

0
İyinet Üyesi
Katılım
12 Haziran 2007
Mesajlar
168
Reaction score
0
bu ELS script i --securepartitions : Secure /tmp, /var/tmp, and /dev/shm partitions (whether in /etc/fstab or not)

Bunların hepsini yapmıştı hepsini geri düzeltmek için sadece

chmod 777/tmp mi ?

Yaptım düzelmedi

hata da belirtilen php içinde 98. satırda return session_start();

149. satırda ise return session_save_path($path); var
 

iyinet

Root
Admin
Hosting Firması
Katılım
2 Eylül 2002
Mesajlar
5,030
Reaction score
73
Konum
Sakarya
Bunu ssh de calistirip ciktisini yazarmisin

ls -ltd /tmp /var/tmp /dev/shm
 

C0$kuN

0
İyinet Üyesi
Katılım
12 Haziran 2007
Mesajlar
168
Reaction score
0
session.save_path = "/dev/shm"

/dev/shm yi de yaptı kesin bundandır ):
 

C0$kuN

0
İyinet Üyesi
Katılım
12 Haziran 2007
Mesajlar
168
Reaction score
0
Bunu ssh de calistirip ciktisini yazarmisin

ls -ltd /tmp /var/tmp /dev/shm


Buyrun Hocam ;

Kod:
[root@linux ~]# ls -ltd /tmp /var/tmp /dev/shm
drwxrwxrwx 20 root root 102400 Feb 14 23:10 /tmp
drwxrwxrwx 20 root root 102400 Feb 14 23:10 /var/tmp
drwxr-xr-x  2 root root     40 Feb 12 11:51 /dev/shm
[root@linux ~]#
 

iyinet

Root
Admin
Hosting Firması
Katılım
2 Eylül 2002
Mesajlar
5,030
Reaction score
73
Konum
Sakarya
Ek olarak
chmod 777 /dev/shm

/dev/shm i hicbir program icin temp yada tmp alan olarak kullanmayin! Buna PHP ve MySQL de dahil!
 

visitistanbul

0
İyinet Üyesi
Katılım
20 Kasım 2006
Mesajlar
3,918
Reaction score
10
Konum
Bebek
İyinet sen bir ara php.ini dosyası oluşturmuştun bana onunla ilgili birşey olabilirmi acaba
 

C0$kuN

0
İyinet Üyesi
Katılım
12 Haziran 2007
Mesajlar
168
Reaction score
0
Ewet osCommerce hocam.

ve /tmp ile /dev/shm ve var/tmp 777 yapmıştık

Bunlara ne chmod vereyim bunlarla alakalı değil herhalde güvenlik için ?
 

iyinet

Root
Admin
Hosting Firması
Katılım
2 Eylül 2002
Mesajlar
5,030
Reaction score
73
Konum
Sakarya
Admin panelinden session bolumunde /tmp yerine tmp yazip bir denermisin.
 

C0$kuN

0
İyinet Üyesi
Katılım
12 Haziran 2007
Mesajlar
168
Reaction score
0
Hocam şaunda session storrage de sorun var birazdan bilgilendiricem sizi çözüldü böyle cözüldü veya cözülmedi diye
 

C0$kuN

0
İyinet Üyesi
Katılım
12 Haziran 2007
Mesajlar
168
Reaction score
0
Hocam Sorun şuymuş

/tmp 'yi root a bağlanmış bu yüzden nobody kullanıcısı okuyamıyormuş

nobody olarak değiştirdiğimizde sorun düzeldi Katagoriler gitti

DB sini tekrardan DUMP ettım Şuanda hiçbir problem yok /tmp ye 777 verdik den sonra böyle sorunla karşılaşan cPanel ise

ssh den /scripts/securetmp Yazıp

her soruya y ile (yes yani) cevap verin sonra sorun düzelecek

Teşekkür ediyorum yardımlarınız için farklı bir sorunuda beraber ögrenerek cözmüş olduk :)
 

Türkiye’nin ilk webmaster forum sitesi iyinet.com'da forum üyeleri tarafından yapılan tüm paylaşımlardan; Türk Ceza Kanunu’nun 20. Maddesinin, 5651 Sayılı Kanununun 4. maddesinin 2. fıkrasına göre, paylaşım yapan üyeler sorumludur.

Üst