How NOT To Require CHMOD 755 Permissions To Create, Write And Delete Files On Linux

Dec 30, 2008

On my previous server and on some other hosts, I was able to write to files (for example with PHP) without having to chmod the files first.

Now I cannot, and files are required to be chmoded properly so I can write to them.

I cannot even touch() a file with PHP.

Is there any way to have this permissions removed?

I don't want to chmod the all thing, all I want is to change the configurations so I can fwrite() or file_put_contents() normally.

I's a dedicated un-managed server, so basically any advanced configurations can be done.

View 8 Replies


ADVERTISEMENT

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

/tmp Create/write LINUX

Jun 21, 2009

when i am trying to use php my admin i am getting

#1 - Can't create/write to file '/tmp/#sql_bba_0.MYI' (Errcode: 30)

when i am trying to delete a file from /tmp i am getting
rm: cannot remove `sess_***': Read-only file system

i have Linux box with cpanel,

View 6 Replies View Related

Can't CHMOD 777 Files, But I Can CHMOD 777 Folders

Dec 4, 2008

On one of my servers i can't CHMOD 777 Files, but i can CHMOD 777 Folders.

Files are chmod 777 but on scripts installation... It's Said Please Chmod Example.php to 777
Centos 5
PHP 5
Apache 2.2.3

View 11 Replies View Related

Plesk 12.x / Linux :: Write Recursive Rights On Files / Folders

Feb 20, 2015

I have a concern during the installation of PrestaShop. I created a subdomain through Plesk, put my files on my server via FTP. During installation of PrestaShop, I have a problem:

Recursive write permissions for the Apache user on the ~ / config /

My user is "NOWIS" and my group is "psacln" ....

I think the user "NOWIS" has no rights as "Apache" ....

View 3 Replies View Related

Plesk 12.x / Linux :: Create / Delete Domain Hangs

Jul 12, 2015

This happens when I try to add a new domain or when I am trying to remove a domain. It just hangs, the browser says waiting on server while plesk just hangs. This is a fresh new install of Plesk 12 as well. I added a bunch of new domains tonight. No crazy changes or anything to plesk. I have found nothing so far in my search.

View 1 Replies View Related

Plesk 12.x / Linux :: 12.0.18 - How To Set Permissions To 770 By Default When Create Vhost

Oct 5, 2014

When a customer use the wordpress auto installation tool, all work ok.

But, when the customer try to install wordpress manually (Uploading by FTP), it returns different permissions errors.

Example: "wp-config.php" cant write .

I compared the permissions of both vhosts (WP-Auto-install and WP-Manually-Install), and have totally different permissions.

WP-Auto-installed : /httpdocs = 770
WP-Manually : /httpdocs = 750

How I can set permissions to 770 by default when create a vhost? to avoid the customer having to do it manually.

View 4 Replies View Related

Setting Directory Read/write Permissions With WAMP And IIS

Jul 26, 2007

I'm using WAMP and IIS for the first time so bear with me if I overlooked something obvious.

I have a simple script that creates a few files and then attempts to move them to a subdirectory. I am getting a permission denied error when attempting to move the scripts in WAMP. I am uncertain how to set directory permissions in WAMP. I am also unsure how this will affect the script when I migrate it to an IIS server.

View 2 Replies View Related

Plesk 12.x / Linux :: Delete Subdomain Without Removing Files Or Database?

Aug 30, 2014

I cannot seem to find a conclusive answer to this. I use subdomains to create client websites then once they are in their own domains the subdomains still remain. Can I delete only the subdomain and leave all the files or at least leave the database since it is still connected to the new domain. Example below.

subdomain.example.com uses database1

newsite.com still uses database1

Is there a way to copy the database into the new domain?

View 1 Replies View Related

Plesk 11.x / Linux :: Remove Domain Alias Warns It Will Delete All Related Files

Sep 2, 2013

I think the wrong text is displayed for the option "Remove Domain Alias".

In Plesk 11.5.30 Update #13, in a Webspace, on the Websites & Domains tab, if I click an alias, a window appears for the alias with the option to "Remove Domain Alias". If I move the cursor over the text "Remove Domain Alias", or click on the link, I see a pop-up: Removing this website will also delete all related files, directories, and web applications from the server.

I think this is incorrect because removing an alias should not remove any files, directories, and web applications.

View 3 Replies View Related

MySQL Error: Can't Create/write To File '/dev/shm/MYxQT8lz'

May 19, 2008

one of my site shows this error

MySQL Error: Can't create/write to file '/dev/shm/MYxQT8lz'

I checked space on the server is still 25 GB free,

View 1 Replies View Related

CHMOD For Files

Jun 18, 2007

I just moved my folder_A from computer A to computer B, what is the command to change the permission of owner, access, group for every files in that folder_A at 1 time?

in the folder_A has hundred of files. Let's say , i want to change owner = laptop, access = read and write, group = user, access = read and write , what is the specific command to do that for all the files in folder_A at 1 time?

View 5 Replies View Related

How To Chmod The Files And Subfolder + File.php To 755

Jun 25, 2007

i download a script .. when i unzip the script .. all the folder have chmod to 700 + 600

what command could let the folders and sub folders have chmod to 755 ( as root )

i command this

chmod 755 *

but the folders inside the folder didn't chmod to 755

there is alot folders thats why its hard to do it manually :p

View 7 Replies View Related

How Do I Move Files & Subdir (without Changing Chown & Chmod)

Apr 1, 2008

How do I Move Files & Sub directory without changing Chown & Chmod them?

Situation:

I need to move /home/user/public_html/blog (all files & subdir) into /home/user/public_html

View 8 Replies View Related

Cant Delete Files

Jul 12, 2009

im try to delete some file from cpanel but everytime i delete nad refresh they come back
also if i try to change the perms it does not let me?

View 14 Replies View Related

How To Delete Files

Aug 13, 2008

i have installed the Domain Technologie Control Panel on Debian Etch, and have 2 folders that will not delete via FTP

I was wondering if anyone had a tutorial or could tell me how to be able to delete them....

View 14 Replies View Related

Delete Files In /var/log

Aug 3, 2007

I am currently freeing up some space on my VPS and want to know if it ok for me to delete the following files in: /var/log/

apf_log.3
apf_log.4
boot.log.3
boot.log.4
cron.3
cron.4
exim_mainlog.3.gz
exim_mainlog.4.gz
exim_paniclog
exim_paniclog.3.gz
exim_paniclog.4.gz
exim_rejectlog.3.gz
exim_rejectlog.4.gz
maillog.3
maillog.4
messages.3
messages.4
rpmpkgs.3
rpmpkgs.4
secure.3
secure.4
spooler.3
spooler.4

View 2 Replies View Related

How To Delete Backup Files

Oct 25, 2009

I have files on offsite backup from a previous server - I can login via putty ot winscp.

Putty login shows:

Quote:

FreeBSD 6.1-RELEASE-p3 (BACKUP3)

i want to delete them all - how can I do this in the most secure manner with the access I have?

View 9 Replies View Related

Safe To Delete These Files

Feb 12, 2008

I am running my VPS on direct admin panel, my disk space is going low, so i am deleting few junk / log files

Kindly let me know

1) is it safe to delete data of this directory -

/var/log/httpd/domains

The File names in above directory are such as - " domain.com.bytes "

As it is occupying 600 MB space

2) where can i delete much junk / temp files, to free up space.

View 5 Replies View Related

How To Delete Specific Files

Oct 10, 2007

In one folder, I have thousand of files, and I want to delete 100 specific files. Saying specific files, I mean all of them has a keyword. So, I can find out all of them by using
grep "keyword" *

but dont know how to delete all of them. Not deleting one by one.

View 2 Replies View Related

FTP: User Cannot Delete Files, Etc.

Aug 20, 2007

I'm having a problem with one of my users on my box. For some reason they cannot delete files or change permissions and sometimes while uploading, it says the server has reset.

I haven't had any issues myself but what could be causing this?

I am using a Linux Fedora 4.0 box with Cpanel.

View 14 Replies View Related

Which Files In /var Are Safe To Delete

May 5, 2007

I have WHM 11.1.0 cPanel 11.2.1-C11635
FEDORA 4 i686 - WHM X v3.1.0

My /var partition is over 64% full. 2 directories in there show a lot of space being used.

One of these is /var/lib/mysql
du -h --max-depth=1 #
shows user accounts on the server with their database names. Are these just logs, or are they the actual databases? (Probably dumb newbie question)

The other big one is /var/log/munin Is there anything there I can delete?

View 14 Replies View Related

Apache :: How To Delete Files

Jun 5, 2013

My server is with Centos OS. I have a cache directory which has tons of scrap files. I am unable to delete it. rm -rf dirname gives an error.Is there any way to remove this directory quickly. 

View 6 Replies View Related

Cron To Delete Files Every 24 Hours

Jun 15, 2008

I want to setup a crontab to delete a file every 24 hours, I am not the best in crontab so was wondering if one of you could please give me the command I should use?

View 7 Replies View Related

Delete Some Specific Files From All Subdirectories

Jan 4, 2007

Useful unix-command trick to quickly remove i.e. Thumbs.db files, WS_FTP.LOG files or *.fla files, recursively through directories.

It could be a real pain on a huge directory tree ;-)

Removing all *.fla files from /home/user/ and subdirectories...

Code:
# find /home/user/ -name *.fla -ok rm {} ;
Removing all WS_FTP.LOG files from /home/user and subdirectories...

Code:
# find /home/user -name WS_FTP.LOG -ok rm {} ;
Removing all Thumbs.db files from /home/user and subdirectories...

Code:
find /home/user -name Thumbs.db -ok rm -f {} ;

View 14 Replies View Related

Can't Delete Files From CPanel Server

May 11, 2007

I've been using CPanel for a few years now and I've encountered an error that I have no clue how to fix it. Basically the files have been with me for the last two or three years and I've changed them from server to server. I'd say these files have been through about four or five servers. The funny thing is I can't delete any of these files. The files are in a folder under public_html and I can't delete the folder or any of the files or folders inside of that folder. I've tried through FTP and through CPanel.

The FTP error I get (I'm using WS_FTP Pro) is:

# transferred 4277 bytes in 0.063 seconds, 534.625 Kbps ( 66.828 Kbps), transfer succeeded.
226-Options: -a -l
226 58

The CPanel error I get (through File Manager) is:

[a fatal error or timeout occurred while processing this directive]

and under the trash can in File Manager:

Unable to change directory to /home/mydirectory/.trash! You do not seem to have access permissions! (System Error: Permission denied)

I even CHMODed all of the files to 777. I don't know how to get rid of these old files, how do I do it? I also have root to the server if that helps.

View 3 Replies View Related

Copy Files/dir Without Permissions

Apr 17, 2007

I am trying to copy files from one account to another through SSH, files copy with old account permissions and ownership.

Is this possible when I copy, ownership autometically changed to new account.

I am using CPanel and have root access.

View 2 Replies View Related

What Is Windows Equivalent To Linux CHMOD 666

May 5, 2009

On a Linux box, I know how to set a file to CHMOD 666 permissions. How do you set world writable permissions to a file on a Windows server?

View 7 Replies View Related

Delete Backup Files Of Terminated Accounts

Jun 18, 2009

What is the best way to remove backups files of terminated accounts in the /backup/cpbackup/daily directory?

View 1 Replies View Related

Delete Files Created On A Specific Date

Jun 28, 2008

Is there a quick shell command to find (inside a directory) and delete all the files created e.g. on January 10, 2008 ?

View 2 Replies View Related

How To Easily Search And Delete Specific Files

Aug 15, 2008

to delete file1010.jpg and filetest.jpg from /public_html/Storage

problem is there are hundred thousands .jpg files stored on /public_html/Storage

How can I easily search for these 2 files and delete it?

I am using Cpanel & Ftp Program Ws ftp pro, Which one is better to use to do the job?

View 3 Replies View Related







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