Permissions On Apache Server

Jun 10, 2009

Not sure if this is an Apache issue but I'm guessing it is. I also have cPanel on this server.

I made a PHP script and placed it on my server. This script has a function that will create a new file on the server, say a .txt file with information in it. When I go to do anything with that file that is created such as edit it, I get a permission denied from the server.

For example, FTP returns:

"Response: 550 Rename/move failure: Permission denied. "

Someone guessed that it is possible that when the PHP file is creating a new file on the server, it automatically places its permissions under root/apache, making it inaccessible for the cPanel user... if this were the case how could I potentially solve this issue?

View 5 Replies


ADVERTISEMENT

Change Permissions In Apache

Feb 12, 2007

I am trying to change permissions on my perl and CGI files to execute them for my website.

I have a laptop I am using as my server. It has Windows Server 2003. I have Apache, and Active Perl. IIS is disabled. My website loads just fine.. I just cant change the permissions or find out how.

How do I change the permissions on my perl and cgi files?

View 7 Replies View Related

Apache :: Permissions For Web Root

Sep 1, 2014

My web server starts from /var/www/xxx/xxx/

I have installed phpmyadmin, and i tried placing the folder both in /var/www/xxx/xxx/ and /var/www/ and neither seem to work.

How I can get it to show up in the /var/www/xxx/xxx so i can just access from my.site.name/phpmyadmin

Even more preferred would be keeping it in the /var/www/ folder, but still being able to access my site at my.site.name/index.php and my phpadmin by my.site.name/phpmyadmin

View 1 Replies View Related

Apache Nested Directory Permissions Or HTAccess

Apr 9, 2014

Is it possible to lock for example the site down with basic auth and lock a subdirectory of it with a different basic auth?

Example: URL...

<LocationMatch "/*">
AuthType Basic
AuthName "Main Gate"
AuthBasicProvider file
AuthUserFile /etc/accounts
Require valid-user
</LocationMatch>

[code]....

View 1 Replies View Related

Plesk 12 Permissions For Sites Using Apache For User And Group

Jan 6, 2015

We have several sites on one server. When I use the plesk wordpress manager it some how updates the User and Group permissions on folders and files with the username apache. How or what command do I run to get it to use the site username and psacln. It appears something maybe in an update or whatever has caused this issue. This only occurs with wordpress and drupal updates from the plesk interface.

What command can I run just to update the permissions to update all users to a username and psacln security settings on folders and directories.Running Plesk 12.0.18 and CentOS7

View 1 Replies View Related

Fail2ban Won't Set Jail On Plesk-apache - Permissions Error

Jan 10, 2015

Compliments about the integration of Fail2Ban. I saw a lot of blocks on different IP addresses that tried to logon to the server. Fail2Ban is setup to monitor SSH, FTP, and some more.

It is however not possible to activate the "plesk-apache" and "plesk-apache-badbot" jails.

I receive the following error when I try to activate the jails:

Cannot activate the selected jails: f2bmng failed: ERROR NOK: ('plesk-apache',)
ERROR NOK: (13, 'Permission denied')
ERROR NOK: (13, 'Permission denied')
......
ERROR:f2bmng:Command '['/usr/bin/fail2ban-client', 'reload', 'plesk-apache']' returned non-zero exit status 255
ERROR:f2bmng:Failed to reload following jails due to errors in configuration: plesk-apache

When i look into the logfile of fail2ban, i see that there are no permissions for the log files:
2015-01-10 20:14:40,987 fail2ban.comm [19428]: WARNING Command ['set', 'plesk-apache', 'addlogpath', '/var/www/vhosts/system/[domainname]/logs/error_log'] has failed. Received IOError(13, 'Permission denied')

The file permissions are set as following on all the log files:
-rw-r--r-- root root

I'd really like to activate Fail2Ban for Apache too.

View 4 Replies View Related

File Permissions On WIndows Server 2003

Apr 25, 2009

i am more a linux guy than windows, but recently i have to switch to windows.

In my FTP program I logged in one of my domains and tried to edit file permissions for a folder but in my windows filezilla server it game me 504 command not implemented for that parameter error message.

I read a little and learned that windows dos not support posix.

How can a change the file permissions on windows machine?

View 4 Replies View Related

Windows 2008 Permissions And Filezilla Server

Jun 26, 2009

I'm running FileZilla Server on Windows Server 2008 Web Edition SP2. Everything works fine but I need to figure out how to make FileZilla set permissions on a file after its uploaded.

What is happening when I upload a file to the web server using through FileZilla Server the only permissions set on the file are for
SYSTEM
admin
Administrators

So when I try to access the file through a website I get a 401 - Unauthorized error and I have to go through and manually set the permissions every time on the server.

I need to find out how to make FileZilla setup the correct permissions on the file for the IIS user. Any help would be appreciated.

My Sever setup
DotNetPanel
IIS 7.0
Windows Server 2008 Web Edition
FileZilla Server
8GB Ram

View 2 Replies View Related

Plesk 11.x / Linux :: Python Permissions To Write Files In Another Web Space On Same Server

May 15, 2014

I have a python script that generates images and is able to write them into a directory on the same web space

However, I would like the same script to write files into another directory located in the web space of another domain on the same server.

For example, script lives here...
/var/www/vhosts/domain1.com/httpdocs/scripts/myscript.py

this works...
/var/www/vhosts/domain1.com/httpdocs/scripts/images/

this fails...
/var/www/vhosts/domain2.com/httpdocs/web/images/

The directory structure already exists, so there is no need to create any new directories

I have tried setting permissions for the destination "images" directory to 777 and that didn't work.

Do I need to specify something within Plesk to enable it to write to another directory?

View 6 Replies View Related

FTP + Permissions

Jun 3, 2009

I'm trying to get FTP working on a FreeBSD 7.1 box running ProFTPd.

The service runs but the issue is that the users cannot write to their home dirs. The server returns a 550 error.

Previously ProFTPd ran as user and group of "www" but I changed it to "nobody", which did not change anything.

I'm sure the issue is that of the home dirs for the users being owned by the users themselves and the service account not having access to write in that directory.

I'm not sure what is best to do here. Do I lift permissions so everyone can write to the home dirs? or is there a better way?

View 6 Replies View Related

777 Permissions For Www

Jun 2, 2009

Let me start off with saying: I haven't had any suspicious activity, nor do I think I was compromised.

I logged in as root, and was simply clicking around my dedicated server and came across a few folders with permissions at 777. ALL are above /public_html

Irregardless, is this safe? I recall reading a bunch of topics on here, that /tmp needs to be hardened. Isn't this also above /public_html?

For one example:
/var/tmp is chmod to 077
..inside is a bunch of sess_ files

Is this folder open to hacking?

View 14 Replies View Related

Ftp Permissions On Vps

May 5, 2009

just buy a vps, all fine, but can not move or delete file by ftp after file uploaded by ftp and unzip by ssh. support say i need to use chown to change user to ftp user. but there is not ftp user on ssh when chown /dirctory ftpuser

View 4 Replies View Related

Web Permissions

Jan 19, 2007

when I setup a server I don't really care about permissions, I do lot of nasty chmod 777 * and stuff to easily get away with permission issues, since I'm the only one with access anyway.

But for a server that may be used for webhosting, how do I go about setting permissions in home directories so that programs like apache/php can still read/write to the user's web data? I'm guessing I need to add the user apache to each user's group and chmod 770 but I'm not too sure how to go about that, or if that's even how I should do it.

View 0 Replies View Related

IIS Permissions

Mar 27, 2008

how permissions work in IIS in basic english

I spent ages trying to get a crm system working on my server and it only worked without errors when I changed the anonymous user privileges to "change" instead of "read".

Now this is meant to be insecure right? But my question is.... what exactly can go wrong with this configuration? In what ways is it insecure?

Also... correct me if I'm wrong but do:

- Web server permissions: only affect what scripts can run locally etc... and

- User / file level permissions: Protect against anonomous access changes from the net?

View 3 Replies View Related

VPN- Permissions On /dev/net/tun

Jul 4, 2007

I have installed openvpn on the machine but i am having issues. I had to create /dev/net/tun manually and get permission errors on the device. I installed the openvpn rpm from [url].

on service startup i get the following log

Jul 4 22:03:09 gizmo openvpn[9517]: Note: Cannot open TUN/TAP dev /dev/net/tun: Permission denied (errno=13)
Jul 4 22:03:09 gizmo openvpn[9517]: Note: Attempting fallback to kernel 2.2 TUN/TAP interface
Jul 4 22:03:09 gizmo openvpn[9517]: Cannot allocate TUN/TAP dev dynamically
Jul 4 22:03:09 gizmo openvpn[9517]: Exiting

i installed from an rpm package on my cent0s 4 virtual machine, i followed the tutorial here, but to summarise after installing:

yum install openvpn -y
#Now check that it works
service openvpn start
#service fails - reason permission error on /dev/net/tun

running ifconfig i do not get a TUN/TAP device listed, im guessing as i haave never used vps before but i presume if all was working well i would get an additional interface listed alongside vnet0?

i have asked my vps provider to check i have TUN access, however in the meantime i would like to check there is nothing fishy with my setup?

View 1 Replies View Related

Ftp Permissions

Jul 24, 2007

Running LAMP, CentOS and webmin.

I've created a user and group for FTPing to a new domain. Problem is that when using Filezilla I get 'critical transfer error' after uploading files.

I have no problem with doing uploads as root, so this would appear to be permission problems.

So my question is, what do I need to do with the ftp user / or group in order to give appropriate permissions to place files under the public_html directory? Either through SSH or via Webmin...

View 2 Replies View Related

FTP Permissions

May 29, 2007

I have some folders and files which simply won't let me upload, rewrite, rename, change permissions etc. Any action I try to perform on them simply gives me an error such as

550 Could not change perms on /public_html/foldername: Operation not permitted

The current permissions seem fine (755) and cpanel's file manager isn't having any luck either.

It's for a zen-cart site

Machine is running Cent OS with the following;

cPanel Version 11.2.17-CURRENT
cPanel Build 12566
Theme x3
Apache version 1.3.37 (Unix)
PHP version 4.4.6
MySQL version 4.1.22-standard
Architecture i686
Operating system Linux

View 11 Replies View Related

/tmp Permissions

Nov 17, 2007

while am installing some software wordpress plugins [ podpress ]

i have some problem in /tmp permission to the site owner!

how can we handle this problem so i can have a permission in my tmp folder

i try to chmod the tmp to 777 from the SSH root ... but the problem didn't solve ...

View 14 Replies View Related

Where Should I Specify WHM Login Permissions?

Jun 7, 2007

Yesterday I upgrade to cPanel 11... I can perfectly login using WHM, but one of our customers can login using root, this is the error:

Access Denied

The server was configured to not permit you access to the specified resource. If you believe this is in error or inadvertent, please contact the system administrator and ask them to update the host access files.

Where should I specify WHM login permissions?


Thanks.

View 4 Replies View Related

File Permissions With XP Pro And IIS

May 19, 2009

I need to run my PHP application locally on my XP Pro machine with IIS. Part of my application requires creating files, how do I set write permissions on folders like you can with windows server?

Is this possible with XP pro

View 3 Replies View Related

Correct Permissions To Use

Aug 27, 2009

I am in the process of setting up my server and have come to the stage where I am uploading my actual website scripts and files. I am a little confused however as to what permissions and file/directory ownership my website files should be set to.

My web root is set to 755 (rwx/r-x/r-x) with Owner as root, and Group as root. All files within the web root are set to 744 (rwx/r--/r--) with the owner and group the same as the web root. The permissions set allow php scripts to function but I am not sure if the group should be set to root on all these files, is this correct?

My site users have no ftp access if that makes any difference to ownership.

View 4 Replies View Related

Crontab Permissions

Mar 18, 2008

In trying to setup a cronjob on a new server I notice that cPanel tells me that usr/bin/crontab permissions are wrong and that they need to be changed to 4755.

When I log in to the server with WinSCP and attempt to change the permissions it just doesn't do it ... it looks like it's doing it, no errors, but it just leaves it the same!

View 4 Replies View Related

Webdav Permissions

Mar 10, 2008

I tried installing webdav on my VPS, but I'm having problems. I added the module as a DSO. I'm able to connect to it fine (in multiple client (dreamweaver, cadaver)), however, when I try to upload, I'm not able to. Apache has permissions for that directory and for the lock file. However, I get a 403 Permission Denied error.

View 1 Replies View Related

Cannot Change Permissions

Feb 6, 2007

I'm using wsftp checking permissions in domain.net in this directory:
/public_html/mambots/content/plugin_jw_sig

through wsftp i saw chmod 755 but when i try to delete this directory appears with 550 and i can't delete it

So i used File Manager tool in Cpanel, selected directory to erase it, seems like was done, but when i refresh page the directory it's still there, so i try to change permissions because apparently it has 755 but i can't do anything with it, so when i click button to change permission i got an error message [a fatal error or timeout occurred while processing this directive]

Then i go trough wsftp to check again and this directory it's still there

View 4 Replies View Related

IUSR Permissions

Jul 12, 2007

I've created a new site on an IIS server. And when I try to access it, I get a window authentication window.

Seems I've had this happen before and it was a problem with IUSR permissions or password?

View 1 Replies View Related

Permissions With An Account

May 24, 2007

This is what you get when you go to this one site on the server in your browser:

Forbidden
You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

This is a site in a reseller's account. The reseller had suspended it for non-payment. The account owner paid their fees, and the reseller unsuspended it. But now the site can't be reached.

I chowned and chmodded the account, but that didn't fix it.

View 3 Replies View Related

Default Permissions 775

Nov 11, 2007

I was on a server (reseller account) that ran PHPSuexec and default permissions were 755/644 as they should be.

We moved to a new cPanel 11 server and default permissions are 775/664. This is the same on 4 different servers from 4 different hosting companies (all reseller accounts). Three are CentOS, one RedHat Enterprise.

I entered a support ticket for one company and they said the permissions were not right and supposedly fixed it (I have left that company since then so I can't check).

The other hosting companies say their umasks are right and would not change it.

Apparently the apache installation defaults to these permissions which, security wise, seems kinda strange.

Can anyone shed some light on whether or not this is secure and does this mean I'm going to have change permissions evertime I upload files to install shopping carts, billing software etc.? (It's not hard it's just stupid to have to).

Should my hosts change apache system umask (022) to make permissions default to 755/644?

View 2 Replies View Related

IIS Migration - Permissions

Dec 21, 2007

I'm migrating between two IIS servers using the migration tool.

Is there a way to copy of user permissions? Or at least see all the permissions from the original server?

View 7 Replies View Related

Folder Permissions Set To 0

Jan 16, 2007

I just ran into a very odd problem with my server. I was checking out my banner links on other sites when I realized none of them were displaying. I quickly checked the folder I keep the image in and I got a forbidden access warning. I checked the folder from ftp and it said the permissions were set to 0, instead of 755 like they should be

I can't move, delete, view, or alter the folder in any way.

View 1 Replies View Related

File Permissions

Dec 29, 2007

my question is relating to a "DJ Panel" that I am making. I am looking into various file permissions and was wondering if all PHP files that are part of the DJ Panel have file permissions of 0666 will that pose any kind of security threat (make life easier for hackers) or do you see any downside to doing this?

View 3 Replies View Related

No Permissions To Edit Css

Jun 26, 2007

I uploaded a joomla template and now need to edit the css file. But it says it is unwritable. Earlier, I had a problem editing an image. My host said, "Since these files were created the webserver, you didnt have ownership to change these files."

So perhaps the same happened with the css file? What do you think?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved