General :: Manually Update Permissions Apache?
Jan 23, 2010
I have a directory in the /var/www folder. I have access to this directory from my windows machine through samba.
Everytime i add new files to the folder where the webpage is locate i need to go to my centos server a type chmod -R 777 /var/www/name
It can't be right that i need to do this everytime i add new files to the folder??
If i dont run this command i can't access this files when I access the webpage throug a browser...
UPDATE: I think It has something to do with the samba user, because if i create the files as root directly on the centos server i dont got the problem ... ?
View 5 Replies
ADVERTISEMENT
Oct 6, 2010
I want to simply mount an ext4 file-system onto a normal mount point in Ubuntu (/media/whereever), as read-writable for the current logged-in user, i.e. me.
I don't want to add anything into /etc/fstab, I just want to do it now, manually. I need super-user privileges to mount a device, but then only root can read-write that mount. I've tried various of the mount options, added it into fstab, but with no luck.
View 3 Replies
View Related
Mar 16, 2010
Is it possible to reset apache 2 permissions to default permissions I'm using Ubuntu 9.10 command line server, would webmin give me this access ?
View 1 Replies
View Related
Apr 8, 2010
I am very new to linux. The first time i ran a linux machine was one Saturday. Anyway I am trying to set up an apache web server, all I want to do is play around with html and post it on my unbuntu server so it is available to the internet. I am also trying to install samba but I am having trouble with that so for now I am using winscp. Ok, so I made a folder in my home directory for webstuff, and set up apache to look in that folder.
mkdir /home/username/webstuff
I put my index.html file into the /webstuff folder.
But when I go to my website, it says 403 error unable to access "/"
Did I make the folder in the right place? I do not want people being able to access my / folder so maby I made the web stuff folder in the wrong place? Also I thought I would just put my inded.html file inside of the default one apache gives you, but when I tried to transfer index.html it said permission denied. How to set up permissions so I can use apache and transfer my html files from my remote desktop to my server would be great!
View 7 Replies
View Related
Jun 26, 2010
I'm trying to learn about permissions on linux webserver with apache.Some clues to the system: The server I have to play around with is Fedora based. Apache runs as apache:apache. To allow for e.g. php to write to a file the file needs to be chmod 777. 755 is not sufficiant.What I'm wondering is basically how set up permissions like they should be on e.g. a "shared web host".My main problem is that if I set a permission so that one user cannot access anothers home folder, then apache can't read from the public_html folder either.
To keep the users out I need to set chmod 700. But to let apache to read I need to have at least execute on world,so a 701 basically works, but won't let some users in.So I'm really stuck on what to do. Have been concidering adding the apache user to the frous grours
below to avoid having to add the world execute flag, but is that a bad thing? Should it be the other way around, the users in the groups below should also be in the apache group?I was aiming at having 4 groups:
1. webapp: same as dev_int, but is the only one that can go inside the webapp/live folder to e.g. do an update from the repo.
2. dev_int: can read,write and execute everything in the "web root", including the two below, but nothing outside of the web root
3. dev_ext: can read write and execute in all client folders, but cannot access anything outside of the webapp root
4. clientsBasic ftp accounts. Has a home folder with a public_html, but cannot access any other home folders
View 1 Replies
View Related
Mar 22, 2010
After I edit /etc/group and I add a user to groups it didn't belong to, the user will not be able to use it's newly acquired privileges unless it starts a new session. Is there a command to refresh user/group properties in an ongoing session?
View 2 Replies
View Related
Apr 8, 2011
I recently converted my old laptop to Ubuntu a couple days ago and I'm loving it! This is my first post, but I've been reading the Ubuntu forums which have been helpful for tweaking little things and I'd say I've graduated from "absolute" Ubuntu/Linux noob to "almost total" noob in the last couple days (at least I know what the terminal is now!). On my regular PC, I'm a big fan of the Google Chrome browser, but for my Ubuntu machine, I was hoping to stay as true to the open source theme as possible, so while I do have Chrome installed too, I'd love to use Chromium as my primary browser.
The one drawback for me with Chromium vs. Chrome is that there are not automatic updates, but I wasn't able to find a clear, noob-friendly walk-through to set up a means to regularly update Chromium manually (either using the terminal or using the GUI). From what I understand, it would involve finding and installing Chromium build repositories, then checking and updating from those periodically.
The problem is that I don't really know how to go about doing any of this. How exactly does one add repositories? After they're added, how does one update from the Chromium builds located there? Are there any Chromium repositories for relatively stable builds versus the uber-newest test builds?
Am I completely off track and there's an easier way to set up a means to update Chromium?
View 6 Replies
View Related
Jun 22, 2011
My ISP is blocking medibuntu.org so that hasn't been updated on my machines since the end of April. I can still access it via proxy sites so is it possible to download certain files and place them on the right spots in my Ubuntu installation and have it tell me if something is out of date or not?
View 6 Replies
View Related
Jun 30, 2011
What is recommended way to set permissions of folders VAR/WWW for use with apache in 11.04? I would like to let the user "ABC" have access to read/write the website files in this directory. How should permissions on these files be set?
View 2 Replies
View Related
Jul 6, 2011
I know how to assign file permissions and other tasks like user to group, but I'm stuck with a situation in how I should set up my system.So I have a LAMP server set up. I'm not the only developer so I created a group called "developers" for my other users "Mike," "Alex," and "Cindy," which are developers (I'm Mike by the way). I know that "www-data" is the user and group Apache uses.This is good because only I have permission to update the production site, but for the dev site, it's a different story.
View 3 Replies
View Related
Feb 23, 2010
I am looking for the best way to set up permissions in the following situation. I have a web server set up on debian. I have different web sites in /var/www. Each web has a group of developers who each have system users and ssh access to the server. For example i have a web site in /var/www/example.com and a group of developers in group exampledev. I need all the users in exampledev plus the apache user (www-data) to have read write and execute permissions on all the content of the web site. I can give the group exampledev these permissions without a problem. The problem is that when they modify or create new files (they either connect via ssh o sftp which is the same right?) they are created with their user and group rather than exampledev. Am i going down the wrong path? This must be a common situation but i haven't found the solution.
View 5 Replies
View Related
Mar 25, 2010
Is there a method or way to "update" Vim's syntax highlighter manually? I appear to have a very updated version of Vim on both Debian & Arch Linux but I notice that on both servers on the identical configuration file for Postfix MTA (main.cf) I have a parameter that shows up in 'white' which usually means 1 or 2 things:
1. I have a typo somewhere in my parameter.
2. The parameter is not recognized by Postfix and useless
However in this case it is neither of the two above however it stands out in the configuration file because it's not in color. It's the only one that is white text. I verified the command / parameter is valid: Link
The parameter is:
Code:
smtpd_tls_security_level = may
Is there a way to update Vim to highlight the " smtpd_tls_security_level" parameter in the configuration file when opened with Vim? Do I need to update the syntax highlighter for this to have the desired effect? I know this issue is purely cosmetic but as an administrator I find it annoyong to have to waste time and research if a configuration parameter is valid or not. I rely on Vim's color syntax highlighting to tell me when I make a overlooked mistake. I do know that Postfix is happy with the current configuration as I can see it being executed in the program:
Code:
postconf -n | grep "smtpd_tls_security_level"
smtpd_tls_security_level = may
View 2 Replies
View Related
Jan 14, 2010
This is probably a pretty basic question seeing as I'm pretty new to Ubuntu Server. I'm running a simple website from my Ubuntu Server machine with The files are all stored in /var/www/ and then subdirectories. The problem is that when I add files through FTP I need to go and change all of the file permissions since by default they do not have read access so can't be accessed through a web browser on another machine.How can I make the default permissions readable for the directory and all new files that will be moved in it
View 5 Replies
View Related
Nov 12, 2010
this costed me a whole day of trying and retrying. I set up a small home server with apache, php, and mysql.
System infos:
Linux 2.6.31-22-generic-pae
Ubuntu 9.10 Karmic Server edition
Apache/2.2.12 (Ubuntu)
Until now, it served happily a couple of sites, with no problems. But now, I wanted to set up my ftp server to point to the same directory as one of the sites, for me to be able to upload and manage files via ftp. As a server I normally use proftpd. With my usual config, proftpd runs with its own user and simulates the user ftpuser:ftpgroup when creating files. So I just changed all the files to be owned by this user and group. Permissions set to 770.
Everything works fine, and I'm able to access the data via ftp. BUT, when I try to browse my site the usual way (i.e. point firefox to its address) a 403 forbidden error is issued. Of course, you will say: you didn't allow access to apache. Well, I remembered that right away, and added the user www-data to the ftpgroup user. Now I espect apache to be able to read and serve the files.
Still same problem. 403. The apache error log is full with "permission denied" errors. After many attempts, I logged in as the user www-data, and tested access to the files. This way I'm able to cd into the directory, and read-write the files with nano. As a test, I tryed the other way around. Setting www-data:www-data as the owner of the files, and adding the ftpuser to the www-data group. This way apache works, but proftpd does not. Most probably it has something to do with a misunderstanding of groups permissions or the way this two deamons access the files.
View 9 Replies
View Related
Jul 19, 2011
I have the following problem since yesterday.
Trying to update manually provides the following error message
I can't access fedora.project.org any more!
All other web access runs fine as usual.
View 7 Replies
View Related
Jun 12, 2009
With F11 installed Apache is having permissions issues reading files out of the html directory. Only wants to work with permissions set to read for other. [Thu Jun 11 23:25:28 2009] [error] [client 127.0.0.1] (13)Permission denied: file permissions deny server access: /var/www/html/index.html Tracked down the permissions issue. Is there a good reason not to change the group to apache and remove world read?
View 1 Replies
View Related
Dec 12, 2010
I would like to change the permissions for a directory and all files inside the directory how do I do this? The website is located only on my local network so I am not worried about security. Also what would be the optimal permissions for running wordpress.
View 1 Replies
View Related
Jul 14, 2010
Some while ago I decided to add Firefox repository directly through terminal. (Idea born when I saw in one old page (yes, never look for info in old pages ) "tutorial" how to do it.) The whole idea was simple: just add one line in terminal.The line was like this:sudo add-apt-repository ppa:mozillateam/firefox-stableBut since that, when I try to update through update manager I get errors:Quote:
W: GPG error: http://ppa.launchpad.net lucid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D45DF2E8FC91AE7E
W: GPG error: http://archive.canonical.com lucid Release: The following signatures couldn't
[code]....
View 6 Replies
View Related
Mar 15, 2010
I have a problem with my external hdd, I mounted it manually and in the mount table it says ive got rw permissions. But when i try to change permissions it says:
chmod: changing permissions of `whatever': read-only filesystem.
This is my mount table:
[root@localhost ExtHDD]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
[code]....
View 6 Replies
View Related
Jul 9, 2011
some programs updated ( like losing my Network Connection icon and having it show up now on the secondary users desktop, while it used to be that she couldn't get it to display, now I can't.)So I try to theme an app using APK Manager but now my 'out' folder is X'ed out, along w/ its contents, and it says I don't have permissions to view the folder/files. So i checked and I'm still the owner, my perms are all checked, I believe my group is still the same (same as my user name). Under 'System/Administration/User and Groups' I see that I'm still an Admin., I have all User Privileges marked true, my main group matches my user name and my ID is still 1000. Also my password is still valid. Please, someone tell me WTF is happening here, LOL. Thnx in advance for ur patience and concern
View 9 Replies
View Related
Dec 13, 2009
how to update my system online (for example my firefox 3.0 to 3.5) but i can't figure out how this possibly works. I tried the "online update" using Yast2 but apparently (according to Yast) there is nothing at all to be patched on my system. I tried to click on the Firefox-3.5.5 rpm in the repository web-interface and open it using "install software" but the process aborts because of unresolved dependencies. Is there an easy way to update software without having to download/install every dependency manually?
View 1 Replies
View Related
Jul 31, 2010
Occasionally a dialog pops up with the title "Update Manager". It offers me to update system components. However this popup occurs automatically. I wonder how I can call/start this "Upate manager" (dialog)manually? I found no menu entry. When I click on menu Application->Add/remove Software then a "Package Manager" is shown which is different from the "Update Manager". So again the question: How can I start manually (from terminal or menu) the "Update Manager"?
View 1 Replies
View Related
Apr 14, 2011
after a recent update my policykit permissions stopped working, and I can't understand why.An example: mounting a flash drive requires password, hinting on rg.freedesktop.udisks.filesystem-mount. /usr/share/polkit-/actions/org.freedesktop.udisks.policy has the following:
Code:
<action id="org.freedesktop.udisks.filesystem-mount">
<description>Mount a device</description>
[code]....
View 5 Replies
View Related
Jan 17, 2010
When I go to localhost, and try to open any PHP file, it asks me to download the file rather than run it like it should. JSP doesn't appear to be working either. I'm not to concerned about the JSP though.
I'm running KUbuntu 8.04 with KDE 3 on a 64bit machine.
View 9 Replies
View Related
May 3, 2011
I had to register with a new username, because I could not remember my logon details and have since changed ISP so could not get details sent, anyway that aside to the problem.
I upgraded to 11.04 and all went well (hence posting here and not in the Upgrade section) and it is running fine, well until yesterday.
I ran the update manager as I usually do when first entering Ubuntu and it did an update but then gave me an error message about file permissions and to check my connection (which was connected OK).It has also affected the Software Installer, and now I can not install any new software.
Is this a generic problem with the latest update or is it just my Dell Inspiron 1545 please?
View 1 Replies
View Related
Oct 20, 2010
I updated my server (Ubuntu 10.04 LTS) today and had about 23 updates in Webmin. After the update suddenly apache doesn't render php pages anymore, instead letting you download the source code for the scripts. I checked the logs and found this:
Code: Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory I tried reinstalling php5 but I can't get it to work. I also hope that this was a glitch and that updates that break stuff like this don't get through QA.
View 9 Replies
View Related
Jul 6, 2010
I've installed Apache 2 on Ubuntu linux 10.04 as a simple LAN site for testing PHP scripts. But even though I've deleted the default index.html file in htdocs, changed the index file to index.php, put an index.php, chmoded to 775, and gave ownership of the folder to my account, it will not update any of the files. Any time I go to 127.0.1.1 or 127.0.0.1 (Both work, somehow), it has the "It works!" page instead of the page I put there. And yes, I've tried restarting apache, restarting my computer, etc. What's the problem and/or how do I fix it?
tl;dr: Apache keeps displaying the "It works" page even though I've replaced it. How do I fix it?
View 2 Replies
View Related
Feb 3, 2009
I updated my CentOS 5 box recently. But after then my Apache can no longer work; every time I try to start apache, it says started OK but then dies immediately and no error message at all. When I tried 'apachectl restartI', it says apache not running. It has been running fine before the update. I've looked at /var/log/httpd.log but there is not any message about my problem.
View 14 Replies
View Related
Jan 13, 2011
I'm a bit new to installing/upgrading on Linux/Centos so apologies if I've made a basic mistake here.I've searched around for the answer to this question but not found it - but apologies if this has been discussed in the forum before. The issue is that I want to upgrade Apache to version 2.2.12 or higher, because I want to install a second SSL domain on the same IP address. According to this page [URL].. you can do that from version 2.2.12.
Incidentally I've got Centos 5.4 installed. So I've had a little browse around with yum and did a "yum list *httpd* with gave me the following
[Code]...
View 2 Replies
View Related
Nov 24, 2009
after I do all new installation and before i do PHP update my browser can show me apache default page but after update PHP to 5.2.0 I can't even see the default page and always give me Problem loading page and I have 3-4 times reinstall my server which i need to do this as mail serer locally. Here are the version for my php and apache on my server currently :Apache[root@localhost local]# httpd -vServer version: Apache/2.2.14 (Unix)Server built: Oct 14 2009 13:19:18
PHP
[root@localhost local]# php -v
PHP 5.2.11 (cli) (built: Sep 21 2009 14:49:09)
[code]....
View 5 Replies
View Related