Error during install after reinstalling PHP5.

  • I need to purge php5 and apache cause I messed up the system.


    So I did this


    Shell-Script
    1. sudo apt-get remove --purge php5-*




    Deleting all php5 package


    And


    Shell-Script
    1. sudo apt-get remove --purge apache2



    Deleting apache server


    I also did


    sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade




    After this I did usual imscp install


    Shell-Script
    1. sudo perl imscp-autoinstall


    And got error after downloading and installing php5 and apache




    What is wrong with installation and how to fix it ? I got that this is something with 'service' starting files.

  • I did a print in Upstart.pm, of what file installer trying to reach (it is only change that installer has now in my unpacked imscp distro)



    Perl
    1. sub _searchJobFile{my ($self, $service, $jobFileType) = @_;my $jobFile = "$service." . ($jobFileType || 'conf');for my $path(@{$paths{$self}}) {my $filepath = File::Spec->join($path, $jobFile);my $filename = '/home/user/log_install.txt';open(my $fh, '>', $filename);print $fh $filepath;print $fh "\n";close $fh;return $filepath if -f $filepath;}die(sprintf('Could not find the upstart %s job file', $jobFile));}

    So it dumped in debug file


    Shell-Script
    1. /etc/init/php5-fpm..


    Any ideas, why installer does this ?

  • Please, upgrade to 1.3.x using that archive: https://github.com/i-MSCP/imscp/archive/1.3.x.zip

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Seems like variable jobFIleType, passed to the function above is not equals 'conf' or 'override' but "./" for some reason. Don't know why, don't know how to debug further. Any ideas ?

  • @firestorm46 Already answered. See my previous answer. This bug is already fixed in 1.3.x.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Please, upgrade to 1.3.x using that archive: https://github.com/i-MSCP/imscp/archive/1.3.x.zip

    Does not help either


    Code
    1. [ERROR] Servers::httpd::apache_php_fpm::start: Could not start the php5-fpm service: iMSCP::Provider::Service::Sysvinit::_exec: start: Unknown job: php5-fpm at /home/romanov/Downloads/imscp-1.3.x/engine/PerlLib/iMSCP/Service.pm line 158.
    2. autoinstaller::Functions::install: An error occurred while performing installation steps
  • @firestorm46


    Sorry but I cannot confirm the problem on Ubuntu 12.04 (Presice) with Upstart as sysinit system.


    Shell-Script
    1. # apt-get remove --purge php5-*
    2. # apt-get remove --purge apache2
    3. # perl imscp-autoinstall -d

    All worked as expected with 1.3.x branch


    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • [ERROR] Servers::httpd::apache_php_fpm::start: Could not start the php5-fpm service: iMSCP::Provider::Service::Sysvinit::_exec: start: Unknown job: php5-fpm at /home/romanov/Downloads/imscp-1.3.x/engine/PerlLib/iMSCP/Service.pm line 158.

    That is not the same error message.


    Hmm, check your system because here, the problem doesn't comes from i-MSCP. For me all is working as expected:


    Shell-Script
    1. root@precise:/usr/local/src/imscp# perl imscp-autoinstall -danv...[DEBUG] iMSCP::EventManager::trigger: Triggering beforeSetupRestartServices event[DEBUG] iMSCP::Execute::execute: /sbin/status imscp_mountall[DEBUG] iMSCP::Execute::execute: /sbin/restart imscp_mountall[DEBUG] iMSCP::Execute::execute: /sbin/status imscp_traffic[DEBUG] iMSCP::Execute::execute: /sbin/restart imscp_traffic[DEBUG] iMSCP::Execute::execute: /sbin/status imscp_daemon[DEBUG] iMSCP::Execute::execute: /sbin/start imscp_daemon[DEBUG] iMSCP::Execute::execute: /sbin/status cron[DEBUG] iMSCP::Execute::execute: /sbin/restart cron[DEBUG] iMSCP::Execute::execute: /etc/init.d/proftpd status[DEBUG] iMSCP::Execute::getExitCode: Command exited with value: 3[DEBUG] iMSCP::Execute::execute: /etc/init.d/proftpd start[DEBUG] iMSCP::Execute::execute: /etc/init.d/php5-fpm status[DEBUG] iMSCP::Execute::getExitCode: Command exited with value: 3[DEBUG] iMSCP::Execute::execute: /etc/init.d/php5-fpm start[DEBUG] iMSCP::Execute::execute: /etc/init.d/apache2 status[DEBUG] iMSCP::Execute::getExitCode: Command exited with value: 3[DEBUG] iMSCP::Execute::execute: /etc/init.d/apache2 start[DEBUG] iMSCP::Execute::execute: postmap hash:/etc/postfix/imscp/domains[DEBUG] iMSCP::Execute::execute: postmap hash:/etc/postfix/imscp/relay_domains[DEBUG] iMSCP::Execute::execute: postmap hash:/etc/postfix/imscp/transport[DEBUG] iMSCP::Execute::execute: postmap hash:/etc/postfix/imscp/aliases[DEBUG] iMSCP::Execute::execute: postmap hash:/etc/postfix/imscp/sender-access[DEBUG] iMSCP::Execute::execute: postmap hash:/etc/postfix/relay_passwd[DEBUG] iMSCP::Execute::execute: postmap hash:/etc/postfix/imscp/mailboxes[DEBUG] iMSCP::Execute::execute: /etc/init.d/postfix status[DEBUG] iMSCP::Execute::execute: /etc/init.d/postfix restart[DEBUG] iMSCP::Execute::execute: /etc/init.d/bind9 status[DEBUG] iMSCP::Execute::execute: /etc/init.d/bind9 restart[DEBUG] iMSCP::Execute::execute: /sbin/status dovecot[DEBUG] iMSCP::Execute::execute: /sbin/status dovecot[DEBUG] iMSCP::Execute::execute: /sbin/start dovecot[DEBUG] iMSCP::Execute::execute: /sbin/status mysql[DEBUG] iMSCP::Execute::execute: /sbin/restart mysql[DEBUG] iMSCP::Execute::execute: /etc/init.d/nginx status[DEBUG] iMSCP::Execute::getExitCode: Command exited with value: 3[DEBUG] iMSCP::Execute::execute: /etc/init.d/nginx start[DEBUG] iMSCP::Execute::execute: /sbin/status imscp_panel[DEBUG] iMSCP::Execute::execute: /sbin/start imscp_panel[DEBUG] iMSCP::Execute::execute: rm -fR /tmp/imscp[DONE] i-MSCP has been successfully installed/updated.


    Try this:

    Shell-Script
    1. # apt-get purge php5-fpm
    2. # apt-get install php5-fpm
    3. # perl imscp-autoinstall -d

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206