Page 1 of 1
Re: after php7 upgrade apache 2 wont start
Posted: Tue Jun 07, 2016 4:20 pm
by SS88
ones4tech wrote:my error is
Output of config test was:
apache2: Syntax error on line 83 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/conf.d/apache.conf: No such file or directory
Action 'configtest' failed.
If I'm right then in the file /etc/apache2/apache2.conf it's trying to include the file /etc/apache2/conf.d/apache.conf which does not exist and this is on line 83. Try commenting out line 83 if it's directly including /etc/apache2/conf.d/apache.conf and test again.
Re: after php7 upgrade apache 2 wont start
Posted: Tue Jun 07, 2016 4:26 pm
by SS88
ones4tech wrote:I have seriously broken it now and don't think I will get it going, I am currently processing all backups and will wipe and start again,
i now get 500 errors but the service is starting at least.
Is there any possible way of reinstall apache php nginx and getting the original config again then i can rebuild the databases
Depending on how you upgraded, databases should not be affected. 500 errors can be something simple you might want to try look at the logs to see what is causing the 500 error.
I don't think I have ever attempted to essentially re-install Vesta so I do not know the answer.
Re: after php7 upgrade apache 2 wont start
Posted: Thu Jun 09, 2016 6:20 pm
by delebash
I think I ran into this problem as well and ended up just deleting apache.conf and that fixed the problem even though it was reported as not being able to open that file. Make a backup first. I know for a fact that I got a config error when I purged php5 as purging ended up removing roundcube and on restart it was looking for a good roundcube.conf. I deleted roundcube.conf and apache started fine.
I know it said the file apache.conf does not exist but when I did an ls -l it still showed the file and so I just deleted it
It has been awhile and I am no expert so make backup first.
Also make sure you run this to update apache mods
sudo a2dismod php5
sudo a2enmod php7.0
Because even though cli shows php7, apache will still be pointing to php5
Re: after php7 upgrade apache 2 wont start
Posted: Sun Jun 12, 2016 7:02 pm
by zua
Could anybody post the default apache2.conf from /etc/roundcube/?
I'm trying to reinstall roundcube after de php7 upgrade, but I've lost that file :(
Thank you!
Re: after php7 upgrade apache 2 wont start
Posted: Mon Jun 13, 2016 11:46 am
by SS88
zua wrote:Could anybody post the default apache2.conf from /etc/roundcube/?
I'm trying to reinstall roundcube after de php7 upgrade, but I've lost that file :(
Thank you!
The Roundcube configuration is here:
Code: Select all
Alias /roundcube/program/js/tiny_mce/ /usr/share/tinymce/www/
Alias /roundcube /var/lib/roundcube
Alias /webmail /var/lib/roundcube
# Access to tinymce files
<Directory "/usr/share/tinymce/www/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
allow from all
</Directory>
<Directory /var/lib/roundcube/>
Options +FollowSymLinks
# This is needed to parse /var/lib/roundcube/.htaccess. See its
# content before setting AllowOverride to None.
AllowOverride All
order allow,deny
allow from all
</Directory>
# Protecting basic directories:
<Directory /var/lib/roundcube/config>
Options -FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/lib/roundcube/temp>
Options -FollowSymLinks
AllowOverride None
Order allow,deny
Deny from all
</Directory>
<Directory /var/lib/roundcube/logs>
Options -FollowSymLinks
AllowOverride None
Order allow,deny
Deny from all
</Directory>