473,854 Members | 1,457 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

why can't i write (save) into a directory inside 'htdocs'?

76 New Member
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_inp ut");', where 'result' is a directory inside the 'htdocs'. quite surprisingly, it works fine (writes) when i do this: open(OUTPUT,">/tmp/blast_fasta_inp ut");,althoug h 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

Mar 30 '07
11 10779
3,237 Recognized Expert Specialist
can anyone plz tell me why i can't write (save) file into a directory which is inside the '../cgi-bin/myfolder/' using a C cgi script. it works fine (writes) when i do this: /tmp/ggg.conf");,alt hough i can't read the file from there.
following is how the file permission look like
drwxrwxrwx 3 root root 4096 Jul 2 17:07 M_Soft
and conf file permission is

-rwxrwxrwx 1 root root 0 Jul 2 16:52 Country_Custome r_Details.conf

Does it work when you run the program from the command line?
Do you have SELinux enabled?
Jul 2 '07 #11
3 New Member
Does it work when you run the program from the command line?
Do you have SELinux enabled?
actually i am getting the value(which i am trying to save into a flat file) from the previous page. so tryed in this way
./Instructions Resell_Name=1 select1=Product ion select2=6M select3=XGateP NumDevices=1

but nothing workout.
i don't know how to enable SELinux. can u please tell me how can i enable that.

Jul 2 '07 #12

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

Similar topics

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 attempting to find my sites root directory so I can then step up into a folder in which I will have my INCLUDE code. This will allow me to easily refer to my INCLUDE code without messing about.
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 a folder within htdocs called "ct", and I want to access the index.php page in it from the address http://localhost/ct. But when I try that, it gives me the "page cannot be displayed" message. So I have to type http://localhost/ct/ (with a...
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 linked to Safe mode being set to On since my site is using shared server hosting and probably insufficient/incorrect Unix file permission. Below is my test script that helps me narrow down the problem....
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of the html page controls the form fields that are required. It doesn't function like it's supposed to and I can leave all the fields blank and it still submits the form. Also I can't get it to transfer the file in the upload section. The file name...
by: Jeremy Chapman | last post by:
I've got a 2rd party API written in perl. We want to use it by converting to a c# .net assembly. Essentially it does HTTP posts to a web page to send/receive data. I've never done perl, and am hoping someone can help with conversion, particularly around the setup of the $UA variable and doing the post. use LWP::UserAgent; use HTTP::Request; use HTTP::Status; use HTTP::Cookies;
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 method is to be inherited by all listing classes to allow for * list-wide deletion of latent server-created ZIP files for security purposes *
by: idorjee | last post by:
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...
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 server. The Config file has the following script: #doccument root - no trailing slash $docroot = substr($_SERVER,0,strpos($_SERVER,'/www.')); #include master config
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: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
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: 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: 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: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
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...

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.