Ubuntu Servers :: File Creation Error On Apache2 .cgi File?

Jan 14, 2011

I am using python as a cgi for a simple game that i'm planning to run on a website. It requires the user to enter his name and age. This is saved in a file newly created in his/her name. However, I'm getting this error The above is a description of an error in a Python program, formatted

63 for a Web browser because the 'cgitb' module was enabled. In case you
64 are not reading this in a Web browser, here is the original traceback:
65
66 Traceback (most recent call last):
67 File "/var/www/webprog.cgi", line 51, in <module>
68 main()
69 File "/var/www/webprog.cgi", line 44, in main

[Code]...

View 4 Replies


ADVERTISEMENT

Ubuntu Servers :: Permissions Upon File Creation?

Feb 8, 2011

Is ACL the best way to ensure the permissions of newly created files? Basically I have a directory: /data/department

I've done chmod g+s on it so the group is correct on new files but I want new files to also have 775 permissions so the rest of the group can access these files fully. Currently they are created with the default 755 (which I want still every where out side of /data/department ).

View 9 Replies View Related

Ubuntu Servers :: Folder And File Creation - Can't Successfully Share Editable Files Between Users

Feb 18, 2010

I'm trying to setup a Samba share for our work. I have it almost complete, however I can't successfully share editable files between users. The issue I'm having is that say User1 create a file test.txt, because of the 755 permissions, then User2, who has "writable" rights as per the smb.conf file, cannot edit that test.txt file.

Whevener I create a file with a user, its locked by that user. Is there a way I can set it that every folder/file a user creates is 777 ? I firgured that there's still security because of the "Valid users = " field in the smb.conf file.

View 9 Replies View Related

Ubuntu Servers :: PHP/Apache2 Restricted In File Manipulation?

Aug 18, 2010

I have a LAMP server set up (under Ubuntu 10.04 64-bit), and have a PHP application running on the Apache2 server. I copied the "default" website setup, and created a new one with the root at "/home/kota/WebRoot/".

When running my PHP application though, I come across a major issue: The script doesn't seem to be able to modify any files that are currently on the system, or create new ones.

However, this limitation is restricted to when running through Apache2. In other words, if i run it by typing "php5 myapplication.php" from the terminal, it works without a flaw. This leads me to believe that there is a permissions issue, disallowing Apache2 to create and modify files anywhere on my system.

Although it shouldn't make much of a difference, here is the basic information that I feel I should provide:

Code:

View 2 Replies View Related

Ubuntu Servers :: Firefox Can't Open Php File From Apache2 On Localhost

Mar 31, 2010

I've just moved on to 10.04 from 9.10. The program worked fine in 9.10. I *may* have overwritteen a conf file in the upgrade...

I now get the error as below:

My userdir.conf is like this:

<IfModule mod_userdir.c>
UserDir public_html
UserDir disabled root
<Directory /home/*/public_html>

[Code]....

and I have the PHP5 module installed. I vaguely recall that I may have had PHP4 installed - would the upgrade have removed it? Is there anywhere I can get it from to try? Anything else to do?

View 9 Replies View Related

Ubuntu Servers :: Simple Apache2 Configuration File Package Could Get?

Apr 2, 2011

Anyone have a simple apache2 configuration file package I could get?I'm trying to serve a internal network site for files throughout my network, (music, video, etc). I remember when I did this with Redhat 5-6 and all I had to do was redirect the folder I wanted to share over apache and it worked. You could click on the file you wanted and it played, etc.For some reason I can't even get apache2 that ships with Ubuntu 10.04.02 to even have a "It worked!" internal site or anything. I haven't configured apache2 ever before. It seems to have grown from one or two configuration files to five or so!

View 7 Replies View Related

Ubuntu :: Get An Error Message That Reads "the Ext4 File System Creation In Partition #1 Of SCSI3 (0,0,0) (sda) Failed?

May 15, 2011

When reinstalling ubuntu 10.04, I get an error message that reads "the ext4 file system creation in partition #1 of SCSI3 (0,0,0) (sda) failled.

View 1 Replies View Related

Ubuntu Installation :: Error "the File System Creation In Partition 1 Of Sci1 (0,0,0) (sda) Failed"

Sep 6, 2010

I have searched for answer to this question but cannot find one. I am trying to install ubuntu 8.04.2 on my Acer TravelMate 290 but when I get to the install stage I get the error message "the file system creation in partition 1 of sci1 (0,0,0) (sda) failed". I am dedicating the entire HD to ubuntu, no windows and no dual boot.

View 5 Replies View Related

Fedora :: Allow All Users On Creation Of A File?

Jul 15, 2009

I want to automatically allow all users read execute or write permissions on everything created by a specific user, is this possible? For example user Wendy creates an office doc, saves it on a shared folder. Then another user (usually windows log into this folder and wants to edit this file and cannot. I know I can edit the permissions on this particular doc to allow all users, but I want this to happen by default so I don.t have to keep changing permission on each doc....

View 5 Replies View Related

SUSE :: File Creation For Web Application?

Dec 2, 2010

Am using apache and php to build a web application and am trying to create the file outside my working directory but its not creating Anybody knows what is the solution for this

View 4 Replies View Related

General :: Error While Starting Apache2 / Syntax Error On Line 113 Of /etc/apache2/httpd.conf?

Nov 19, 2010

I have suse10 64bit and I was setting up SVN server on it. After all required setup while reloading apache2,its giving the error:

Code:

httpd2-prefork: Syntax error on line 113 of /etc/apache2/httpd.conf: Syntax error on line 31 of /etc/apache2/sysconfig.d/loadmodule.conf: Cannot load /usr/lib64/apache2/mod_dav_svn.so into server: /usr/lib64/libsvn_subr-1.so.0: undefined symbol: apr_memcache_add_server

View 6 Replies View Related

Ubuntu Installation :: Why The File System Creation Fails

Aug 8, 2010

I'm trying to install Ubuntu alongside windows 7 on my machine, and currently I am having difficulty doing so.Upon initial boot of the LiveCD,it says the installer has encountered an unrecognized error and just goes straight to desktop environment. From there, I can restart the installer just fine but here is where the trouble starts.

Currently, I have a 2TB RAID 0 array utilizing 4 500GB Seagate barracuda SATA II drives. The controller is an nForce 780a NVRaid. I currently have two NTFS partitions for windows. One 150GB primary partition for C:, and another 781GB D: for the storage of games, music and movies.When I try to manually setup the partitions in the Ubuntu installer, I do it like this.

- 200MB ext2 primary partition for /boot
- 150GB xfs logical partition for /
- approx 750GB xfs logical partition for /home (You've probably figured out I'm following the same C: and D: scheme as in windows)
- 8192 MB partition for swap

I then proceed with the install. I see the progress bar complete for the boot partition, but then at about 7% for / it stops and gives a message saying partition creation has failed. I even tried using different filesystems like ReiserFS and Ext4. Same thing every time. I am running a 64bit quadcore system BTW if that is of any importance.

View 9 Replies View Related

Ubuntu :: Changing Default File Rights On Creation?

Feb 17, 2011

My problem is that I want newly created files to be 775 but they are 644 according to ls -l tho user that created can still write to file while other user in same group can't.

Current umask is 002.

Can't findout how to get newly created files to be 775. What should i do make all new files created by a user to be 775?

View 5 Replies View Related

Ubuntu Installation :: File System Creation Fails At 5%?

Jun 16, 2011

net book had some issues with windows, so i had to format its hard drive. i put in the ubuntu live image (usb) (yes i md5summed it, its fine) and i tried installing it using the guided partition (using the whole disk) and i tried setting it up manually, but regardless of what i try, when it attempts to format it to the necessary filesystem, it fails at 5% without fail. even IF i use GParted.

View 4 Replies View Related

Fedora :: CIFS Bad Performance On File Creation?

Sep 28, 2010

I am experiencing poor performance when using cifs share.Such poor performance occur only in the creation of files on the share but not in the rewrite.This is what i do:

Code:
#mount -t cifs -o guest,user=<user> //153.9.200.2/winshare /mnt/winshare/
# time dd if=/dev/zero of=/mnt/winshare/b.avi bs=1024 count=10000

[code]....

View 6 Replies View Related

General :: Create File With 751 Permissions At Creation

Apr 5, 2011

I keep creating practice perl scripts in a linux directory using vi <filename> and need to chmod 751 <filename> before I can run it as I wish to. I'm sure there is a simple way to default my permissions or config them at creation, but I'm not familiar with it ayuda me por favor.

View 2 Replies View Related

General :: Extract The File Creation Time?

Nov 23, 2010

I want to extract the file creation time. How to get it. I am using fedora core 4

View 3 Replies View Related

General :: Add Some Starting Information In A File While Creation?

Apr 7, 2010

I want to add some starting information in a file while creation. like if I type vi test.sh

then
#!/bin/bash
will be added automatically.

Somebosy suggest me how to do this ??

View 22 Replies View Related

CentOS 5 :: Allowing TFTP File Creation?

Aug 4, 2010

Is there a trick to allowing a TFTP connection to create a file? I can successfully tftfp (from a cisco router) if I touch the file first, but otherwise, (/tftpboot has been chmoded to 777) I get [TFTP: error code 2 received - 20334]

View 7 Replies View Related

Ubuntu Servers :: Lucid Logrotate Apache2 Error?

Apr 26, 2011

My apache2 logs aren't being rotated, I have 1 log nearing 100MB in size.

Error shown below when a logrotate happens on apache2 logs:

Code:
error: other_vhosts_access.log:5381 unknown option 'jack' -- ignoring line
error: other_vhosts_access.log:5381 unexpected text
"jack" is a sub-domain.

View 1 Replies View Related

Ubuntu Servers :: Apache2 Just Stopped Working - 403 Error

May 27, 2011

I have just booted up to do some local work on my website and apache 2 has start throwing 403 error's at me? phpmyadmin and other alias's I have setup work but the main root just 403's on me?? It has been working away flawlessly for months now. No system upgrade has recently updated Apache and I can see no errors in my set up files!

My default setup file:
Code:
<VirtualHost *:80>
ServerAdmin webmaster@localhost

DocumentRoot /home/gavin/wwwsite
<Directory "/home/gavin/wwwsite">
Options +Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory> .....

View 2 Replies View Related

General :: Assigning New Creation File Time On Tar Extraction?

Nov 19, 2010

How I can tell tar to assign a new creation date to extracted files? Let's say I have an archive filled with old files of varying ages. Upon extraction I want all files to have the same time stamp (that of the time of the extraction).

View 1 Replies View Related

General :: Adding A Files Creation Date To It's File Name?

Sep 17, 2010

I have some basic experiencing creating simple scripts/making directories/changing permissions/etc. but I'm stumped on this one.

I have two linux boxes. I have a script set up on box 'A' to SCP into box 'B', grab a copy of a database backup and store it on box 'A'. It looks like this:

scp root@X.X.X.X:/blah/blah/blah/dump.23.gz /home/blah/DB_Backups/

I have generated a public key on box 'A' and placed it into the authorized_keys file on box 'B', so a password is not required and the file copies over successfully when the script is run. On to my problem...

I need to know what date the 'dump.23.gz' file was originally created when I'm viewing it after it's been copied to box 'A'. If I ls -l on box 'A' it only shows me the date it was created on box 'A' when it was copied.

What would I need to add to my script to append the backup's original creation date on box 'B' to the filename so that when it gets copied to box 'A' I know when the backup was created on box 'B'. I'm sure this is probably confusing. I've done lots of searching and can only find information on how to append the current date and time to a file name. I need to append it's original creation timestamp to the filename when it copies over.

View 10 Replies View Related

General :: Real Time File Creation In Terminal?

Aug 2, 2010

I was wondering if there is a command to show a real-time creation of files. I basically executed a command that will created thousands of files and takes a long time. I want to check if it is still creating additional files or if ti got frozen.

View 3 Replies View Related

General :: Shell Scripting Text File Creation ?

Feb 16, 2011

I'm just starting out with shell-scripting, but having a problem with making new text files with the touch or cat > commands.

What I've been doing is touch testfile1.txt

Also, I've tried cat > testfile1.txt (text)

Console reports "bash: text1.txt: No such file or directory. Consfusingly, it works fine in the home-directory. But if I move the file to where I want it, I can no longer view, edit, etc. it.

View 1 Replies View Related

Software :: Get File Creation Time (Ext4, Ntfs-3g)?

Jun 14, 2010

I know newer filesystems support crtime values, even to nanoseconds granularity. Ext4 does it, and NTFS mounted via ntfs-3g should expose it. Still, what is the command to get these values??

getfattr -d <some file>

gives me zero results, and as far as I know ls does not have means to access creation time.

getfattr -n ntfs_crtime /mnt/<some ntfs fs> gives me "Operation not opermitted"..?

I know about the difference between ctime=inode change time and crtime=creation time/file birth time. I want to migrate a NTFS partition to Ext4 without losing the creation dates...

View 10 Replies View Related

Red Hat :: Sadc Output File Creation Behavior When Run From Cron?

Jan 29, 2011

why sadc (a front end for sar data collection) would append a "?" to the output file when run from cron? And more particularly, how should I correct it? I have a RHEL 5.4 system which is doing this.e.g./usr/lib64/sa/sadc -d 10 6 /tmp/test produces output file /tmp/test when run from the command line but when run from cron the file produced is called "/tmp/test?"

Normal system logging with sysstat, which uses the same sadc command (with a couple of other options, and none of the options -d, -F, -L affect this behaviour), produces output files /var/log/sa/sadd where "dd" is the day of the month. There does not seem to be any control over this within the sysstat start-up scripts, other than use of option "-" to generate standard output files, so I expect that the dd is being done within the code. Is this associated with the "?" ?.Whatever is going on, the appended query seems to get added to everything as it still happens if I make the output file /tmp/test_$(/bin/date +\%d).Is this a bug or am I missing something fundamental about cron?

View 1 Replies View Related

Ubuntu Installation :: The Ext4 File System Creation In Partition Failed?

Feb 11, 2011

I have a Dell Mini 9 netbook. The SSD took a dump, so I ordered a Super Talent 16gb replacement. I put it in yesterday, tried to install 10.10 and constantly get errors. The first error, which I haven't had since, was [ERROR 30] Read-only File System. The install obviously failed. Wondering if perhaps the file got messed up in translation, I redownloaded 10.10, reformatted the flash drive (sandisk cruizer 4gb), put 10.10 back on via the program on the Ubuntu site. No luck, but no longer the [error 30]. Tried again using Unetbootin, no luck. Rinse repeat a few times, no errors just a working cursor spinning and spinning and spinning and spinning and.. you get it.

Tried to put WinXP on it just because I was that frustrated, no luck.

Now I'm back to Ubuntu (because let's face it, who wants to deal with Windows, christ they make it so complicated). I'm currently using 10.04 because I was hoping (praying) it might just be a 10.10 thing.

No such luck, now it goes to step 7/7, starts, and 5% of the way thry "creating ext4 file system" it says "the ext4 file system creation in partition #1 (0,0,0)(sda) failed." I have checked the SSD in the Disk Utility, SMART tests are clean. I have gone to terminal and run fdisk and had a smarter person than me look at the copypasta, no errors, I have deleted all existing partitions in gparted and started fresh. I have tried the auto partitioning, I have tried manual, I am going insane. Literally insane. My preschooler thinks I've leaped off the deep end.

Could it be my flash drive? Could the SSD be defective despite the tests coming back clean? What do I need to type into terminal? Is there a way to entirely entirely entirely wipe the SSD to make it fresh-out-the-box clean? I will happily provide whatever you need if it means I can get my husband off my back about this stupid netbook with its stupid tiny keyboard.

View 1 Replies View Related

Ubuntu Servers :: Permission Denied Error 13 On Apache2 Setup

May 8, 2010

I wanted to setup a local Apache2 server for some programming and testing. I installed and got Apache2 working with PHP, MySQL and all works fine. Now I wanted to add an additional directory to somewhere in my /home. And that's where things went wrong. I went to edit /etc/apache2/sites-available/default. This is it:

Code:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny

Code:
You don't have permission to access /po/ on this server.
So I go to the logfile; which says this:
Code:
[Sat May 08 16:43:51 2010] [error] [client 127.0.0.1] (13)Permission denied: access to /po/ denied

I tried a lot of stuff using chmod and chown, but all to no avail. I tried to change the ownership of the /home/name/web to root, and to www-data, I changed file permissions to allow executing the files.

View 6 Replies View Related

Ubuntu Servers :: No Such File Or Directory Error?

May 11, 2011

rcon@li121-251:~/b3$ ./b3_run.py
: No such file or directory
rcon@li121-251:~/b3$ l;

[Code].....

as you can see up top it gives me an error when i try to run the file. it is a Ubuntu error and i don't what the heck is causing it. had it before but don't remember how i resolved it.

View 8 Replies View Related







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