In linux, wordpress fails to call the ftp_connect function.

Source: Internet
Author: User
In linux, wordpress fails to call the ftp_connect function. This post was last edited by zhenbiny at 17:08:44.

I directly installed php using yum install php in linux,
The following code is written:
Connid = ftp_connect ("192.168.123.30"); execution successful.
However, wordpress will fail to run ftp_connect ("192.168.123.30") by tracking the code.
If the code is incorrect,
Run wordpress directly using the integrated development kit lampp, and the function can be successfully executed.
What is the reason? I really don't understand
Thank you!


Reply to discussion (solution)

Is there a log? what is the error message?

The reason is that the installation policy of selinux is incorrect. enable httpd_can_network_connect.

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.