WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] No creation of upload folder (2 posts)

  1. tony115
    Member
    Posted 6 years ago #

    Hello. I recently fot a dedicated server and the images will not upload. I continue to get :

    Failed to write file to disk.

    The uploads folder is not being created. The chmod has set the httpdocs folder to 775 and the wp-content to 777. I am a newbie coder so I 'm not sure as to what steps to take next.

    Other things I have tried was a "tmp" folder, php safe mode off, and 3 re-installs. Please give your advice. Thank you.

  2. tony115
    Member
    Posted 6 years ago #

    This has been fixed. I contacted my support for the dedicated server and they fixed the issue. Here is a snapshot of what the tech did (he sent me an e-mail).

    1. Navigate your way to the directories conf folder.
    - Usually /var/www/vhosts/domain.com/conf

    2. Create a file called vhost.conf
    - Insert the following text into the file: (remember to replace domainname.com with the actual domain.com)

    <Directory /usr/local/www/vhosts/DOMAIN/httpdocs>
    php_admin_flag engine on
    php_admin_value open_basedir none
    </Directory>

    3. After you have written this file you need to add the following line in httpd.include right before the last </VirtualHost>
    tag :

    Include /usr/local/www/vhosts/DOMAIN/conf/vhost.conf

    example :
    </Directory>
    Include /usr/local/www/vhosts/terminatesarahconnor.com/conf/vhost.conf
    </VirtualHost>

    4. Restart apache - /usr/local/etc/rc.d/apache2.sh restart

Topic Closed

This topic has been closed to new replies.

About this Topic