PHP 7 doesn't work on linux Mint 18

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
ghbook

PHP 7 doesn't work on linux Mint 18

Post by ghbook »

On a fresh install of Mint 18 cinnamon, i installed, in order to use phpmyadmin, apache2, mysql and php.
But php doesn't work properly.The .php files are not parsed, and phpmyadmin doesn't work of course. Instead i can read only the code displayed. :x
any ideas of what's wrong ?
Thanks
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: PHP 7 doesn't work on linux Mint 18

Post by deepakdeshp »

Step by step tutorial.

Does apache work ?

http://localhost should give the apache page.
For apache logs see under /var/log folder search for apache for the logs.


https://www.howtoforge.com/tutorial/ins ... 6-04-lamp/
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
ghbook

Re: PHP 7 doesn't work on linux Mint 18

Post by ghbook »

Apache works properly ( i see /var/www/html/index.htlm) and mysql too.
I did a fresh install of Mint 18 Cinnamon. Previously i used 17 but, instead of upgrading, i preferred to do so.
I tried to install a php script (cmsimple) in the /var/www/html/ directory, it doesn't work. I think apache can't parse php files properly.
Years ago, i used linux as a server, and i knew where to seek for inappropriate configuration, for instance tell apache to parse .php files. But now, the apache configuration files are quite different, and i don't understand everything....
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: PHP 7 doesn't work on linux Mint 18

Post by deepakdeshp »

https://httpd.apache.org/docs/current/configuring.html
http://httpd.apache.org/docs/2.4/
This is apache conifiguration. The version is 2.4
My link in the first post gives a php example you can try.
You can also post the querises in Apache forums
http://www.apachelounge.com
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
ghbook

[SOLVED]Re: PHP 7 doesn't work on linux Mint 18

Post by ghbook »

Many thanks
I completely removed phpmyadmin and php, then reinstalled the packages.
It works fine... :D :D :D
Locked

Return to “Software & Applications”