Ubuntu Servers :: LAMP Server / WordPress - Permissions Failure
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
ADVERTISEMENT
Mar 9, 2011
I have question regarding setting permissions on wp-content/uploads... in wordpres. I read a tutorial where they want you to set permissions: chown -R julie.julie uploads/ chmod -R 777 uploads/ 777 makes it rwx for others as well. It's not secure! It works but is temporary fix. How I can make sure that the user julie (wordpress) will be able to write to it but anybody else wont.
View 3 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
Jun 27, 2010
I'm trying to get wordpress to work with lighttpd and my home test server... <name>.dnsalias.org as my IP is not static... When I install wordpress ( via apt-get ) and set it up through install script like this:
bash /usr/share/doc/wordpress/examples/setup-mysql -n wordpress <name>.dnsalias.org It is accessible from outside of my network but not from local one where the sever ip is 10.0.0.200 From outside it is using correctly domain <name>.dnsalias.org but from inside when I try to use ip 10.0.0.200 from other pc on net it will not work..a s it still using <name>.dnsalias.org in all links... Also I would like to have it in <name>.dnsalias.org/wordpress as I have another test site in <name>.dnsalias.org/<test_Site> which by thee way works from inside and outside of my network.... its just wordpress ...
I have followed this guide: [URL] but its for apache... I spend whole night searching for some solution and now I'm dead tired and you are my last hope ...( ....Obi Wan Kenobi ) So does someone running wordpress in setup like I described above, if yes
View 2 Replies
View Related
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
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
Jan 25, 2011
I had a working LAMP server on my old server. After a HD went out and was replaced I rebuilt my server with Ubuntu 10.10 server. Talk about a smooth and impressive install. I set up my Apache server and MySQL and even installed php5 just like I had done before on my old server. The only thing different I did with this install is with Apache. I now host 3 websites with virtual hosts. This is the only thing different I have done than the last time.
My problem now is my website won't display PHP. I didn't know I had this problem until I installed Drupal for a friend to play around with. Drupal won't finish the installation process because it claims: In your ./sites/default/settings.php file you have configured Drupal to use a server, however your PHP installation currently does not support this database type.
Know I have googled this phrase to hell and back to find a resolution and haven't. I even talked to my local linux guru at work and he refereed me here. I have tried reinstalling php left and right. I'm convinced that there is an option to enable php globally that I'm missing. I really think the virtual hosts is what is causing this trouble. What input will the mighty Ubuntu community provide me with,
View 4 Replies
View Related
May 18, 2011
Ran the following command from a user account listed with ALL permissions in visudo.
Code:
sudo tasksel install lamp-server
debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Permission denied
tasksel: aptitude failed (100)
View 2 Replies
View Related
Dec 9, 2010
I build a LAMP server behind a router. The current situation is:
1.I could access index.html of apache within the LAN.
2.I could access the vsftp outside of the LAN.
3.I could access the ssh outside of the LAN.
I have configured my router to do reflections(although I don't know it's correct or not.). I think the LAMP works good since I could use it inside the LAN. The configuration of the router is at least partly right because ssh and vsftp work fine(I test by browsing the ip:74.***.***.*** in the lan, not 192.168.1.8 --this also works. ).
I cannot access web service outside the LAN. And the error message is "Oops! Google Chrome could not connect to 74. Did I miss some configuration of router?Apache2?Ubuntu? I use the ubuntu server 2010.10 version.
View 3 Replies
View Related
Mar 11, 2011
I am wanting to install the 10.04 lamp server on a winxp pro machine with several hard drives all with ntfs. Will the lamp server be able to use the ntfs partitions ? Or do i need to change them over.There is several hundred gigs of data on the hard drives and i do not relish the job of converting them.Also can you just mount the ntfs shares that are on the windows machine with the ubuntu machine using a intranet type setup
View 3 Replies
View Related
Jan 24, 2010
I've been searching around the net how to do this but I can't find any clues. I did this:
Code:
sudo apt-get install lamp-server^
But now I want to remove it. I've read this: http://ubuntuforums.org/showthread.php?t=510403
[code]....
View 7 Replies
View Related
Oct 30, 2010
I am sure there is a nice guide out there somewhere but I cannot find it. My question is: The company I work for has a fully windows environment, servers and clients. The current server is on a Windows 2000 Server and I plan on replacing that. I wish to use Ubuntu server with Joomla for this purpose. This is my first venture into a purely command line interface, although I have played around with Ubuntu desktop in the past. My first question right now is: How do I log onto the Windows Network (active directory) from the ubuntu server. eth0 is reporting a valid internal IP on the network, so its been picked up okay.
Edit: I also want to assign a static internal IP address instead of grabbing from the DHCP. Edit2: Thinking about it, as the ubuntu server and windows server can ping each other do I even need to log into the domain? The server will only be serving web pages.
View 3 Replies
View Related
Dec 23, 2010
I have Ubuntu 10.10 and i installed the lamp-server by typing:
Code:
sudo apt-get install lamp-server^
everything seemed to work fine.
[code]....
View 9 Replies
View Related
Jan 20, 2011
I need to first point out that I am a complete n00b when it comes to Ubuntu Server, and I managed to install Ubuntu Server 10.04.1 (on a screen-less Acer Aspire 5100 laptop) with Apache2, MySQL, OpenSSH, & PHP5. I currently have this server (hosting my website) behind a linksys router with only port 22, and 80 forwarded to its ip address. Now my question is: Would it be safe to configure a print server on the same machine in order to print from the 3 other computers on my router to one printer, or are there security risks involved (like what I have heard with LAMP servers and Samba on the same machine)? I am also wondering if it is safe the way I configured port 80 & 22? It has extremely long passwords, and I also went through the secure installation of one of the programs setting a root password too... But can somebody please help me with my server? I am very surprised I have gone this far in my first 2 weeks of my Web Scripting class too!
View 1 Replies
View Related
May 25, 2011
I am looking to create a multi-user LAMP server. For example the domain name behind my curent server is [URL] I would like user1 to have [URL] and user2 [URL]
View 9 Replies
View Related
Apr 14, 2011
Do I need to do anything special to my LAMP server for AJAX to work?
View 2 Replies
View Related
Jun 17, 2011
I have an Ubuntu box running server 11.04 that is displaying a weird behavior when logging into the CLI. The message below will scroll for about 15-20 seconds when you first log in, but then it goes to the normal shell and everything seems to work fine.
Code:
Welcome to Ubuntu 11.04 (GNU/Linux 2.6.38-8-server x86_64)
* Documentation: http://www.ubuntu.com/server/doc
[code]....
View 9 Replies
View Related
Jan 13, 2010
I have a problem with my Wordpress installation.It works from inside of my LAN but not from Internet.I have opened for the port on my router and the default html page works from Apache2 from Internet.
View 5 Replies
View Related
Apr 9, 2010
I have my own personal web server with xubuntu on it, but after I upgraded to 9.10 my wordpress blog stopped working.
View 9 Replies
View Related
May 8, 2010
I'm trying to get openssh-server working so I can stop using the family TV and just SSH from my laptop. I've only just installed 10.4 server edition, and I've made a change to /etc/apt/sources.lst by removing the # in front ofdeb cdrom:[Ubuntu-Server 10.04 LTS Anyway I run:sudo apt-get install openssh-server
Code:
Reading package lists... Done
Building dependancy tree
[code]....
View 7 Replies
View Related
Jun 18, 2009
But I can't upload files or pictures all the time.Everytime I tried to upload , it tips me : "can't create file or folder ...... . is its parents folder writable by the server?"Now it's considered as a bug.But I tried 3 methods introduced on the net . But none of them worked. They are : 1: change the folder permission to 777 , not work for me.2: change the URL to "wp-content/uploads" not "/wp-content/uploads" , not work for me.3: use full url not "wp-content/uploads" also not work.
View 8 Replies
View Related
Feb 5, 2010
I am interested in creating a photoblog on Wordpress. Before I jump in I thought it would be wise to ask a few questions here first rather than getting into trouble and then firing absurd questions left and right. I am not very experienced regarding servers but not afraid either I was reading How-to's online reagarding installing Wordpress on Linux [url] and few questions came to mind :
1) Like any other server, does the computer that will run Wordpress have to be up and running for 24/7?
2) Since I will install Wordpress on a desktop, should I be concerned about my machine being compromised? I am not an expert on internet security so this is a big concern of mine.
3) Is it a good idea to install Wordpress on a personal desktop at all? Does running Wordpress from a different partition of the hard drive (if it is possible) help at all.
View 4 Replies
View Related
Mar 16, 2011
Trying to setup a file server for a small group of users and I am in need of help with file permissions with Ubuntu Server 10.10.
I have a single share mapping (ex /media/hdd1/share1). There are several folders that everyone will need read/write/edit permissions and there will be a few folders that all users will need read permissions and a couple of users will need read/write/edit permissions.
I have tried several things and as long as I create the folders/files through ssh using sudo, the permissions are fine, but when the users create file and folders through their computers (mixture of Windows and Mac) that user becomes the owner and no one else can write or edit those files.
I am using SAMBA and though it was a config issue with that but I logged each user directly into the server with the same issue.
I tried sudo chmod 777 /media/hdd1/share1 but all newly created files have the above issue.
View 1 Replies
View Related
Aug 11, 2011
I have small home atom-server on netbook (with damaged screen) with Intel Atom N450 1.6Ghz CPU and 1GB of RAM. I am looking for web server, that would not eat much resources when hosting wordpress blog (up to 50-100 readers at once in veeeeeery far future) - posts in most cases will be only text based, without big images or archives (I'm not sure if it is important).The brain of my atom-server is latest 32-bit ubuntu server, without X's, I access it from ssh console only. It is already:
- proxy gate for my internal network (squid)
- my gmail backup/IMAP (dovecot & getmail)
- file server for my internal network (samba)
[code]....
View 6 Replies
View Related
May 11, 2010
How can i find all of the files on the server with permissions 777?
View 2 Replies
View Related
Aug 25, 2010
I'm working on a remote Ubuntu 9.10 server, which is accessed via VPN. I installed Joomla, but had difficulty uploading new components, which I traced to a file permissions problem. I used FileZilla to FTP onto the site and tried to make the chmod changes I needed, but the commands kept failing. Eventually, I contacted the sys admin and told him I thought that there was an ownership problem with the directories. He checked and told me that I was logging in with exactly the same user name and password that he was using (it's not a live system currently) and that he could make chmod changes without any problems. Because all my attempts were still failing, he eventually did the following:
chown -R administrator:administrator /var/www
/var/www is where all the Joomla files are stored and Administrator is the user name.Now I find that when I run a chmod command in FileZilla, the server reports that it worked (see below):
Status:Connected
Status:Retrieving directory listing...
Command:CWD /etc
[code].....
However, if I go back and check the tmp folder permissions, I find that they are still set to 777.This still looks like an ownership problem to me, but I don't understand why the server seems to think that the chmod changes are working, when they aren't.
View 4 Replies
View Related
Feb 10, 2011
Can someone tell me if it is easier to set up permissions for users on the server or on the desktop?
View 5 Replies
View Related
Jan 13, 2010
I have two ubuntu boxes. One is a 9.04 desktop edition and the other is a 9.10 server edition I am working on some code that needs to be highly tolerant of bad network connections. It sends transactions to a central database, but when the network is not available, it caches them locally to retry later.
I have the code working beautifully on my desktop box. but when I test it on this other box (the one running server edition) there is a HUGE DELAY every time it tries and fails to send a transaction to the database when the network is down.
I tested a little further, and I found that if i unplug my network cable and run ping somehost on the desktop, it fails instantly saying "ping: unknown host somehost" But if I unplug the cable on the server box and run the same ping command it lingers for about 40 seconds before the ping fails.
Does anybody have any idea why this might be happening? Is this a 9.04 vs 9.10 difference? Is this a desktop vs server difference? Is there some package I can install, or some config setting I can change that will make the server box insta-fail just like the desktop does?
View 5 Replies
View Related
Nov 20, 2010
Currently have access to a VPS where we are running a small game server on ubuntu - the problem is that it is a multi-user environment, so when one person restarts the server process, all files it creates are owned by that users name and group. I have created a group called 'game' and added both users to it, but I need to know how to make all files in the game server's directory to be r/w/x for the group 'game'. Currently, I have a script that chowns and chmods all files recursively on startup, but I'd prefer not having to do this.
View 4 Replies
View Related
Jun 2, 2010
A week or so ago I ran an aptitude safe-upgrade and while it was updating mysql I suffered a power-failure. Now, this never really happens in Holland but of course this once it happened at the worst possible time.
I've tried a lot of different things to get mysql working again, but am running into all kinds of problems. First mysql won't shut off properly (it does startup with the computer but I can't connect to it at all) during an aptitude purge. If I kill the process mysql seems to purge properly, but I guess this is not the case because I wasn't able to install it then.
Things seem to have gone a bit more smoothly this time, however:
Code:
snek@snek-server:~$ sudo aptitude install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
[Code].....
View 2 Replies
View Related