• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Apache not running after mariadb update

SMAHI

Basic Pleskian
Hi,
I've updated mariadb to V 10.1, but unfortunately Apache won't start after that.
The loggin shows

`Apr 23 13:18:46 XXXXX httpd[3640]: httpd: Syntax error on line 353 of /etc/httpd/conf/httpd.conf`

with apachectl -t :
`
httpd: Syntax error on line 353 of /etc/httpd/conf/httpd.conf: Syntax error on line 6 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 26 of /etc/httpd/conf/plesk.conf.d/webmails/bib____.com_webmail.conf: Could not open configuration file /etc/httpd/conf/plesk.conf.d/roundcube.htaccess.inc: No such file or directory
`

it seems that some files/dirs are missing likes :
- /etc/httpd/conf/plesk.conf.d/roundcube.htaccess.inc
- /etc/httpd/conf/plesk.conf.d/forwarding
...etc

Please help
 
Last edited:
Hi SMAHI,

pls. consider to use the Plesk Repair Utility, if you experience issues/errors/problems. It will investigate and correct misconfigurations automatically ( if you use the "-y" option string )

Pls. read the official documentation at: => Plesk Repair Utility


Example commands over your command line ( logged in as user "root" over SSH ):

Just DISPLAY possible issues/errors/problems... no automatic repair:
Code:
plesk repair web -n -v
DISPLAY possible issues/errors/problems... WITH automatic repair:
Code:
plesk repair web -y -v


Another option to repair webserver - configuration files, is to use the Plesk component: Webserver Configurations Troubleshooter ( => HOME > Extensions ), which can be installed over the Plesk Control Panel ( HOME > Tools & Settings > Updates and Upgrades ), or with the command over the command line ( logged in as user "root" over SSH ):

Code:
plesk installer --select-product-id plesk --select-release-current --install-component config-troubleshooter
 
@UFHH01 thank for your reply

the plesk command is missing, weird.
terminal output
Code:
-bash: plesk: command not found
 
Hi SMAHI,

pls. DON'T use copy&paste to avoid possible ( invisible at the command line! ) HTML - formats, when you copied it from forums and other sites from the www; instead, pls either TYPE the command, or consider to paste the command suggestion(s) first into a TXT - Editor ( i.e. "notepad.exe" on Windows systems ), before you continue to copy the suggested again FROM the TXT - Editor to paste it into your SSH - Client. ;)


The "long" version of the "plesk installer" - command is on each linux system:
Code:
/usr/local/psa/admin/bin/autoinstaller
 
Hi SMAHI,

pls. DON'T use copy&paste to avoid possible ( invisible at the command line! ) HTML - formats, when you copied it from forums and other sites from the www; instead, pls either TYPE the command, or consider to paste the command suggestion(s) first into a TXT - Editor ( i.e. "notepad.exe" on Windows systems ), before you continue to copy the suggested again FROM the TXT - Editor to paste it into your SSH - Client. ;)


The "long" version of the "plesk installer" - command is on each linux system:
Code:
/usr/local/psa/admin/bin/autoinstaller

unfortunately it did not works
I am getting the following error :
Code:
/usr/local/psa/admin/bin/autoinstaller: No such file or directory
 
Hi SMAHI,

I assume that you accidently removed some Plesk components, when you upgraded your database - server. Pls. consider to restore from a backup and investigate possible logs from "/var/log" or/and consider to contact the official Plesk Support at: => Contact Support - Plesk
 
Hi SMAHI,

pls. see the output of a "locate" command on a "CentOS 7.3" system as for example:
locate autoinstaller

Output:

/root/.autoinstaller
/root/.autoinstallerrc
/root/.autoinstaller/microupdates.xml
/root/.autoinstaller/options.ini
/usr/local/psa/admin/bin/autoinstaller
/usr/local/psa/admin/plib/autoinstaller
/usr/local/psa/admin/plib/autoinstaller/AutoInstaller.php
/usr/local/psa/admin/plib/autoinstaller/AutoInstallerComponent.php
/usr/local/psa/admin/plib/autoinstaller/AutoInstallerDependency.php
/usr/local/psa/admin/plib/autoinstaller/AutoInstallerManager.php
/usr/local/psa/admin/plib/autoinstaller/AutoInstallerRelease.php
/usr/local/psa/admin/sbin/autoinstaller
As you can see, BOTH paths are valid, while the "ls" - commands
Code:
ls -lah /usr/local/psa/admin/bin | grep auto
lrwxrwxrwx  1 root   root     15 17. Apr 06:01 autoinstaller -> ../sbin/wrapper
Code:
ls -lah /usr/local/psa/admin/sbin | grep auto
-rwxr-xr-x  1 root root    19M 10. Mär 11:21 autoinstaller
... point to the fact, that you are definetly missing something. ;)


My suggestions is still the same, that you should consider to INVESTIGATE the root cause with the help of log - files. ;)
 
Back
Top