SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Addict
    Join Date
    Mar 2005
    Posts
    273
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angry wordpress drupal wont create files on server :( lamp

    Hey Guys,

    I built a web hosting server, the following is its state

    Cent os 5
    AMP server loaded updated (installed it as a complete suite during installation so it was all set to go with php mysql modules loaded)
    webmin
    usermin virtualmin

    created 2 named based hosts.

    now when i load up wordpress in a site and try to run install.php

    the following pops up

    "Sorry, I can't write to the directory. You'll have to either change the permissions on your WordPress directory or create your wp-config.php manually."

    I had this issue before and research said to redo the entire server (tried everything and was fed up had fedora then"

    you can have a look at www.itgrunts.com just click create config file and the errror pops up.

    The php and mysql db work great on simple scripts but i dont know why this happens.

    i worked with assigning the users and apache user to the directory and everything, no joy.

    Please help me out

    Thanks
    RJ

  2. #2
    SitePoint Wizard silver trophy ldcdc's Avatar
    Join Date
    May 2004
    Location
    Ploiesti
    Posts
    4,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I wouldn't dismiss the error that WP gives you.

    I'm not a server admin, but if I were to share an opinion, it would be this: chances are that the user PHP runs as (could be "nobody", or maybe a custom user) doesn't have the permission to write in WP's directory.

    A simple solution for a different cause would be, and I quote:

    Did you edit the wp-config-sample.php file and rename it as wp-config.php?
    http://maketecheasier.com/setting-up...1#comment-2326

    research said to redo the entire server
    Seems quite over the top to me.
    HostPeek.com - budget hosts, compared
    CouponsNexus.com - web hosting coupons

    Ultra Cheap Hosts | Web Hosting Reviews Forums

  3. #3
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,650
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    RJ,

    Do you know what 777 means? That's what WP was asking for ... and NEEDS.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  4. #4
    SitePoint Member
    Join Date
    Apr 2009
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by dklynn View Post
    RJ,

    Do you know what 777 means? That's what WP was asking for ... and NEEDS.

    Regards,

    DK
    It means the folder needs to be CHMOD-ed to 777 .. use ftp client to do this .. if I'm not mistaken ..

  5. #5
    SitePoint Addict
    Join Date
    Mar 2005
    Posts
    273
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the reply, all the web files go under public_html folder. even PHPBB3 is complaining I tried this.

    I chowed the folder to apache and it worked, (config file status said writable).

    So the apache user is trying to write to files. Since its a named host and each virtual host is a user - lets call it user1

    The following is what i did

    drwxrwxr-x 13 user1 apache 4096 Apr 6 04:24 phpBB3

    assigned it as chown -R user1:apache phpBB3

    still doesnt work i gave it a 775..

    I was owndering can i add a user to belong to its own grp and another grp, i think i can i am not sure how to..

    can u assist pls..

    RJ

  6. #6
    SitePoint Wizard silver trophy ldcdc's Avatar
    Join Date
    May 2004
    Location
    Ploiesti
    Posts
    4,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    HostPeek.com - budget hosts, compared
    CouponsNexus.com - web hosting coupons

    Ultra Cheap Hosts | Web Hosting Reviews Forums

  7. #7
    SitePoint Addict
    Join Date
    Mar 2005
    Posts
    273
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OMG thanks ldcdc - but I had found that to do it

    I solved the issue.. the issue was that each user owned the folder but apache tried to write to it it kept getting denied

    So i added the user to apache as its secondary group.

    Once I did that i assigned 775 permission to the root folder.

    I figured 775 is safe enuf as user has all permissions and group has all permissions and others have only execute.

    i am not concerned with grp having all permissionsa s user1 and apache are the 2 grps that it will have access to right ?

    O oo wait a minute.. what if i have another named host as user2 and assign him too with apache as secondary group, then user2 will have access to user1 stuff wont he (i mean if he tried)

    please assist


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •