• Dear all. I’m very sorry If I’m repeating topics that have been submitted here but I still find my case quite strange and unique even with all the search I have done here.

    So I set up a website for a client a few months ago. It has the typical twenty-eleven theme with some minor changes to the theme.

    Every month my client contacts me saying that she can’t upload photos.
    I do this standard routine:
    *copy uploads folder from wp-content to HD
    *delete uploads folder from server
    *make a new folder called uploads, copy the (original) uploads files to that folder
    *copy the new uploads folder to wp-content on server
    *change all permissions of the new uploads folder to 777

    this process has usually done the job although it feels mildly retarded and not something you should have to do on a ‘reliable’ CMS.

    I’ve actually just discovered that all the while the problem isn’t really with wordpress but with my hosting company. They don’t allow me to change the php safe mode and that’s why I think the problem keeps occurring. Okay that’s revelation nr.1

    So now, none of my tricks work and we can’t upload anything.

    Furthermore I just got an e-mail from my client saying that now she cant login to the admin page at all. I tried it and I get these messages:

    Warning: fopen(/var/www/vhosts/mentes.is/httpdocs/wp-content/plugins/stop-spammer-registrations-plugin/sfs_debug_output.txt) [function.fopen]: failed to open stream: Permission denied in /var/www/vhosts/mentes.is/httpdocs/wp-content/plugins/stop-spammer-registrations-plugin/stop-spammer-registrations.php on line 1184

    Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/vhosts/mentes.is/httpdocs/wp-content/plugins/stop-spammer-registrations-plugin/stop-spammer-registrations.php on line 1185

    Warning: fclose(): supplied argument is not a valid stream resource in /var/www/vhosts/mentes.is/httpdocs/wp-content/plugins/stop-spammer-registrations-plugin/stop-spammer-registrations.php on line 1186

    Warning: fopen() [function.fopen]: SAFE MODE Restriction in effect. The script whose uid is 10016 is not allowed to access /var/www/vhosts/mentes.is/httpdocs/wp-content/stop-spammer-registrations owned by uid 48 in /var/www/vhosts/mentes.is/httpdocs/wp-content/plugins/stop-spammer-registrations-plugin/stop-spammer-registrations.php on line 1231

    Warning: fopen(/var/www/vhosts/mentes.is/httpdocs/wp-content/plugins/stop-spammer-registrations-plugin/sfs_debug_output.txt) [function.fopen]: failed to open stream: Permission denied in /var/www/vhosts/mentes.is/httpdocs/wp-content/plugins/stop-spammer-registrations-plugin/stop-spammer-registrations.php on line 1184

    Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/vhosts/mentes.is/httpdocs/wp-content/plugins/stop-spammer-registrations-plugin/stop-spammer-registrations.php on line 1185

    “SAFE MODE Restriction in effect”, was the one I noticed. Does this all have to do with php safe mode. I’m terribly sorry, I’m not much of a php guy but if anyone can verify this I can simply lose my shit all over my hosting and be on my way.

    Thanks
    Doddi

Viewing 2 replies - 1 through 2 (of 2 total)
  • It sounds like the owner of the uploads folder is not set correctly.

    You need to set the owner of the folder and subfolders to the apache user. You may need to contact your host for helping determining the name of the apache user account.

    Example:
    chown -R apache uploads

    I’ve actually just discovered that all the while the problem isn’t really with wordpress but with my hosting company. They don’t allow me to change the php safe mode and that’s why I think the problem keeps occurring.

    Find a new webhost. There’s really no need for safe mode on these days. That, and there may be other config problems at that host that force you to change directories to 777, etc.

    See Recommended WordPress Web Hosting

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress going wrong since day one’ is closed to new replies.