Debian Configuration :: LAMP Server And Permissions To Www/
Jul 30, 2011
I just installed LAMP server and it works. Anyway, I have problems with permissions to www/. I can't access it! Its located in /srv/www.
What do you suggest? I need to be able to freely add/modify/remove files under www/ as 'dagrevis' (not 'root').
View 1 Replies
ADVERTISEMENT
May 7, 2011
Main purpose of this LAMP server is testing development. I would like to get this server setup up almost exactly to a T how my real web hosting server is setup. I am running 11.04 and have installed LAMP. I also installed vsftpd. I went ahead and made a symlink from /home/user/public_html to /var/www/. I login from a Windows 7 computer via CuteFTP to my Ubuntu server. I can enter the public_html directory and can create folders but the default permissions for any folder created is 700. I have tried running chmod -R 755 /home/user/public_html but this does not work. Every file or folder created now currently will take a 700 permission.
How do I make it so anything that is uploaded into this folder will be at either 755 or 775? Also what is the best practice for utilizing the /var/www directory? Should I be using a symlink to link it to my user's home folder? I have read through so many posts with regards to adding users to a group and giving this group permission and this or that I'm so confused.
View 2 Replies
View Related
Feb 10, 2011
I'm trying to mount a remove filesystem onto my own server. I am able to do this, however I can only access it as root, or if I chmod 777 the lot. Obviously I want to be as secure as possible, so I'd like to avoid either one of those options. Another option is to mount it directly into my home directory, but previously when I was trying out Ubuntu this caused Samba problems - and I was advised mounting in my home dir was a workaround rather than a proper fix.
I have root access with sudo on my own server. I've not set a root pasword, and until I need to I'll avoid it. I have a user account with full control over my own home directory on the remote server. I am mounting using fstab - sshfs#username@remoteserver:/media/sdk/home/username/ /media//remote/ fuse user,idmap=user 0 0
What I would like to do is without changing the permissions on the remote server change the permissions when they are mounted on my own server. I would like them to be in the group sambausers for example. Instead they are owned by root and in the group of 1024 (which I have not set). Additionally for this to work they would have to have 770 on my home server and 700 on the remote server....
View 1 Replies
View Related
Feb 17, 2011
I need to install LAMP server in Debian 6. But like Ubuntu there is no option to install Lamp Server
View 7 Replies
View Related
Aug 23, 2011
I am completely new to Debian . My aim is to get one of my machines to run this system as the intranet server including www server, mailing server, intranet server and LAMP at the same time on the small network. I have found some resources including how-to's how to install Debian as the normal operative OS not as the intranet server. I have also found this: [url].However that is applicable for the 'Mandrake' distribution (Mandriva). Now, I would like to ask few questions that will be applicable not only for me but for more users and if someone could answer them .
1.What installation source shall I choose, CD/DVD/Network Install CD?
2.I have found this: [url] ... troduction is that applicable?
3.How to install web server, mail server, LAMP and configure them, link above describes mail server installation not configuration itself.
4.How to configure intranet on Debian to work as the server serving the Windows clients (using Samba?)
If someone could propose a set of the sources or the instructions how to achieve all of the steps I would really appreciate that. Also, if sources will be given by the users I shall try to achieve what I want and write up 'how-to' for this problem. Therefore, me and other users would benefit from that.
View 1 Replies
View Related
Jun 24, 2015
I installed LaMp 2 days ago. First everything works; But until yesterday, I can't start anymore mysql server : it failed each time.
When I look at the status :
Code: Select allsystemctl status mysql
Failed to get D-Bus connection: Erreur inconnue -1
It's like it can't generate mysqld.sock
Code: Select all/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
I keep reading man and trying to find something I didn't configure correctly, but I can't find nothing.
View 1 Replies
View Related
Jan 13, 2010
I have a LAMP server running Ubuntu 8.04.03 Server edition running smoothly. Ive setup several websites on the server and all are ok, but I constantly have trouble with permissions. Everytime I setup a new domain to host, I setup a user specific to that domain. This allows SSH login specific to the domain. The problem I have is that every time I setup ownership in the virtual directories for the users they belong to, the settings don't seem to stay. Initially it seems to work ok, but when I install Joomla and setup the webspace, I always seem to have to login to the server itself to chmod the folders I need to have writable. I cant chmod properly from my FTP client which is weird. How to manage permissions?
Currently I am doing the following:
Code:
sudo mkdir -p {name of domain}/{public,private, etc...}
sudo usermod -g www-data {my user name}
sudo chown -R www-data:www-data /var/www/{directory for the domain}
sudo chmod -R 775 {folder path I need to change}
This works for a while but as I add new things to Joomla and I want to modify the folders, I always have to go back and redo the chmod and the chown commands to get them where I want.
View 4 Replies
View Related
May 20, 2011
When I connect a USB stick to my laptop, it is mounted as root:root. I want ot be able to use it as the logged in user
It has worked in the past (1+ month ago), but recently it just mount it as root:root.
My userid is 1000, so somewhere in the system it knows that the current user is relevant.
The directory created
The date is off System time is correct - so this could be an indication of what is wrong.
I have tried with my own custom compiled kernel and now I am using the latest 2.6.38 official image.
View 10 Replies
View Related
May 29, 2011
my ENTIRE hard drive now has user AND group permissions root. I can't start X and are having various permissions issues. although ive been using linux for a long time.
long story long, I did a debian netinst to my netbooks SSD. got everything EXACTLY as I wanted it, was very happy with my first go at debian but of course being a linux dork im always willing to tweak. I installed onto btrfs which I recently learned supports compression which not only saved precious SSD space (only 8GBs) but according to some benchmarks also improved performance. this was a boot option and would only start compressing new files. this, of course, could not be good enough. so I formatted my SD card btrfs, mounted it with compress option + my SSD defaults and copied over all files that weren't a mount (i.e. proc, dev, sys,...) however I forgot to copy permissions. so every file was copied with root:root ownership and I didn't realize this when booting to the SD card to verify things were working as I assumed ( never do this ) that getting to a login terminal was enough. So now I need to fix all permissions and I would really prefer it be without a clean install.
A netinst can take a dec amount of time and I had a lot of tweaking to do since I only used Xorg + i3 tiling wm. there has to be a way to fix this...I started trying to reinstall all the packages but kept running into issued where aptitude wasn't able to reinstall things like bash or perl-base, presumably bc they were in use or had incorrect permissions set
View 10 Replies
View Related
Mar 5, 2011
I need to create a sandbox environment on my LAMP server for PHP/MySql development. Anyone who could point me in the right direction or share their insight?
View 1 Replies
View Related
Mar 23, 2011
I am trying to figure out what needs to be done to automatically set read/write permissions for everyone for my proprietary USB device on system boot. I have created a udev rules file which changes the permissions for the device when it is connected, but it does not change the permissions when the system is booted with the device already connected. The file looks like this:
SUBSYSTEM=="usb_device", SYSFS{idVendor}=="our vendor id", MODE="0666"
Does something else need to be added to the rules file to make it work when the system boots with the device connected? Is there some other script which needs to be created somewhere?
View 1 Replies
View Related
Mar 28, 2011
I'm trying to allow non-root account to use avrdude to program mucrocontrollers. There are many articles online about how to do that, but it seems not to work for me. Every time i try to execute avrdude it says "permission denied". Here's "$ udevadm info --name=/dev/bus/usb/002/011 --attribute-walk" says looking at device '/devices/pci0000:00/0000:00:1d.1/usb2/2-1':
KERNEL=="2-1"
SUBSYSTEM=="usb"
DRIVER=="usb"
ATTR{configuration}==""
[code]....
However, after restarting udev, replugging the device, even rebooting the computer I still get "permission denied". The Vendor and Product match, so what's the problem?
View 7 Replies
View Related
May 4, 2010
my iwlist scan is normal. ethernet connection ok, wirless not working but does seem to receive. wifi radar lists my router ssid. Does this say I have the correct router for my wireless is my question? I am also getting this error message with this system on KDE, LENNY. From KWLAN a wpasupplicant front end.
"you do not have permissions to start pppd or pppd was not found. Dial up networking will not work."
[code]...
View 2 Replies
View Related
Nov 22, 2009
My installation went fine. Apache, PHP, and MYSQL all work independently. My trouble getting PHP to serve MySQL content. The first thing I did was look in the PHP.INI file to check that it was set up correctly. Then I discovered my install of PHP does not have the expected directives, namely extension_dir or any DLL comments where I can enable MYSQL. Instead my config file has a PHP.D directory. In that directory there are no files for MYSQL. I look at the PHP.net site and I can't find any info on how to write this file. And there's the issue of the missing extension_dir directive.
As I said, I visited the PHP.net site and could not find any specific manual pages explaining this change to PHP 5.2.11. I downloaded "the latest php.ini" development file from the site. As near as I can tell its for PHP 6.0.0 and it does have the extension_dir directive, and it still uses the DLLs in Dynamic Extensions section. (EDITED= The introduction of the PHP.INI file doesn't give a version number, however later under error handling there is a note: "as of PHP 6.0.0"). Why I can't find more information about this on any forum or at PHP.net?
View 14 Replies
View Related
Jul 10, 2010
All of the guides I could find online were from 2004 and they no longer work. someone create a step by step guide? I have Apache working, but PHP does not work.
View 1 Replies
View Related
Mar 4, 2011
I've recently setup LAMP on my VPS.I believe I may have broken the PHP configuration somehow, not 100% sure exactly how, but I'm getting internal server errors upon loading .php files.
*Edit* phpmyadmin still runs fine so maybe there's an error in my Apache configuration or my VirtualHosts?
View 3 Replies
View Related
Apr 5, 2010
I am *finally* getting around to rebuilding my file-sharing computer. I'll be sharing files with both Linux and Windoze machines. It's a home network, so there's nothing fancy needed. I know I have to tweak my smb.conf file until I'm satisfied with the features and security. I'm using SWAT and I'm starting with a bare-bones conf file. It's not secure but I can see the server and selected files/directories from my other Linux box.
My really dumb question is, do I have to reboot both the server and the client machines every time I change the SAMBA configuration? I thought I just had to stop and restart the SAMBA service in the SWAT software - but then the server disappears from my client. It looks like I need to reboot both machines for the client to see the server.
View 1 Replies
View Related
Feb 22, 2010
I have tried to configure an Enemy Territory Server in an way that a common user could run it just executing a command line. The first thing I did was writing a script like that
/usr/local/games/enemy-territory/etded +set dedicated 1 +set net_port 27960 +set fs_game etpub +set fs_homepath /usr/local/games/enemy-territory/27960 +set sv_punkbuster 1 +set +exec server.cfg +set +exec punkbuster.cfg +set +exec bots.cfg
and then putting it in the /usr/local/bin directory. Ok, the things seem to be fine, but then I realized that the program tries to write some config and log files. I noticed that because some warnings appear in the command line, like that Couldn't write etconfig.cfg always that I run the command as a normal user. On the other hand, if I give writing permission to these files, all the warnings disapear.
But I don't think it is a good way, because someone could change these files by hand, what would not be good.
My last try was to set the suid of the script up, with the command chmod u+s /usr/local/bin/etded-server
But as I already knew that suid does not work well with shell script I wrote a C source like that:
[Code]...
View 4 Replies
View Related
Jan 25, 2011
I will be relocating to a permanent residence sometime in the next year or two. I've recently begun thinking about the best way to implement a home-based network. It occurred to me that the most elegant solution might be the use of VM technology to eliminate as much hardware and wiring as possible.My thinking is this: Install a multi-core system and configure it to run several VMs, one each for a firewall, a caching proxy server, a mail server, a web server. Additionally, I would like to run 2-4 VMs as remote (RDP)workstations, using diskless workstations to boot the VMs over powerline ethernet.The latest powerline technology (available later this year) will allow multiple devices on a residential circuit operating at near gigabit speed, just like legacy wired networks.
In theory, the above would allow me to consolidate everything but the disklessworkstations on a single server and eliminate all wired (and wireless) connections except the broadband connection to the Internet and the cabling to the nearest power outlets. It appears technically possible, but I'm not sure about the various virtual connections among VMs. In theory, each VM should be able to communicate with the other as if it was on the same network via the server data bus, but what about setting up firewall zones? Any internal I/O bandwidth bottlenecks? Any other potential "gotchas", caveats, issues? (Other than the obvious requirement of having enough CPU and RAM).Any thoughts or observations welcome, especially if they are from real world experience in a VM environment. BTW--in case you're wondering why I'm posting here, it's because I run Debian on all my workstations/servers (running VirtualBox as a VM for Windows XP on one workstation).
View 14 Replies
View Related
Jun 19, 2010
Somewhere out there there has to be someone that can help me set up my lamp server to send automated emails using my cable providers SMTP server
View 2 Replies
View Related
Jun 5, 2011
I'm trying to setup local LAMP installation of CentOS 5.6 in VMware for local developing. I installed Apache, PHP, phpMyAdmin from this tutorial. Is there any other begginers step-by-step tutorial for setting up LAMP? I need help setting up FTP and permissions, hot to setup permissions for /var/www/html directory?
View 1 Replies
View Related
Jun 26, 2010
I'm running the current release of Debian with the 2.6.26-2 kernel. This is an upgrade from an older (2.4 kernel) series redhat release. One of the things I had working in the older system was a dns server with accompanying monthly update of the root hints file. I tried working through a dns how-to to set this up again, but it seems much has moved around since I last played with this. All of the files listed in the how-to are not where it says they should be. I am looking for a better reference on keeping the dns server running with current server information.
View 1 Replies
View Related
May 3, 2011
I have installed nfs-kernel-server on the server and nfs-common on the client. Assumeserver 192.168.1.1client 192.168.1.3
content of /etc/exports is:
/home 192.168.1.0/255.255.255.0(rw,sync,no_root_squash)
/home/nfsroot 192.168.1.0/255.255.255.0(rw,no_subtree_check,async,no_root_squash)
[code]....
View 4 Replies
View Related
Feb 5, 2010
I've been messing around for a few days now trying to figure out what is going on and I feel like I'm making a stupid mistake. Essentially I'm trying to build a LAMP server (PHP) on my Mac Mini using VMWare Fusion 3 using Linux Server 9.10. To start, it's not going well at all. Once I install the LAMP portion after calling it with root permissions, I have no UI. Personally, I need a UI. Am I not understanding this? I figured once I install the LAMP packages and restart the server, there would be a user interface but nothing...
[URL]
View 2 Replies
View Related
Jun 27, 2011
Working on an important project and feel hung up on. Anyway, I have Listen 80 and Listen 8100. For some reason my isp or something is blocking 80 even with port forwarding and an attempt at putting my server in dmz, though I'm not sure if my router can handle it. Anyway, from within the network I can use my routers IP and see port 80 forwards to my box, though from outside the network port 80 is a no go(finds no route to host). So I set up listening on 8100, and sure enough I can access it from outside the network, but it doesn't seem to have the same root as port 80 for some reason, because when I go to the page it says the requested url / (just a slash here like theres no rest of the address) cannot be found. At the bottom it says debian server port 8100 so I know its getting to my computer.
View 1 Replies
View Related
Jun 14, 2011
I wanted to setup my server as a router/gateway just for educational purposes and also when it succeeded i will keep the gateway and place it on the front line right after my modem.
My current setup as it is now :
The GATEWAY/ROUTER will be doing the main work to act as a dhcp server and firewall.
Now my setup as it is now :
So now what i ment to do was :
Let the clients connect to the gateway via ETH1 and all the stuff being router to ETH0 which is the NIC that is connected to the internet.
But now i have two huge problems :
1. The DHCP configuration seems to be fine the client machines get their ip adresses and /etc/resolve.conf looks fine to. But somehow the GATEWAY/ROUTER wont let me use the specified external DNs server so i cant do anything on these machines.
2. The firewall script [url] at line 27 should be DROP but if i use this line of code the GATEWAY/ROUTER cannot use his dns server settings so when i try to browse the internet or ping a machine outside my local network it would came up with nothing.
View 1 Replies
View Related
Feb 6, 2010
I've successfully installed my LAMP server (9.10). I've ran a test.php but am curious if there are any tutorials onlines or even books to buy in order o learn how it all works. Where the files are and the mechanics of it. I have it installed but what now ha... I've done HTML, I've built websites but I'm lost!...
View 1 Replies
View Related
Apr 20, 2010
I have 3 virtual machines set up. 2 are servers and one is a client. On one of the servers I have installed apache, mysql, and php and mod_ssl. I can get to the web site on the server from my client system. I can even get to the info php site--the screen that shows everything about php (it's purplish!) I can also get to the secure https site. The one thing I can't do is get my table to display.I have set up a new user in mysql. I have granted that user all privileges. I have created a table on a new database in mysql. I then set up php code within html code But every time I try to go to my test.php site it only gives me the header. It obviously cannot find the table array. This is the code and someone already told me it looked right to them. So I am not sure what I am doing wrong.
View 14 Replies
View Related
Nov 9, 2010
i want to know what is use or benefit of using s and t permission?i have used them but could not understand its uses.please explain me with suitable example.Also tell me about umask command to flag on s and t.
View 1 Replies
View Related
Jun 2, 2010
How can I get log messages from the LAMP server on Ubuntu 10.04?Should I install some good program on Ubuntu for that purpose?
View 3 Replies
View Related