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

php/Modernbill Question

Discussion in 'Plesk for Linux - 8.x and Older' started by phoenixisp, Jun 26, 2005.

  1. phoenixisp

    phoenixisp Silver Pleskian

    27
    57%
    Joined:
    Feb 2, 2002
    Messages:
    840
    Likes Received:
    0
    I have setup one server with RH9, Plesk 7.5.3 and Modernbill and everything works well. But I tried to setup another one and have run into a problem.

    When I try to run the install script using the browser I get this error:

    Parse error: parse error in /home/httpd/vhosts/secure.domain.com/httpsdocs/modernbill/install_v4/index.php on line 89

    I have Zend installed and I think that's where my problem is. I inserted a info.php page and noticed a difference in the configuration file path.

    On the server that works it's "/etc/php.ini"

    On the one that doesn't it's "/usr/local/Zend/etc/php.ini"

    What would cause this and how do I fix it?

    Thanks,

    Sonny
     
  2. tiredofchex

    tiredofchex Guest

    0
     
    make sure /etc/php.ini is linked to /usr/local/zend/php.ini. You can do this like so

    login through ssh as root
    mv /etc/php.ini /etc/php.ini`date -I`
    ln -s /usr/local/Zend/php.ini /etc/

    service httpd restart
     
  3. phoenixisp

    phoenixisp Silver Pleskian

    27
    57%
    Joined:
    Feb 2, 2002
    Messages:
    840
    Likes Received:
    0
    That didn't go well. When i did:

    mv /etc/php.ini /etc/php.ini`date -I`


    I got :

    bash: command substitution: line 2: syntax error: unexpected end of file
    mv: '/etc/php.ini' and '/etc/php.ini' are the same file

    And if I try:

    ln -s /usr/local/Zend/php.ini /etc/

    I get:

    ln: `/etc//php.ini': file exists
     
  4. jamesyeeoc

    jamesyeeoc Guest

    0
     
    Just do:

    mv /etc/php.ini /etc/php.ini.backup
    ln -s /usr/local/Zend/php.ini /etc/

    basically he wants you to backup the original php.ini file to another name, then symlink the one in the /usr/local/Zend/ to /etc/

    Also make sure the path name is correct for your system, it should be, but who wants to 'assume'?

    If you get an error on the second command, then do a:

    locate php.ini

    and you will see all occurances of php.ini on the system, and their paths.
     
  5. phoenixisp

    phoenixisp Silver Pleskian

    27
    57%
    Joined:
    Feb 2, 2002
    Messages:
    840
    Likes Received:
    0
    Egads!!

    Just for grins I retried the Modernbill install and it's working, go figure!!!

    Thanks tiredofchex, even with the errors above it seems to have worked.
     
  6. tiredofchex

    tiredofchex Guest

    0
     
    no problem =)
     
Loading...