servisys / ispconfig_setup

ISPConfig autoinstaller and setup
GNU General Public License v3.0
507 stars 257 forks source link

script stucks while setting up phpmyadmin ubuntu 18.04 #267

Open ChristopherDosin opened 5 years ago

ChristopherDosin commented 5 years ago

I did a fresh minimal ubuntu 18.04 install and run the script.

In the options i choosed to not install phpmyadmin. But the script seems to install and configure phpmyadmin

Setting up phpmyadmin (4:4.6.6-5) ...Applying patch for Amavisd-new... avisd-new, ClamAV), Spam filtering (SpamAssassin), Greylisting (Postgrey) and Rootkit detection (rkhunter)... (This may take awhile. Do not abort...)

At this part the script is hanging, even after 30minutes+.

Even if i enable phpmyadmin for the installation the scripts stucks at the same part. Does anyone has an idea why?

With Ubuntu 16.04 i had no problems.

tdulcet commented 5 years ago

If nginx is selected on Ubuntu 18.04, phpMyAdmin is always installed: https://github.com/servisys/ispconfig_setup/blob/ddbb4a4264e12be1489fd5f3180d789ba92dab7f/distros/ubuntu-18.04/install_webserver.sh#L96-L99

I would need to see more of the log, but I suspect one of the packages is asking a question that is hidden by the script.

Try changing this line: https://github.com/servisys/ispconfig_setup/blob/ddbb4a4264e12be1489fd5f3180d789ba92dab7f/functions/check_linux.sh#L11 to this:

"$@"

and run the script again to see all the output.

servisys commented 5 years ago

Can you test if it works?

vlahx commented 5 years ago

Matteo, i didnt install yet the ispconfig. I had problem because i try to install on a ubuntu mate armfh and cannot find the repositories for armfh. At this time i do an distribution upgrade to see if working. I will test it and i will twll u. Thanks for message

În mie., 7 nov. 2018, 16:36 Matteo Temporini <notifications@github.com a scris:

Can you test if it works?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/servisys/ispconfig_setup/issues/267#issuecomment-436643202, or mute the thread https://github.com/notifications/unsubscribe-auth/AS0N1ZTGjjB0kKDppyRZan3UMPnt0_Ezks5usu_egaJpZM4XbtUs .

Nixforest commented 5 years ago

I have the same problem.

========================================= ISPConfig 3 System installer

This script will do a nearly unattended installation of all software needed to run ISPConfig 3. When this script starts running, it will keep going all the way So, before you continue, please make sure the following checklist is ok:

  • This is a clean standard clean installation for supported systems
  • Internet connection is working properly

The detected Linux Distribution is: Ubuntu 18.04.1 LTS Related Linux Distributions: debian Processor (CPU): Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz CPU Cores: 1 Architecture: x86_64 (64-bit) Total memory (RAM): 985 MiB (1033 MB) Total swap space: 0 MiB (0 MB) Graphics Processor (GPU): Red Hat, Inc. QXL paravirtual graphic card (rev 04) Computer name:
Hostname:
IPv4 addresses:
Time zone: Etc/UTC (UTC, +0000)

Virtual Machine (VM) hypervisor: kvm

Installing for this Linux Distribution: ubuntu-18.04 Is this correct? (y/n) y

Preparing to install... [DONE]

Updating apt package database and upgrading currently installed packages...

Waiting for about 1hour but still not working. Does anyone have an idea why?

tdulcet commented 5 years ago

Waiting for about 1hour but still not working. Does anyone have an idea why?

I suspect one of the packages you already have installed on your system is asking a question that is hidden by the script. Either try running these two commands before running the script: sudo apt-get update and sudo apt-get -y dist-upgrade or make the change in my comment above: https://github.com/servisys/ispconfig_setup/issues/267#issuecomment-430150149.

Always make sure you start from a fresh copy of one of the supported Linux distributions, as instructed in the Readme.

smoonlee commented 5 years ago

What sort of server are you running this on? is it taking an hour to install and update the packages? i can build a Hyper-V Test machine if you want me to try anything?

Nixforest commented 5 years ago

Waiting for about 1hour but still not working. Does anyone have an idea why?

I suspect one of the packages you already have installed on your system is asking a question that is hidden by the script. Either try running these two commands before running the script: sudo apt-get update and sudo apt-get -y dist-upgrade or make the change in my comment above: #267 (comment).

Always make sure you start from a fresh copy of one of the supported Linux distributions, as instructed in the Readme.

Tried run update and dist-upgrade. The problem still not solved. I am running on a fresh copy of Ubuntu 18.04 LTS. Always stuck at "Updating apt package database and upgrading currently installed packages...".

Nixforest commented 5 years ago

What sort of server are you running this on? is it taking an hour to install and update the packages? i can build a Hyper-V Test machine if you want me to try anything?

Thank smoonlee. I use Digital Ocean. But I went back with Ubuntu 16.04 and install ISPConfig 3 step by step. It's work. I will try Ubuntu 18.04 later. Thanks for your help.

tdulcet commented 5 years ago

Tried run update and dist-upgrade. The problem still not solved. I am running on a fresh copy of Ubuntu 18.04 LTS. Always stuck at "Updating apt package database and upgrading currently installed packages...".

The script is getting stuck in this section: https://github.com/servisys/ispconfig_setup/blob/ddbb4a4264e12be1489fd5f3180d789ba92dab7f/distros/ubuntu-18.04/install_basics.sh#L6-L11

Try removing those hide_output's and run the script again to see all the output from that section. It is possible that the autoremove is asking a question, but if it is a fresh copy, there should not be very many old packages to remove.

servisys commented 5 years ago

Are you sure you installed with perfect setup guide for Ubuntu 18.04?

thctlo commented 5 years ago

Hi, i've run this under Debian 9.

The Mysql Root password may have characters that are not passed.. Like "ThisIsMyPass!word!" the script put in ThisIsMyPass then i fails silently.

the ! is the problem in my case.

My tip here, Generate the Mysql Root passwd from allowed characters.

NedkoHristov commented 5 years ago

I tried with fresh DigitalOcean VPS with installed Ubuntu 18.04.2. I ran: apt-get update apt-get upgrade apt-get dist-upgrade apt autoremove

and followd the instruction from @tdulcet . The installation was successful.

JongKwanPark commented 5 years ago

@NedkoHristov Thank you.