WordPress cannot write file to disk - html

So my website was hacked a few days ago and after that I did a fresh install of wordpress.
I proceeded to install my theme, everything went smooth. But when I wanted to upload files in the media folder via wp, it said cannot write file to disk.
I tried a few more times and it worked, I uploaded like 5 images and it stopped working again same error.
I also cannot install plugins via wp I have to do it manually, and I had to install my theme manually too... I am going crazy called my web hosting they said it's wordpress fault.

You will need to review permissions of wp-content/* folders and files and subfolders. Folders should be 755 to support writing into them by WordPress. You can set this in most FTP client software by use of CHMOD feature.
You may also need to review owning user and group of wp-content/* folders and subfolders and files. Owning user and group should match the Linux user and group that your server software operates under (i.e. user www-data or apache)
wp-content/uploads for media uploads, thumbnail image generation
wp-content/themes for theme installation, automatic updates, and use of Editor
wp-content/plugins for plugins installation, automatic updates, and use of Editor
Do you have SSH access into your server? That's easiest way to verify and change ownership user/group and permissions.

Related

Installing phpmyadmin in Filezilla

I'm making my first steps learning how to develop a Wordpress theme. I installed Wordpress in local, I designed a theme and now I'm learning how to export it to a live site.
I have the server address, the user and the password of my client. I downloaded filezilla, I logged in and I decided to make a subdirectory in his actual site to install the wordpress site. So it woud be something like this www.clientsite.com/wordpressnewsite.
The thing is that I suppose that I have to install phpMyAdmin in this subdirectory so like this I can import my database.
I downloaded phpMyAdmin, I saved all the files in my subdirectory and I created a config directory inside with all the permissions.
Now I tried to go to http://www.clientsite.com/wordpressnewsite/phpmyadmin/setup/ to continue the installation but it shows a white page without a message or something.
Do you have some recommendation?
Couple of things:
Its likely if you use cpanel you already have phpmyadmin. its not advisable to leave it in a accessible web directory, or hackers gonna get you.
If you have that phpmyadmin folder under your wordpress install its likely that it may not work as the htaccess file for wordpress is trying to send everything through wordpress.
In the phpmyadmin folder you could enter the following in the htaccess file.
RewriteEngine Off.

Wordpress Reinstallation - You don't have permission to access /sitename/ on this server

We've been working hard on a sandbox server. We installed WordPress to it from scratch. I created the database, and imported the previous database into it. The user and password both have been created.
Right now, our error is "403 Forbidden: You don't have permission to access / on this server". I can't access any of the files by typing in the server IP address,though we see and control everything as root via Putty, or manage it through FileZilla. Root is the owner of all WP files/folders.
I found this source: WPBeginner-403-Error-Fix and am currently changing the permissions on the files; the folders are done and the permissions are set to 755. File permissions are being set to 644. Out of all the resources we had referred to, it never mentioned WP requiring specific permissions. I got right onto that today. While this is running, I still get the message after the folder permissions were changed, and as the file permissions are being processed:
You don't have permission to access /wp-admin/login.php on this server.
We also had a bootstrap file located in the same place as the WP installation / contents (this was a test). The bootstrap is very much accessible: the CSS/JS folders with the supporting content can be seen if you type the ipaddress/directory for the bootstrap version... you can see the files and structure. If you type in ipaddress/boot.html, it runs it flawlessly. If we try referring to anything with WP, it does not like it and throws the 403 error.
There is no .htaccess, I read online it would generate via permalinks in the panel. But we can't even see the panel. It's currently .htaccessOLD (from when we imported our old WP contents to the dev server, from the production site), so there should be no interference.
None of us has installed WP directly, the guy who did it previously no longer is part of the company, so we are becoming lost in this process.
Edit: Plugins were disabled via renaming convention, however, WP actually regenerated this folder.
Edit (2): With the permissions set, and the plugin/theme deactivated, it still does not run due to 403.
Weird... my answer didn't post yesterday as I had thought.
So- we solved it. The permissions were set accordingly for all directories/files, the issue was the server configuration. Just triple check the server configuration file (usually httpd.conf on current servers) to ensure it points to the directory containing the WP contents.
If this is still a problem to some people, and you swear that the httpd.conf file is correct, it does not hurt to double check your directories. The directories should be permission 755. Files should be 644, excluding the wp-config.php (that ought to be set for permissions 455).
Thank you for helping us troubleshoot! We really appreciated it! :)

OpenShift Enterprise creating directories in root file system

We have several applications that look in a standard location for configuration on the file system. Something like:
/config/db/
There would simply be too many changes required to many applications to use $OPEN_SHIFT_DATA_DIR instead. Is there a way to put files in arbitrary directories? Do i have to create a custom cartridge that would put the config directory there? Are there any permissions restrictions that I'll run into?
I don't have much experience with OSE, but only OSO. My guess would be that you should package up your configurations as an RPM and install it as root on the system, with permissions that are permissive enough for the gears users to be able to access them. Then release a new RPM for configuration changes. Installing a cartridge to a gear should never allow the data to be accessed by another gear, or be able to install something to anywhere that is not in that users selinux container.

Will rewriting the Joomla system files, remove my articles and data?

As I cannot access to my admin area, I was told that Joomla system files might have problems and the best is to download the latest version and rewrite it on my host. My website is running and up. So if I replace the Joomla package on my host, will it remove or change anything on my website? anything that I have on the website, such as plugins, template, articles, music, mySQL, and so on. Will they change?
It is based on Joomla 1.5.
If yes, Any suggestion?
It's not a good idea to do it on your live server because you may broke your site. Instead of this prepare a local server and download your site to it. Then download a dump of your server database and restore it locally.
On your local copy you only need to change the configuration.php file with your local database settings (username, password and database) and paths to tmp and cache directories.
When the local site is up and running you can try to replace old files with the new ones, but don't overwrite the configuration.php file. Before replacing files is not a bad idea to keep a copy of your site files. By the way, don't try to overwrite with files from higher versions than 1.5 : it simply won't work. The last stable package for the (discontinued) 1.5 is 1.5.26, available through JoomlaCode : http://joomlacode.org/gf/project/joomla/frs/
If this solves your issue then you can upload the files downloaded from Joomla to your server (except the configuration.php) .
Regards!
Edit: as you can see, your articles will not be removed, as they are stored on the database.

Can html5 be used front end for an ftp server?

quick question to day. I've done a little digging around on the net and i can't really find a very definitive answer.
Basically, I run my own server on a redundant dual core, 4gb ram 2Tb pc (server1)
And on here, i would like to make an FTP partition. Reason being, i would very much like to be able to transfer files back and forth work, uni and home as i please.
I also run a website from my server which allows me to stream media from my hard drive to any laptop, tablet, desktop, iphone, android.. you name it!
I would LIKE to be able to add a section on my website where by I can log in and access my files as a sort of HTMF5 Front end.
I am aware and know how to create a login with a database which has md5 hash and store cookies to stop un-authorised people accessing my ftp.
Any help or a shove in the right direction would be much appreciated! Thanks in advance :D
Yes it's possible. but that won't be HTML5 ftp server etc that you mentioned.
You can achieve this by installing a web server on your machine like apache and then make directories public - run Apache on some port and you will be able to access the directory. if your server is running on port 8080, URL will be like: domain.com:8080 - You can style directory using this simple script & make this password protected as well using .htaccess .
osFileManager
The other option is to use some php script. Many commercial scripts are available and as well as open source. i recommend you trying osFileManager - it has a lot of features like:
Browse the directory structure
Create files
Upload files
Rename files
Move files
Delete files
Edit files
Change permissions
Change password
Create users
Here is it's installation instructions: http://www.osfilemanager.com/osfilemanager-docs.html
or a paid HTML5 & AJAX based script can be bought for 14$ from here:
http://codecanyon.net/item/file-manager-and-backup-system/5177206