php cannot parse

王林
Release: 2023-02-24 11:12:01
Original
3199 people have browsed it

php cannot parse

Symptom of the problem: After installing apache and php5, the php code cannot be executed and the php code is output directly in text format.

Solution:

1. Install the libapache2-mod-php7.0 module

Command:

sudo apt-get install php7.0-mysql
Copy after login

After installing and restarting apche, codes ending with php can be parsed normally, but phpmyadmin still cannot be executed.

2. To solve the problem that phpmyadmin still outputs the original text after the first step, finally add the following in apache2.conf (apche’s configuration file, if you don’t know the path location, you can use Baidu) code and then restart apache.

 SetHandler application/x-httpd-php 
Copy after login

Recommended tutorial:PHP video tutorial

The above is the detailed content of php cannot parse. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!