Page 1 of 2 12 LastLast
Results 1 to 15 of 25

Thread: Problems with Compiling PHP 4.3.10 w/ Zend 2.5.7; .PHP websites do not load!

  1. #1
    Member
    Join Date
    Oct 2004
    Posts
    16

    Default Problems with Compiling PHP 4.3.10 w/ Zend 2.5.7; .PHP websites do not load!

    Hello.

    I just recently 'tried' to upgrade to PHP 4.3.10 due to the security vulnerabilities of 4.3.8. I have tried updating apache under "Update Apache," but it just broke my box.

    It updated fine, WHM shows a sucessful installation. However, I also did /scripts/installzendopt to install zend 2.5.7, and still sites with PHP do not load. They give a "download link" instead of showing the page. However, non-PHP pages display perfectly.

    If anyone can give me any tips on how to fix this problem, it will be appreciated!

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    You need to enable all the modules required by Php for your scripts to run without any problem.

    Good luck!
    Andy Reed
    CCNA, RHCE, and Ubuntu Technologist
    ServerTune.com

  3. #3
    Member
    Join Date
    Jan 2004
    Posts
    123

    Default

    AndyReed: I'd agree if his problem was likely to be missing modules.

    I've noticed this problem on a box I've just configured too and am busy trying to trouble shoot it - this is just adding fuel on the fire for me not liking cpanel (I do cpanel things for the benefit of others - my primary webservers don't have any control panels on at all!)


    EDIT: I should add that I'm having this problem without trying to use Zend - just got phpSuExec enabled. I'll post when I've worked out what's missing/gone wrong.

  4. #4
    Member
    Join Date
    Jan 2004
    Posts
    123

    Default

    I've noticed that even with 'skip apache build if up to date' unticked buildapache appears not to be rebuilding apache, just php. Which is irritating.

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    Are you rebuilding Apache via the prompt or WHM?
    Andy Reed
    CCNA, RHCE, and Ubuntu Technologist
    ServerTune.com

  6. #6
    Member
    Join Date
    Jan 2004
    Posts
    123

    Default

    Both. Both have the same effect (although the CLI version at least claimed to build apache when I pressed the big red button and reset all the apache configs - shame it "completed" in 3 seconds - a complete impossibility). Still working on it. Getting annoyed

  7. #7
    Member
    Join Date
    Jan 2004
    Posts
    123

    Default

    HAHAHAHA

    Option 8 breaks easyapache. Fantastic

    ---->2
    Can't locate config.pl in @INC (@INC contains: /usr/lib/perl5/5.8.4/i686-linux /usr/lib/perl5/5.8.4 /usr/lib/perl5/site_perl/5.8.4/i686-linux /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at ./buildapache line 93, <STDIN> line 1.
    ./bs: line 4: ./buildscript: No such file or directory
    Waiting for httpd to restart..............finished.


    httpd has failed, please contact the sysadmin.

    EDIT: Using a bigger hammer has now fixed easyapache.. Still no progress with apache yet
    Last edited by philb; 01-07-2005 at 09:01 PM.

  8. #8
    Member
    Join Date
    Oct 2004
    Posts
    16

    Default

    I just rolled back to PHP 4.3.9 because I couldn't solve my problem. I'll try your advice in a few days.

    PhilB, I'll be interested to know if you ever find the solution to this problem.

    Thanks!
    Last edited by arcane; 01-07-2005 at 09:12 PM.

  9. #9
    Member
    Join Date
    Jan 2004
    Posts
    123

    Default

    I should point out that this is all the more INFURIATING because I have another cpanel server running php 4.3.10 with phpsuexec ABSOLUTELY FINE. I've mirrored the options between the setup scripts and it simply will not work on the newer server.

    The only difference between the two systems is the new one is running the latest RELEASE build - the other is in the STABLE tree. I'm getting to the stage where I'm going to try downgrading to STABLE to see if it fixes it, though STABLE has had a couple of new releases since I last used easyapache which has no doubt completely SHAFTED things.

  10. #10
    Member
    Join Date
    Jan 2004
    Posts
    123

    Default

    Downgrading to Stable appears to have pretty much shafted everything update related.

    Seems that httpupdate.cpanel.net (which the update scripts are trying to use) is completely empty, or the update scripts are looking in the wrong place on the server for updates.

    Excellent stuff. Opening a support ticket for this gem, because I've had enough of trying to fix someone elses problem.

  11. #11
    Member Sinewy's Avatar
    Join Date
    May 2004
    Location
    Sydney, Australia
    Posts
    370

    Default

    the problem this person is having is related to MIME.

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

    Find the following:

    <IfModule mod_negotiation.c>
    LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
    </IfModule>

    Now below it add this:

    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .php3
    AddType application/x-httpd-php-source .phps
    AddType application/x-httpd-php .phtml

    Save and exit. Restart your httpd. This will fix your browser downloading the php file.

  12. #12
    Member
    Join Date
    Jan 2004
    Posts
    123

    Default

    Sinewy: This was of course one of the first things I checked when I was comparing config files between the two systems. All the Handler and Type directives are in apache's config on the new server and it still fails to operate correctly.

  13. #13
    Member
    Join Date
    Nov 2004
    Posts
    9

    Default

    yes there are still some problems with php 4.3.10, many of my clients are uncomfortable with it and some are comfortable , i dont know but those who are uncomfortable with 4.3.10 i roll back them to 4.3.9, so there problems were solved and all is fine

  14. #14
    Member
    Join Date
    Sep 2004
    Posts
    422

    Default

    If you are using phpsuexec then you need

    AddHandler application/x-httpd-php .php (at minimum)

    AddHandler, not AddType. Usually you would have both, but the AddHandler will be used if it is first in your apache config.

  15. #15
    Member
    Join Date
    Jan 2004
    Posts
    123

    Default

    DigitalN:

    Quote Originally Posted by philb
    All the Handler and Type directives are in apache's config on the new server and it still fails to operate correctly.
    Though I guess you were just correcting Sinewy anyway

Page 1 of 2 12 LastLast

Similar Threads

  1. php 5.1.4 and Zend Problems
    By Norman in forum cPanel & WHM Discussions
    Replies: 7
    Last Post: 05-25-2006, 03:35 PM
  2. Problems compiling Apache and php 4.4.1 \ 4.4.2
    By Mr_Stepfire in forum cPanel & WHM Discussions
    Replies: 8
    Last Post: 02-27-2006, 09:36 AM
  3. Problems compiling Sablot with PHP
    By sparek-3 in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 11-22-2005, 07:11 AM
  4. Compiling PHP with zend
    By csparks in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 10-01-2005, 06:06 AM