E
E
EVOSandru62016-09-01 08:51:45
PHP
EVOSandru6, 2016-09-01 08:51:45

Why do new sites on local hosts work one time after upgrading to php7?

Good afternoon, There was
a standard LAMP server, after updating php to version 7, the newly created hosts in the browser are launched every other time. Either the desired page or Apache2 Ubuntu Default Page . /etc/hosts
contains entries about the created hosts: 127.0.0.1 example.loc Configuration file, I create it as before under php 5


<VirtualHost *:80>
        ServerName example.loc
        ServerAdmin [email][email protected][/email]
        ServerAlias [url]www.example.loc[/url]
        DocumentRoot /var/www/example.loc/public_html
        CustomLog ${APACHE_LOG_DIR}/example.loc.access.log combined
        ErrorLog ${APACHE_LOG_DIR}/example.loc.error.log
        #AssignUserID andrey andrey
        #AssignUserID dev dev
        DirectoryIndex index.php index.php4 index.php3 index.cgi index.pl index.html index.htm index.shtml index.phtml
        <Directory /var/www/example.loc/public_html>
                Options -Includes -Indexes -ExecCGI
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order deny,allow
                Allow from All
        </Directory>
</VirtualHost>

a2ensite config I'm doing
Strange thing - that the scripts under the hosts created before the php update work fine without Apache crashes, what could be the reason?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolai Turnaviotov, 2016-09-01
@foxmuldercp

do it normally - one virtual host - one site, and write them down by numbers, for example, so that the default Apache host is loaded last, respectively, it will be given last

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question