Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

after php7 upgrade apache 2 wont start

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
SS88
Posts: 336
Joined: Thu Nov 19, 2015 12:40 pm

Re: after php7 upgrade apache 2 wont start
  • Quote

Post by SS88 » Tue Jun 07, 2016 4:20 pm

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.
Top

SS88
Posts: 336
Joined: Thu Nov 19, 2015 12:40 pm

Re: after php7 upgrade apache 2 wont start
  • Quote

Post by SS88 » Tue Jun 07, 2016 4:26 pm

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.
Top

delebash
Posts: 22
Joined: Mon Aug 24, 2015 5:28 pm

Re: after php7 upgrade apache 2 wont start
  • Quote

Post by delebash » Thu Jun 09, 2016 6:20 pm

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
Top

zua
Posts: 1
Joined: Sun Jun 12, 2016 7:00 pm

Re: after php7 upgrade apache 2 wont start
  • Quote

Post by zua » Sun Jun 12, 2016 7:02 pm

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!
Top

SS88
Posts: 336
Joined: Thu Nov 19, 2015 12:40 pm

Re: after php7 upgrade apache 2 wont start
  • Quote

Post by SS88 » Mon Jun 13, 2016 11:46 am

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>
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password