How to test the php webpage written in ubantu

Source: Internet
Author: User
For php web pages written and tested under ubantu, I am referring to Headfirst's PHP & MYSQL, but I have compiled the code, but I do not know how to test the code. the webpage form can be filled in, however, I submitted a form on chrome and directly downloaded my own report. php file


Reply to discussion (solution)

Php configuration problems cannot identify php files
Try addtype application/x-httpd-php. php

Are you using the php environment?

Built. Command php info. Php displays php information

Can I change the browser type?

Php configuration problems cannot identify php files
Try addtype application/x-httpd-php. php
How can I modify the php configuration file? I cannot find php5.conf.

How can I modify the php configuration file? I cannot find php5.conf.
Configuration problems are generally found in the/etc directory.

You need to find the apache configuration file httpd. conf and add that line.


How can I modify the php configuration file? I cannot find php5.conf.
Configuration problems are generally found in the/etc directory.

I have done it. I can browse the localhost/web file from the browser, but it won't work if I double-click it to open the web file. why?

Php runs on a web server. you cannot open it from the desktop.

Php phpinfo. php can be displayed because it runs in cli mode.
You need a web server, such as apache, to run in a browser.

Ubuntu

Ubuntu apt-get install apache... there are several instructions for Baidu.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.