English 中文(简体)
Installing Roundcube using Apache2 but error unsupported PHP version, required >=7.3
原标题:

I am having trouble getting Roundcube 1.6.1 to work on my server. I believe some pre-existing configuration on my server may interfere with Roundcube but I am unsure. Here is what I have set up so far:

  1. I have Odoo installed on my server within a Python3 virtual environment hosted on the primary domain.
  2. Odoo is running on Apache2 web server on port 8069 (default) and is reverse proxied from its virtual host configuration so it is accessible on ports 80/443.

I have downloaded Roundcube and installed the following PHP extensions:

sudo apt install php-net-ldap2 php-net-ldap3 php-imagick php8.1-common php8.1-gd php8.1-imap php8.1-mysql php8.1-curl php8.1-zip php8.1-xml php8.1-mbstring php8.1-bz2 php8.1-intl php8.1-gmp php8.1-redis

I have also configured an Apache2 Virtual Host for Roundcube:

<VirtualHost *:80>
  ServerName mail.MyDomain.com
  DocumentRoot /var/www/roundcube/

  ErrorLog ${APACHE_LOG_DIR}/roundcube_error.log
  CustomLog ${APACHE_LOG_DIR}/roundcube_access.log combined

  <Directory />
    Options FollowSymLinks
    AllowOverride All
  </Directory>

  <Directory /var/www/roundcube/>
    Options FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
  </Directory>

</VirtualHost>

However, when I visit mail.MyDomain.com, I receive the following error message: "Unsupported PHP version. Required PHP >= 7.3." The subdomain works and the Roundcube favicon appears, which means the domain configuration is correct and Apache2 is reading from the correct directory. Therefore this error implies an issue with my Apache2 PHP version.

I tried installing libapache-mod-php8.1 and enabling it. However, upon reloading my website, both the mail subdomain and the Odoo primary domain broke, so I had to disable it and reload again (sudo a2dismod).

How should I configure Roundcube to work with mail.MyDomain.com? Any advice is appreciated, thanks

问题回答

暂无回答




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签