473,396 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

can't write to a directory inside 'htdocs'

76
hi guys,
could you plz tell me why i can't write something into a directory which inside the '../apache2/htdocs/' using the perl line 'open(OUTPUT,">result/blast_fasta_input");', where 'result' is a directory inside the 'htdocs'. quite surprisingly, it works fine (writes) when i do this: open(OUTPUT,">/tmp/blast_fasta_input");,although i can't read the file from there.
following is how the file permission look like for both the '../apache2/htdocs/result' and the '/tmp':
drwxr-xr-x 2 root other 512 Mar 29 14:47 result
drwxrwxrwt 5 root sys 847 Mar 29 14:44 tmp

thanks
Mar 29 '07 #1
1 2217
Motoma
3,237 Expert 2GB
hi guys,
could you plz tell me why i can't write something into a directory which inside the '../apache2/htdocs/' using the perl line 'open(OUTPUT,">result/blast_fasta_input");', where 'result' is a directory inside the 'htdocs'. quite surprisingly, it works fine (writes) when i do this: open(OUTPUT,">/tmp/blast_fasta_input");,although i can't read the file from there.
following is how the file permission look like for both the '../apache2/htdocs/result' and the '/tmp':
drwxr-xr-x 2 root other 512 Mar 29 14:47 result
drwxrwxrwt 5 root sys 847 Mar 29 14:44 tmp

thanks
This may be do to an selinux setting. Do you have selinux installed and activated?
Mar 30 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Rv! | last post by:
I've posted this onto alt.php earlier and stumped all involved. I didn't cross post for the usual reasons Anyone here got any ideas? -------------------------------------- I am simply...
4
by: kingofkolt | last post by:
I have an annoying problem. Every time I try to access a folder on my server (Apache) without adding a slash at the end, I get a "page cannot be displayed" message. For example, on my server I have...
9
by: ALI-R | last post by:
Hi,, I have two questions : 1) Is it mandatory that config file of a desktop application must be App.config 2) Is it possible to update config file in your code?? thanks for your help. ALI
2
by: ykgoh | last post by:
Hi. I've a problem of being able to create and remove a directory but unable to write a file inside the created directory for some strange reason. I suspect that this problem could be vaguely...
11
by: comp.lang.php | last post by:
Once again, I thought my class method deleteZip() would do the trick, but it never deletes any .zip* file found in a directory: /** * Delete any latent ZIP files found in this album. This...
11
by: idorjee | last post by:
hello! can anyone plz tell me why i can't write (save) file into a directory which is inside the '../apache2/htdocs/' using a perl script like 'open(OUTPUT,">result/blast_fasta_input");', where...
0
by: sudeepghosh | last post by:
Hi, I had a website designed by a designer so time back. Now I need to make a couple of changes to the site and I can't contact my Designer. Can anyone help? Problem 1: I have to change the...
18
by: AngelinaB | last post by:
It's my first time learn hosting for my final assignment i got this error Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message 'SQLSTATE Can't connect to local MySQL server...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.