Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem that apache can't parse php

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article is about how to solve the problem that apache can't parse php. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.

Install APACHE first

. / configure-- prefix=/usr/local/apache2-- enable-so-- enable-module=so make make install

Install PHP

/ configure-- prefix=/usr/local/php-- with-apxs2=/usr/local/apache2/bin/apxs-- with-config-file-path=/usr/local/lib-- with-sybase=/opt/sybase/OCS-15_0/-- with-mysql-- enable-dbase-- enable-zip makeinstall

After installing PHP, execute the following code

Cp php.ini-dist / usr/local/lib/php.ini

The same error occurs when you add AddType application/x-httpd-php .php to the configuration file httpd.conf in APACHE and restart APACHE.

Solution:

AddType application/x-httpd-php .php AddType application/x-httpd-php .php .phtml .php3 AddType application/x-httpd-php-source .phps Thank you for reading! On how to solve the problem that apache can not parse php is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report