wordpress error - wordpress

i completed my client site in wordpress,then i uploaded this site into client server(FTP) but site is not going to open
this error is occur
"
Warning: fopen(piecemakerXML.xml) [function.fopen]: failed to open stream: Permission denied in F:\inetpub\vhosts\kni.com.my\httpdocs\wp-content\themes\twentyten\header.php on line 133
can't open file"

It's a file system permissions problem. WordPress does not have permission to access that file or the folder it's in. You'll have to change that. Most FTP programs have a CHMOD command built in, or you can shell in to the server, or use the hosting control panel.

Check the permissions of the file to ensure it is at least readable by the owner. And if you also want to write to it, it should be writable
Check out the page on Wordpress about file permissions. It has a pretty good list of example permissions
http://codex.wordpress.org/Changing_File_Permissions
Also Check out wikipedia
And to Change file permissions, do what #Dan said in his answer.

Related

Why does a new default directory have user executable permissions where as a new file only has user read and write permissions?

Noticed this when creating a new directory in unix, and was just curious as to why this is so.
Thanks
A new directory created by a user and owned by the user with full permissions is no big deal. However, a new file/program if executed accidentally or before configuration could have catastrophic results. So the designers decided to give you a layer of protection.
It also prevents other users from executing the file unless you specifically grant permission.
Because you need the executable permissions to naviguate into the directory.
So basic permissions allow user to read file (read file permission), and to access file in directory (directory execute permission).
Note that read permission on a folder allow user to list files in it. (But doesnt allow to read them unless execute permission is granted too as I said in the first place)
Basically, +x on a directory means that the user can 'execute it' hence change into it (replace user by group or other depending on position in permissions).
Hence drwxr--r-- means only user can change into directory. More here.
The directory needs to have executable permissions so you can do things such as cd into it. Also the executable permission lets you look into the directory for inode information of the files it contains.
More info can be found at this source.

openshift wordpress plugin needs to be granted write access, how do this?

I am trying to install CiviCRM in my openshift wordpress 'gear' And I am getting the following when I attempt to run civicrm's installation wizard:
The user account used by your web-server - 542ddc2950044666c40008d9 -
needs to be granted write access to the following directory in order
to configure the CiviCRM settings file:
//var/lib/openshift/542ddc2950044666c40008d9/app-root/data/plugins/files
Does anyone know if what it is asking is possible?
and then how do I go about setting that?
Thanks!
The plugins/files/civicrm directory is where CiviCRM stores its cached templates, file attachments, premium (thank-you gift) images, and more. It'll need to save stuff there regularly, not just at first.
The best thing to do is to log in through SSH like developercorey recommends and:
cd ~/app-root/plugins
chmod 755 files (changing the permissions so the owner can write and everyone can read/execute)
chown 542ddc2950044666c40008d9:542ddc2950044666c40008d9 files (making the user that the web server runs as ("542ddc2950044666c40008d9" as mentioned in the error message) be the owner of the directory
have the installer check again
SSH into your gear using the rhc ssh command
cd ~/app-root/plugins
ls -lah
Look for the "files" directory and see what the user and the permissions are on that folder, you can change with the "chmod" command to allow it to be written to by the web server, but be careful what you do or you could cause a major headache for yourself (like getting your WP blog hacked). Hopefully the instructions for that plugin include setting the permissions to something reasonable when you are done.

How can I mklink to a file share so that a web can save uploaded files to it?

How can I mklink to a file share so that a web can save uploaded files to it?
My web and file servers are both apart of a workgroup. I don’t care about security and do not want a domain solution.
Originally, I had AWeb with subfolder: Work folder and it’s subfolders with modified permissions for IIS_IUSRS and my AppPool Indentity set as NetworkService... and it works great.
Now, I want to replace the Files folder with a symbolic link to a file share.
C:\inetpub\wwwroot\AWeb\Work\Files
From elevated prompt:
mklink /d “C:\inetpub\wwwroot\AWeb\Work\Files” “\\FileServer\Files”
C:\inetpub\wwwroot\AWeb\Work\Files
This works under my account, but not for NetworkService account. How can I get this to work? I’ve tried some of the solutions in forums like elevating the prompt to administrator then to system using psexec.exe but still no go.
How can I log or check what’s really happening when I get the error that access is denied?
How can could I set the file share access for an account like NetworkService when I have no idea what the password is?
Looks like the best way is to setup iSCSI target and initialator. But would still like to try without.

Server wordpress permissions

please be gentle as my server knowledge is next to none!
I've been asked to make some CSS changes to a wordpress site - fine, I'm good at that! I have all the ftp info and the wordpress passwords, but as I edit files and try and re-upload them using Dream Weaver I get an error that I don't have permission to write to the particular file. So, the first thing I thought to do is right click the file and edit permissions, but as I try and do this I get the same problem of:
An FTP error occurred - cannot put the_file.js. Access denied.
The file may not exist, or there could be a permission problem.
Make sure you have proper authorization on the server and the server is properly configured.
File activity incomplete. 1 file(s) or folder(s) were not completed.
Files with errors: 1
So, my question is - by knowing the ftp details is there any way I can change the permissions, or is it something to do with server configuration that I have no control over? Many thanks
This means that the FTP username you were provided does not have permission to modify files. YOu won't be able to reset the permissions either. You should contact the server admin and have them grant your user account the appropriate permissions to modify files.

HTTP Error 401.3 for specific .pdf file

I just uploaded two .pdf files on my server. They are both in the same folder.
The first one can be normally accessed but for the second one I get an
HTTP Error 401.3 "You are not authorized to view this page"
This looks weird to me. Do you have any idea why is this happening?
check filesystem permission if you are running linux. the user running the webserver should have read permission on both files you can do this with most ftp software or if you have shell access chmod a+r /path/to/your/file.pdf
if that does not solve the problem look for error in log file usually /var/log/apache/error.log

Resources