• Resolved explorer1979

    (@explorer1979)


    Hi all,

    Before I am install my Blog on a Windows 7 Box with WAMP, all default setting and it work great.

    But for long time running and connect more user, I decided move to Linux Box CentOS 6.2

    All software install and update and running…..

    But … I have manual edit the Apache Conf, make it support Virtual User/Host.

    So now my web site under my user home, for example there
    /home/abc/public_html/blog/

    After I login to the back end and try upload some photos, music etc, it not work anymore, the folder can’t write, and wordpress codex doc not suggestion make as 777 on the uploads or NextGen Gallery (yes, my blog is main for my photography) images folder 777 etc.

    Any suggestion there who using CentOS 6.2 with WP and Virtual User/Host?

    I had disable SELinux already, firewall open port 80

    P.S. The Linux Server is myself, so I have full root permission to access, just I am new on this case, hope anyone who have experience can take a help for my case.

    Thank you very much.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    I’m not really sure what ” wordpress codex doc not suggestion make as 777 ” means so I’m going to phrase this carefully…

    Did you make your /wp-content/uploads folder permissions 777? Yes or no?

    Thread Starter explorer1979

    (@explorer1979)

    No

    The folder of /wp-content/uploads folder permissions is 755

    Thread Starter explorer1979

    (@explorer1979)

    Actually, if I install a new WP, it not allow me to build the uploads folder auto too.

    On Windows Box all folder can build auto not need any permission change etc.

    Thread Starter explorer1979

    (@explorer1979)

    http://codex.wordpress.org/Changing_File_Permissions

    The codex not suggestion 777 on above link. So I am worry if change to 777 will make security problems etc.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Set it to 777 as a test, some servers (especially CentOS depending on which version of PHP you run) require it.

    Thread Starter explorer1979

    (@explorer1979)

    ipstenu,

    My PHP is 5.3.3

    Here are my step to build the server. Maybe it help for find out what is wrong on the folder permission etc.

    <VirtualHost *:80>
    ServerName explorerhome.dyndns.org
    DocumentRoot /home/abc/public_html
    </VirtualHost>

    #useradd abc
    /home/abc now is drwx—— owner/group is 500 500 (abc)

    Then I using FileZilla login by abc, make a public_html, and then blog under public_html, it is both 500 500 on owner/group and with 755 permission

    My Server Apache are 40 40 owner/group

    Then upload all backup files/ folder from the Windows box I backup before to the new linux box, this mean the
    /wp-content/uploads
    folder are make by this abc user with 500 500 owner/group and 755 permission

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Move to Linux can't write files anymore!!’ is closed to new replies.