1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Problem recompiling PHP 5.2.5-4.art

Discussion in 'Plesk for Linux - 8.x and Older' started by madcat, Apr 29, 2008.

  1. madcat

    madcat Guest

    0
     
    Hello everyone.

    I am currently trying to follow along with http://kb.odin.com/en/260 , and have encountered a problem during the PHP recompile phase.

    Running rpmbuild --rebuild php-5.2.5-4.art.src.rpm , I end up with:

    And it just stops there. It doesn't give me a command prompt, it just stops completely, and I have to press CNTRL-C to get a prompt. Running 'top' in another SSH shell, I can see that the load is close to zero when it is stopped, so it is not doing anything.

    After pressing CNTRL-C, I went to the directory /usr/src/redhat/BUILD/php-5.2.5/build-apache/modules and it was empty. I was able to find the .so that it's looking for in /usr/src/redhat/BUILD/php-5.2.5/build-cgi/modules .

    Anybody know how to fix this? Last time I did http://kb.odin.com/en/260 , I ended up having to modify the SPEC file and compile it using 'rpmbuild -bb php.spec'. Perhaps the situation is similar this time, but I'm not sure what to modify in the SPEC file, if that even is the solution.

    Also, I had to download and install pcre-6.6-1.1.src.rpm, using "rpmbuild --rebuild http://kb.odin.com/en/260", as when I initially tried to install PHP, it gave me an error stating that my PCRE version was too old.

    I know that http://kb.odin.com/en/260 uses "php-4.3.10-2.4.src.rpm". I am hoping I don't have to downgrade the version of PHP I am using just to make this work.

    Thanks.
     
  2. madcat

    madcat Guest

    0
     
    I'm going to re-insert all the text above except the output, as it appears a formating error of some sort is preventing the last few words of each line from being displayed.

    Also, the system is: CentOS 4.6 with http://www.atomicrocketturtle.com/Joomla/ yum repository setup and yum updated.

    -------------------------------------------------------

    Hello everyone.

    I am currently trying to follow along with http://kb.odin.com/en/260 , and have encountered a problem during the PHP recompile phase.

    Running rpmbuild --rebuild php-5.2.5-4.art.src.rpm , I end up with:

    (See above)

    And it just stops there. It doesn't give me a command prompt, it just stops completely, and I have to press CNTRL-C to get a prompt. Running 'top' in another SSH shell, I can see that the load is close to zero when it is stopped, so it is not doing anything.

    After pressing CNTRL-C, I went to the directory /usr/src/redhat/BUILD/php-5.2.5/build-apache/modules and it was empty. I was able to find the .so that it's looking for in /usr/src/redhat/BUILD/php-5.2.5/build-cgi/modules .

    Anybody know how to fix this? Last time I did http://kb.odin.com/en/260 , I ended up having to modify the SPEC file and compile it using 'rpmbuild -bb php.spec'. Perhaps the situation is similar this time, but I'm not sure what to modify in the SPEC file, if that even is the solution.

    Also, I had to download and install pcre-6.6-1.1.src.rpm, using "rpmbuild --rebuild", as when I initially tried to install PHP, it gave me an error stating that my PCRE version was too old.

    I know that http://kb.odin.com/en/260 uses "php-4.3.10-2.4.src.rpm". I am hoping I don't have to downgrade the version of PHP I am using just to make this work.

    Thanks.
     
  3. madcat

    madcat Guest

    0
     
    Fixed my own issue: Turns out I needed to remove the current PHP installation.

    eg:

    rpm --nodeps -e php-common php-pdo php-imap php-mbstring php-cli php-pear php-gd php-xml php-devel php php-mysql

    * WARNING: Be careful running the above command on a live webserver, as it will uninstall your current PHP installation.
     
Loading...