Apache » Soru ve Cevaplar

php5 internal server hatası

http://forum.whmdestek.com/

Geri git   WHM cPanel Destek Platformu » Site, Sunucu Sorunlarınız ve Çözümleri » Apache » Soru ve Cevaplar
 
Türkiye' nin Webmaster Sitesi
Webmaster Araçları, Bilgi ve hizmet alışverişi
Webmaster.com.TR
Reklam Alın!
Günlük 5k tekil ve üzeri sitelerinize reklam!
Fixreklam
Firma tanıtımı!
Firmanızın reklamını hemen yapın!
Reklamlar

Cevapla
 
LinkBack Seçenekler Stil
  #1  
Alt 02.03.08, 00:14
WHM VIP Member
 
Üyelik tarihi: Feb 2008
Nerden: İzmir
Yaş: 24
Mesajlar: 351
Tecrübe Puanı: 1001
darkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond repute
Unhappy php5 internal server hatası

Merhaba arkadaşlar,

Bayadır araştırıyorum php5 kurmak istiyordum sunucuma, ama beraberinde php4 ün de çalışmasını istiyordum. Nette döndüm durdum şöyle bir kılavuz buldum.

Kod:
   1. Compiler check

          /scripts/checkccompiler
          rm -rf /home/cpphpbuild
          mkdir /home/cpphpbuild
          cd /home/cpphpbuild

   2. Download and extract php

          wget http://us2.php.net/get/php-5.2.4.tar.gz/from/this/mirror
          tar zfx php-5.2.4.tar.gz
          cd php-5.2.4

   3. Configure and build the php installation (credits go to elix for an excellent work)

          echo “#define HAVE_SENDMAIL 1″ >> /home/cpphpbuild/php-5.2.4/main/php_config.h
          wget http://www.elix.us/tutorials/php5.gen.cpanel
          chmod 700 php5.gen.cpanel
          ./php5.gen.cpanel
          make
          make install

   4. Moving the files and finishing the configuration

          cp -f /usr/local/php5/bin/php5 /usr/local/cpanel/cgi-sys/php5
          chown root:wheel /usr/local/cpanel/cgi-sys/php5

          cp -p /home/cpphpbuild/php-5.2.4/php.ini-recommended /usr/local/php5/lib/php.ini
          chown root.root /usr/local/php5/lib/php.ini
          chmod 644 /usr/local/php5/lib/php.ini

          echo “cgi.fix_pathinfo = 1 ; needed for CGI/FastCGI mode” >> /usr/local/php5/lib/php.ini

   5. Now we have to add a few lines to the httpd.conf file

          pico /usr/local/apache/conf/httpd.conf

      Add in the section – “index.php5″ before index.php4
      Add after “AddType application/x-httpd-php .phtml”

          Action application/x-httpd-php5 “/cgi-sys/php5″
          AddHandler application/x-httpd-php5 .php5

   6. Test the installation

          service httpd configtest

      If you get any errors please check that you done all the steps properly.
      If everything is ok you can now restart apache
   7. Restart apache

          service httpd restart


Bunu harfiyen uyguladım, her şey düzgün çalışıyor php5 hariç.

info.php5 diye sayfa yaratıp içine phpinfo kodunu yazdım, upload ettim fakat internal server error verdi. Sizce neden olabilir? Yukarıdaki basamaklarda hata mı var?

Sunucum Centos 5 (32 Bit) cPanel 11.18.1-S20683

Şimdiden teşekkürler.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Alıntı ile Cevapla
  #2  
Alt 02.03.08, 01:12
WHM VIP Member
 
Üyelik tarihi: Feb 2008
Nerden: İzmir
Yaş: 24
Mesajlar: 351
Tecrübe Puanı: 1001
darkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond repute
Biraz araştırdım, dosya izinleriyle alakalıymış. Ssh de dosya sahiplerine ve izinlerine nasıl bakabilirim acaba?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Alıntı ile Cevapla
  #3  
Alt 02.03.08, 01:32
sinangunay - ait Kullanıcı Resmi (Avatar)
FULL DESTEK SUNUCULAR
 
Üyelik tarihi: Jul 2007
Nerden: biLi biLi boP
Yaş: 27
Mesajlar: 1.663
Tecrübe Puanı: 1073
sinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond repute
Yeni easyapache ile artık bunlara gerek kalmadı. Yapmanız gereken, EasyApache ile derleme yaparken iki sürümüde seçerek WHM'de SuExec ayarlarına girip php4 için cgi, php5 için dso seçip suexec'i ON hale getirmeniz yeterlidir..
__________________
-----------------------------------------------------------------------------------------
>> LÜTFEN ÜCRETSİZ DESTEK TALEP ETMEK İÇİN MSN ADRESLERİMİZİ EKLEMEYİNİZ. HER TÜRLÜ ÜCRETSİZ DESTEK İÇİN FORUMLARIMIZI KULLANINIZ. TEŞEKKÜRLER <<
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Alıntı ile Cevapla
  #4  
Alt 02.03.08, 01:33
sinangunay - ait Kullanıcı Resmi (Avatar)
FULL DESTEK SUNUCULAR
 
Üyelik tarihi: Jul 2007
Nerden: biLi biLi boP
Yaş: 27
Mesajlar: 1.663
Tecrübe Puanı: 1073
sinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond repute
Forumda daha önce çok yazıldı sanıyorum..


chmod 755 *
chown USER.USER *

public_html içine girip bunları yazın düzelsin.
Bu arada php5info sayfasını root olarak düzenlediyseniz çalışmaması normaldir.


Alıntı:
darkwinter yazmış Mesajı göster
Biraz araştırdım, dosya izinleriyle alakalıymış. Ssh de dosya sahiplerine ve izinlerine nasıl bakabilirim acaba?
__________________
-----------------------------------------------------------------------------------------
>> LÜTFEN ÜCRETSİZ DESTEK TALEP ETMEK İÇİN MSN ADRESLERİMİZİ EKLEMEYİNİZ. HER TÜRLÜ ÜCRETSİZ DESTEK İÇİN FORUMLARIMIZI KULLANINIZ. TEŞEKKÜRLER <<
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Alıntı ile Cevapla
  #5  
Alt 02.03.08, 11:18
WHM VIP Member
 
Üyelik tarihi: Feb 2008
Nerden: İzmir
Yaş: 24
Mesajlar: 351
Tecrübe Puanı: 1001
darkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond repute
Merhaba Sinan Bey;

Sizin dediğiniz gibi yaptım

php5 çok güzel çalışıyor. Fakat bu sefer de php4 olan bütün sitelerde bu hata çıktı.

Warning: Unexpected character in input: '' (ASCII=8) state=1 in /usr/local/cpanel/cgi-sys/php4 on line 1427

Parse error: syntax error, unexpected T_STRING in /usr/local/cpanel/cgi-sys/php4 on line 1427

Nasıl düzeltebilirim acaba?

Şimdiden teşekkürler.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Alıntı ile Cevapla
  #6  
Alt 02.03.08, 11:26
WHM VIP Member
 
Üyelik tarihi: Feb 2008
Nerden: İzmir
Yaş: 24
Mesajlar: 351
Tecrübe Puanı: 1001
darkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond repute
Alıntı:
sinangunay yazmış Mesajı göster
Yeni easyapache ile artık bunlara gerek kalmadı. Yapmanız gereken, EasyApache ile derleme yaparken iki sürümüde seçerek WHM'de SuExec ayarlarına girip php4 için cgi, php5 için dso seçip suexec'i ON hale getirmeniz yeterlidir..
Tam tersini yaptım Sinan Bey,

Ancak o zaman çalıştı, php4 için dso; php5 için cgi seçtim default 4 yapıp SuExec 'i de açtım şaun çalışıyor.

Ama bu şekilde yapmamın sakıncası olabilir mi?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Alıntı ile Cevapla
  #7  
Alt 02.03.08, 11:51
WHM VIP Member
 
Üyelik tarihi: Feb 2008
Nerden: İzmir
Yaş: 24
Mesajlar: 351
Tecrübe Puanı: 1001
darkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond repute
Şunu da ekleyeyim

Apache 1.3.41 şuan.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Alıntı ile Cevapla
  #8  
Alt 02.03.08, 15:41
sinangunay - ait Kullanıcı Resmi (Avatar)
FULL DESTEK SUNUCULAR
 
Üyelik tarihi: Jul 2007
Nerden: biLi biLi boP
Yaş: 27
Mesajlar: 1.663
Tecrübe Puanı: 1073
sinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond repute
Hayır hiçbir sakıncası olmaz. Yukarıda yazdığım ile sizin yaptığınız derlemeden doğan değişiklik. Ben 5'i cgi olarak derlemiştim siz dso olarak derlemişsiniz sorun yok
__________________
-----------------------------------------------------------------------------------------
>> LÜTFEN ÜCRETSİZ DESTEK TALEP ETMEK İÇİN MSN ADRESLERİMİZİ EKLEMEYİNİZ. HER TÜRLÜ ÜCRETSİZ DESTEK İÇİN FORUMLARIMIZI KULLANINIZ. TEŞEKKÜRLER <<
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Alıntı ile Cevapla
  #9  
Alt 02.03.08, 15:58
WHM VIP Member
 
Üyelik tarihi: Feb 2008
Nerden: İzmir
Yaş: 24
Mesajlar: 351
Tecrübe Puanı: 1001
darkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond reputedarkwinter has a reputation beyond repute
Çok teşekkürler, elinize sağlık
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Alıntı ile Cevapla
Cevapla


Seçenekler
Stil

Yetkileriniz
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-KodlarıKapalı
Trackbacks are Açık
Pingbacks are Açık
Refbacks are Açık

Benzer Konular
Konu Konuyu Başlatan Forum Cevap Son Mesaj
Internal Server Error hatası omer44 Soru ve Cevaplar 6 23.02.08 13:40
Php 4 & Php5 WartecH Soru ve Cevaplar 4 27.01.08 17:15
internal server error hatası (apache2) bluevean Soru ve Cevaplar 2 09.11.07 21:37
Internal Server Error hatası remsa Soru ve Cevaplar 7 08.11.07 02:55
IE de "HTTP 500 internal server error" tespara Makaleler 0 25.06.07 21:01


Sign up for PayPal and start accepting credit card payments instantly.

Navigasyon
Menü