Hey,
I am using a server of my friends, and i created a directory through php with exec("mkdir $dir") these are now imposible to get into and delete. (well not impsobile, impossible for a kid my age who doesnt no what they have done) It says permission denied i use smartftp and that covers everything i tihnk.has this happened to anyone before and know how to fix it!
Thanks alot
mague
10 2949 pbmods 5,821
Recognized Expert Expert
Heya, Mague.
Changed thread title to better describe the problem (did you know that threads whose titles contain phrases such as, 'problem' actually get FEWER responses?).
First off, you'll want to use mkdir(), as then you're less likely to have these permissions errors.
You can try resetting the permissions of the folder to something more agreeable by calling: - chmod('/path/to/dir', 0755);
Note that the leading zero on '0755' is important.
If you get a permission denied error when you attempt to do that, you'll need to log into your server with root permissions and delete the folder. This may involve a call to your hosting provider's support team.
For more info on what's going on, check out this article.
Hey,
I am using a server of my friends, and i created a directory through php with exec("mkdir $dir") these are now imposible to get into and delete. (well not impsobile, impossible for a kid my age who doesnt no what they have done) It says permission denied i use smartftp and that covers everything i tihnk.has this happened to anyone before and know how to fix it!
Thanks alot
mague
thanks i used the root user just if your intrested
Hey,
i have a server, i do not have root user rights. When i use mkdir("$dir") it make the dir and the chmod is what i like it but then i cannot access it. When i try to go to it through smart ftp i get this error
[21:37:21] CWD /htdocs/graphica/testing
[21:37:21] 550 /htdocs/graphica/testing: Permission denied
I have used an online ftp thing called http://ftplive.com/ftp.php
name permissions user group date
images drwxr-xr-x flume flume Aug 26 06:38
testing drw-rw-rw- apache flume Aug 26 11:25
If there are anyidea please post them
thanks heaps
Mague
ps. 13 years old so be nice
ak1dnar 1,584
Recognized Expert Top Contributor
I'll give you a simple advice when using FTP tools big boy.
Never use any tool that you cannot make a trust on it. They might stole up your usernames passwords.Its my opinion.
How about using FileZilla and Feel the Freedom of the OpenSource Products.
pbmods 5,821
Recognized Expert Expert
Merged duplicate threads.
Thanks for the advise but this still doesn't solve my problem, this has nothing to do with my ftp program the php script creates the folder but the folder has no permissions in it. Thanks for the advise though i will stay with my SmartFTP. I will be happy if someone could help me with the problem with MKDIR() thanks
Thanks alot
Mague
pbmods 5,821
Recognized Expert Expert
Heya, Mague.
It is unusual for PHP not to have permissions to access a folder that it has just created. This may be a symptom something funky going on in your server's Users/groups setup.
Try putting this before your mkdir() call:
This will set the permissions mask to 0022, which means that any files or folders you create will start out with 0755 permissions.
Heya, Mague.
It is unusual for PHP not to have permissions to access a folder that it has just created. This may be a symptom something funky going on in your server's Users/groups setup.
Try putting this before your mkdir() call:
This will set the permissions mask to 0022, which means that any files or folders you create will start out with 0755 permissions.
That helped cause it gave me permission to delete it instead of having to get my friend (root user) to do it. But i still cant view it through ftp and http. There error page that comes up for the site is 403 forbidden and looks like this
Forbidden
You don't have permission to access /graphica/CoryThompson/index.php on this server.
--------------------------------------------------------------------------------
Apache/2.2.2 (Fedora) Server at flumesoft.com Port 80
I have deleted this now cause it's anoying on my server cause its not letting me use it. If you have any idea's please tell me
Thanks
Mague
ps. Read my other things for more information
pbmods 5,821
Recognized Expert Expert
Heya, Mague.
Any chance you have an .htaccess file in there that is preventing access? A file with 0755 permissions should be readable by anybody.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Richard Muller |
last post by:
Hi,
I new to ASP. I have a problem with an ASP script opening a file for
writing on my server. Here's how I got to this error:
I downloaded a neat FileUpload ASP example from
http://www.asp101.com/articles/jacob/scriptupload.asp.
I copied to my wwwroot folder on my Win2000AS/SP4 server:
- main .asp file
|
by: Yitzhak |
last post by:
I am having "Permission denied" error while calling
LogEvent method of WScript.Shell component.
Basically, ASP page calls Windows Script Host Shell
component to log events to the OS Application Event log.
My environment:
Windows Server 2003, IIS 6, WSH, Classic ASP, Vbscript
Below is the code and the error:
Code:
|
by: Kenny Ashton |
last post by:
Can anyone tell me how to overcome my 'permissions problems' every
time I upload a new database to my ISP's server.
I have a folder, specially created for me by the ISP, where I can
upload new databases, read and write to those databases and create
text files etc, which works fine with all my existing files and DB's.
Whenever I create a new database on my 'home PC' (Windows 2000, Access
97), finish the associated ASP pages and get...
|
by: Jean-Paul Lauque |
last post by:
Hello,
With my script ASP, I display list of folders and files in a directory.
My problem is :
when the directory is protected, I have a message an error page with
"permission denied" message
when my ASP script try to read its content.
|
by: Russ |
last post by:
Hello. My new dev machine is running XP Pro. In the past all
equipment has only used Windows 2000. I have had a lot of problems
getting my projects up and running on the new machine. The current
one is a permission error.
The project is a VC++ Web Service. It works fine when the service is
hosted on the old W2K dev machine, but on the new XP machine I get a
permission error when the service tries to open a text file on the
Windows...
| |
by: TPS |
last post by:
I have a virtual directory where all posted files are stored.
The ASP app does not have rights to the share on the other server where the
vir dir resides.
What is the best way to give the asp app the rights to post files to the vir
dir.
Thanks
|
by: wASP |
last post by:
Hi,
Apparently, I have a permissions issue. I am logged in as administrator,
and my C: drive is accessible. Under the "Security" tab for Properties
for Inetpub, for my "Internet Guest Account," the "Allow" boxes
for , , and are checked
- BUT they are greyed out - I cannot clear them - and nothing else
is checked.
Now that I look further, the same thing is the case for every folder
|
by: Wayne Smith |
last post by:
I've come up against a major headache that I can't seem to find a solution
for but I'm sure there must be a workaround and I would really be grateful
of any help.
I'm currently building a web site for a small club I belong to and one of
the features I would like to include is the ability to allow users to upload
image files.
unfortunately the servers web root www folder only allows READ and EXECUTE
permissions, which makes it...
|
by: Mukesh |
last post by:
Hi all
I am trying to upload and save as a picture to "root/Photos" folder in
my web application.
I am using this code to perform this task
DirectoryInfo strFolder = new DirectoryInfo("/Photos/");
if (!strFolder.Exists)
{
strFolder.Create();
}
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |