How To Check What PHP Version Roundcube Is Using? To check the PHP version that Roundcube is using, you can follow these steps:
1. Check Using Roundcube’s Environment Details
Roundcube provides information about the PHP environment in its admin settings.
- Login to Roundcube as Admin:
- Access the admin dashboard for Roundcube.
- Use the administrative credentials.
- Check Environment Details:
- Navigate to the Settings or About section (the exact location may vary based on your Roundcube version).
- Look for information about the server environment. It should list the PHP version.
2. Check PHP Version via the Web Server
Roundcube runs on a web server (e.g., Apache, Nginx). You can determine the PHP version used by the server hosting Roundcube.
ADVERTISEMENT
- Create a PHP Info File:
- Create a file named
phpinfo.php
in the directory where Roundcube is installed (usually the public orwww
directory).
<?php phpinfo(); ?>
- Create a file named
- Access the File via Browser:
- Visit
http://your-roundcube-domain/phpinfo.php
. - This will display detailed PHP information, including the version.
- Visit
- Delete the File After Checking:
- For security purposes, delete the
phpinfo.php
file once you confirm the PHP version.
- For security purposes, delete the
3. Use Command Line (If You Have SSH Access)
If you have terminal or SSH access to the server hosting Roundcube:
- Locate the Roundcube Directory:
- Navigate to the directory where Roundcube is installed.
- Check PHP Version in the Web Server Configuration:
- Check the web server configuration to see the PHP version linked to Roundcube. For example:bashCopy code
apachectl -M | grep php
- Check the web server configuration to see the PHP version linked to Roundcube. For example:bashCopy code
- Run the PHP Command:
- Execute the following command to determine the PHP version used:bashCopy code
php -v
- If multiple PHP versions are installed, check which one is configured for the web server handling Roundcube.
- Execute the following command to determine the PHP version used:bashCopy code
4. Verify via the Configuration File
Roundcube’s configuration file (config.inc.php
) may reference the PHP version or path indirectly.
- Locate the Configuration File:
- Typically found in the
config
directory within Roundcube’s installation folder (e.g.,/var/www/html/roundcube/config/config.inc.php
).
- Typically found in the
- Inspect for PHP Path or References:
- Check for lines specifying the PHP path or any environment configuration.
Summary
- The easiest method is to check the phpinfo output.
- Use the Roundcube admin interface or server terminal for alternative verification.
- Ensure to secure any sensitive files or configurations after performing the check.
If issues persist, contact your hosting provider or system administrator for detailed support.
ADVERTISEMENT
ADVERTISEMENT
Procedure
The following command will give you the symbolic link to the main php.ini file and the PHP version that Roundcube is using:
ls -Flathr /usr/local/cpanel/3rdparty/etc/roundcube/php.ini
lrwxrwxrwx 1 root root 55 Mar 14 18:06 /usr/local/cpanel/3rdparty/etc/roundcube/php.ini -> /usr/local/cpanel/3rdparty/php/74/etc/roundcube/php.ini