PHP Binary ERROR installing ISPConfig - CentOS4.6

Discussion in 'Installation/Configuration' started by Superman859, Mar 9, 2008.

  1. Superman859

    Superman859 New Member

    Quick background / goals: I am installing CentOS4 to a VM, because I have a live server running CentOS4 and wish to update to php5. Seems like an easy update, but everywhere I read says you need to test your scripts first. So I thought I'd install CentOS4 on a VM and try to copy my files over, make sure they work, and then do a test update and make sure everything still works. I would like to do this all on localhost (or at least from the same home network somehow) since I wouldn't know where to begin with actually putting this new CentOS4 server live on the web.

    ---

    I followed the steps in the perfect server setup CentOS4.6 almost exactly as mentioned. The only thing I changed was I have it set to dhcp instead of static IP as I couldn't figure out how to get the internet connection working with static. Since this is just for my own testing, I figured dhcp would be ok. Other than that, everything worked exactly as planned except setting passwords for mysql, as the second command required the server name and I didn't set one in the CentOS4 install.

    So the guide worked great, I think. However, we get to the ISPConfig issue.

    Near the end it ran into some errors regarding the version of PHP. There was another post about the same issue nearby, although closed and redirected to a continued topic. I've logged the install of ISPConfig since it will list any errors. Everything looks fine until the end. Details below.

    Any tips on getting this installed would be great. Or if what I am doing will be useless in meeting my goals for figuring out if updating php4 to php5 on a live server will cause any problems, please let me know. The live server is with a hosted service on a virtual dedicated account, running CentOS4 and Plesk 8.2.1 as the control panel. I don't really know much about setting up servers and how they actually work - I just use the one I'm paying monthly for.


    I've got the full log available from the very beginning (tar ispconfig...) if I need to post it. Couldn't upload it as it's 900kb in size, but I can upload it somewhere else if necessary. For now, the errors are posted below. Everything else seems fine.
    Code:
    make[1]: Leaving directory `/tmp/install_ispconfig/compile_aps/apache_1.3.41'
    make[1]: Entering directory `/tmp/install_ispconfig/compile_aps/apache_1.3.41'
    +---------------------------------------------------------------------+
    | Before you install the package you now should prepare the SSL       |
    | certificate system by running the 'make certificate' command.       |
    | For different situations the following variants are provided:       |
    |                                                                     |
    | % make certificate TYPE=dummy    (dummy self-signed Snake Oil cert) |
    | % make certificate TYPE=test     (test cert signed by Snake Oil CA) |
    | % make certificate TYPE=custom   (custom cert signed by own CA)     |
    | % make certificate TYPE=existing (existing cert)                    |
    |        CRT=/path/to/your.crt [KEY=/path/to/your.key]                |
    |                                                                     |
    | Use TYPE=dummy    when you're a  vendor package maintainer,         |
    | the TYPE=test     when you're an admin but want to do tests only,   |
    | the TYPE=custom   when you're an admin willing to run a real server |
    | and TYPE=existing when you're an admin who upgrades a server.       |
    | (The default is TYPE=test)                                          |
    |                                                                     |
    | Additionally add ALGO=RSA (default) or ALGO=DSA to select           |
    | the signature algorithm used for the generated certificate.         |
    |                                                                     |
    | Use 'make certificate VIEW=1' to display the generated data.        |
    |                                                                     |
    | Thanks for using Apache & mod_ssl.       Ralf S. Engelschall        |
    |                                          [email protected]        |
    |                                          www.engelschall.com        |
    +---------------------------------------------------------------------+
    make[1]: Leaving directory `/tmp/install_ispconfig/compile_aps/apache_1.3.41'
    <=== src
    make[1]: Entering directory `/tmp/install_ispconfig/compile_aps/apache_1.3.41/src'
    SSL Certificate Generation Utility (mkcert.sh)
    Copyright (c) 1998-2000 Ralf S. Engelschall, All Rights Reserved.
    
    Generating custom certificate signed by own CA [CUSTOM]
    ______________________________________________________________________
    
    STEP 0: Decide the signature algorithm used for certificates
    The generated X.509 certificates can contain either
    RSA or DSA based ingredients. Select the one you want to use.
    Signature Algorithm ((R)SA or (D)SA) [R]:
    ______________________________________________________________________
    
    STEP 1: Generating RSA private key for CA (1024 bit) [ca.key]
    117529 semi-random bytes loaded
    Generating RSA private key, 1024 bit long modulus
    ...................++++++
    .......++++++
    e is 65537 (0x10001)
    ______________________________________________________________________
    
    STEP 2: Generating X.509 certificate signing request for CA [ca.csr]
    You are about to be asked to enter information that will be incorporated
    into your certificate request.
    What you are about to enter is what is called a Distinguished Name or a DN.
    There are quite a few fields but you can leave some blank
    For some fields there will be a default value,
    If you enter '.', the field will be left blank.
    -----
    1. Country Name             (2 letter code) [XY]:US
    2. State or Province Name   (full name)     [Snake Desert]:Georgia
    3. Locality Name            (eg, city)      [Snake Town]:.
    4. Organization Name        (eg, company)   [Snake Oil, Ltd]:.
    5. Organizational Unit Name (eg, section)   [Certificate Authority]:.
    6. Common Name              (eg, CA name)   [Snake Oil CA]:.
    7. Email Address            (eg, name@FQDN) [[email protected]]:.
    8. Certificate Validity     (days)          [365]:.
    ______________________________________________________________________
    
    STEP 3: Generating X.509 certificate for CA signed by itself [ca.crt]
    Certificate Version (1 or 3) [3]:
    bad number of days
    usage: x509 args
     -inform arg     - input format - default PEM (one of DER, NET or PEM)
     -outform arg    - output format - default PEM (one of DER, NET or PEM)
     -keyform arg    - private key format - default PEM
     -CAform arg     - CA format - default PEM
     -CAkeyform arg  - CA key format - default PEM
     -in arg         - input file - default stdin
     -out arg        - output file - default stdout
     -passin arg     - private key password source
     -serial         - print serial number value
     -hash           - print hash value
     -subject        - print subject DN
     -issuer         - print issuer DN
     -email          - print email address(es)
     -startdate      - notBefore field
     -enddate        - notAfter field
     -purpose        - print out certificate purposes
     -dates          - both Before and After dates
     -modulus        - print the RSA key modulus
     -pubkey         - output the public key
     -fingerprint    - print the certificate fingerprint
     -alias          - output certificate alias
     -noout          - no certificate output
     -ocspid         - print OCSP hash values for the subject name and public key
     -trustout       - output a "trusted" certificate
     -clrtrust       - clear all trusted purposes
     -clrreject      - clear all rejected purposes
     -addtrust arg   - trust certificate for a given purpose
     -addreject arg  - reject certificate for a given purpose
     -setalias arg   - set certificate alias
     -days arg       - How long till expiry of a signed certificate - def 30 days
     -checkend arg   - check whether the cert expires in the next arg seconds
                       exit 1 if so, 0 if not
     -signkey arg    - self sign cert with arg
     -x509toreq      - output a certification request object
     -req            - input is a certificate request, sign and output.
     -CA arg         - set the CA certificate, must be PEM format.
     -CAkey arg      - set the CA key, must be PEM format
                       missing, it is assumed to be in the CA file.
     -CAcreateserial - create serial number file if it does not exist
     -CAserial arg   - serial file
     -set_serial     - serial number to use
     -text           - print the certificate in text form
     -C              - print out C code forms
     -md2/-md5/-sha1/-mdc2 - digest to use
     -extfile        - configuration file with X509V3 extensions to add
     -extensions     - section from config file with X509V3 extensions to add
     -clrext         - delete extensions before signing and input certificate
     -nameopt arg    - various certificate name options
     -engine e       - use engine e, possibly a hardware device.
     -certopt arg    - various certificate text options
    mkcert.sh:Error: Failed to generate self-signed CA certificate
    make[1]: *** [certificate] Error 1
    make[1]: Leaving directory `/tmp/install_ispconfig/compile_aps/apache_1.3.41/src'
    make: *** [certificate] Error 2
    ERROR: Could not make certificate for Apache
    cd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    mv: cannot stat `binaries/aps.tar.gz': No such file or directory
    mv: cannot stat `binaries/spamassassin.tar.gz': No such file or directory
    mv: cannot stat `binaries/uudeview.tar.gz': No such file or directory
    mv: cannot stat `binaries/clamav.tar.gz': No such file or directory
    mv: cannot stat `binaries/cronolog': No such file or directory
    mv: cannot stat `binaries/cronosplit': No such file or directory
    mv: cannot stat `binaries/ispconfig_tcpserver': No such file or directory
    mv: cannot stat `binaries/zip': No such file or directory
    mv: cannot stat `binaries/unzip': No such file or directory
    tar: spamassassin.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    mv: cannot stat `spamassassin': No such file or directory
    tar: uudeview.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    mv: cannot stat `uudeview': No such file or directory
    tar: clamav.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    mv: cannot stat `clamav': No such file or directory
    tar: aps.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    ./setup2: line 873: ispconfig_tmp/php/bin/php: No such file or directory
    ERROR: The PHP binary coming with ISPConfig does not work properly on your system! The installation routine stops here!
    [root@localhost install_ispconfig]# exit
    exit
    
    Script done on Sat 08 Mar 2008 05:20:01 PM EST
    EDIT: As I've seen elsewhere, I did run yum update zlib. It says there are no changes to be made. I'm pretty sure everything is updated and working properly, as everything followed the guide perfectly without any errors along the way (except for having trouble setting that mysql password)
     
    Last edited: Mar 9, 2008
  2. falko

    falko Super Moderator Howtoforge Staff

    The problem is the dot you entered when you were asked for the certificate details. Please just hit enter to accept all the default values, and the installation should go ok.
     
  3. Superman859

    Superman859 New Member

    Hmm..I will try it out. I thought I saw it say put a dot if you want to leave the field blank, but that may have been another portion of the script.
     
  4. Superman859

    Superman859 New Member

    That did the trick! It installed correctly, although I wasn't sure about some of the details it started asking later on, such as mysql server and things like that.

    If I want to just create this CentOS4 virtual machine so that I can test stuff out on it before my live server, what would you suggest doing for the configuration? I originally thought about doing localhost and things like that, but it got confusing and am not sure if I did it right.

    Ideally I would like to type in some IP address (it doesn't have to be external, just applicable to my virtual machines) and open the control panel. I guess I would like to have a virtual network from windows to centos4 (both VMs) and access the CentOS4 control panel ispconfig through the Windows OS, as that is how I do everything with Plesk. I could log in to CentOS4 instead of doing ssh.

    Anyways, I would like to set up the virtual network so that those two VMs behave as my computer and my live server do. I don't care if anyone else has access to it with a static IP, but I need to be able to access it from an OS with a GUI and browser (such as windows). I'm just not sure how to configure it all with VMs or how to do the IP addresses for them. I originally tried a static IP (same as in the perfect setup example) when installing CentOS but couldn't connect to the internet to download updates via yum. I'd like to use DHCP so I have access to the internet, but still need access to that VM from another somehow...I don't know...I'm learning at least!

    Thanks for the ispconfig help. It installed, but I may need to redo it once I figure out how I should actually configure everything such as the mysql server, domain, etc.
     
  5. falko

    falko Super Moderator Howtoforge Staff

Share This Page