Kurinchi Blogger Scribbles …


Posts Tagged ‘file permission’

Aug 16
2009

Premature end of script headers: apache error

Last updated: August 11th, 2009

Apache errors and the approach to solve it

Premature end of script headers
500 Internal Server Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.

Some troubleshooting tips:

i) Check /var/log/apache2/error.log (in ubuntu, check the respective apache error log location for the messages)

ii) Check if the content type of the page is correctly set for the html content output.

print “Content-type: text/html\n\n”;

iii) Check if a valid permission has been given for the file to get executed. The file need permission 755 for it to be executed on the server.

iv) Check if the configuration path, inclusion path are set correctly in the referenced programs

Jun 29
2009

Linux: Umask file, directory permission settings

Last updated: June 30th, 2009

What is umask?
The command umask is used to set the file, directory permissions.

In linux, you can set the file or directory permission for all users by editing /etc/profile (or in /etc/bashrc) file or for specific users by editing their respective ~/.bashrc file.

For files, the default permission settings are 0666 (execute permission is disabled) and for directories it is 0777

To produce symbolic output, you can use umask with -s option
$ umask -s

(more…)


Valid HTML 4.01 Strict  Valid HTML 4.01 Strict