I just built a centos6.0 platform.

Source: Internet
Author: User
I just built a centos6.0 platform.

I'm a yum installer.
Yum-y Install httpd
Yum-y Install php*
Yum-y Install mysql*


After I send the website, I want to modify the point bug in the CentOS platform

I use Vim to modify the PHP, modified to save, the operation of the program did not change.

What the hell's going on? Doesn't PHP need to be compiled?

What's the reason?

Before modification
if ($info! = False)
{
Print_r (' true ');

}else
{
Print_r (' false ');
}

After modification
if ($info! = False)
{
Print_r (' true ');
Print_r (");
}else
{
Print_r (' false ');
}

Always returns true to modify other HTML.

Now can only put files back to Windows WAMP5 modified after running in CentOS, so not toss people?




Reply to discussion (solution)

Run Phpinfo () to see if PHP is installed successfully

Not successful, how to run the website AH

Solve. Originally is the authority question, modifies it to chmod 777 xxx.php to be possible. Depressed and windows really different!

  • 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.