S
S
Sergey Poroshenko2016-05-18 11:16:21
PHP
Sergey Poroshenko, 2016-05-18 11:16:21

Is it possible to remove some packages with dependencies from Debian?

I'm not the biggest expert in Debian. I can put some things according to the instructions and no more ...
My problem is that I installed virtualmin, but I could not fully get a taste of what and how with virtual servers. I tried to demolish virtualmin and do everything manually (Install LAMP on one host without any virtual servers) as a result, no matter how I twist the apache and php packages, php scripts are not interpreted ... even banal

<?php
phpinfo();
?>

Tried:
aptitude purge php5 php5-cli php5-common apache2 apache2.2-common apache2-utils apache2.2-bin apache2-mpm-prefork

And then reinstall apache and php, but it didn’t work (((
Tell me what you can read on this topic. Or help with advice on how to remove everything that is installed with dependencies and install everything else so that it works fine.
Or can you tell me where to look for what settings to php I've been
trying for the third day, I can't figure out what's wrong...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kuts, 2016-05-18
@webporoh

1. Check that php works on the command line
2. If it works, then configure Apache
Read this
At least in Apache, you need to load the php module something like this:
well, specify that Apache transfer php files for processing to the module:

<FilesMatch \.php$>
    SetHandler application/x-httpd-php
</FilesMatch>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question