All Questions
24
questions
0
votes
1
answer
6k
views
Where to find the website folder in ubuntu server?
So someone gave me the task to find where is the website code exist on ubuntu server
when I look at the the index.html file path it is
/var/www/example.com/html
but when I go to /var/www directory I ...
3
votes
1
answer
1k
views
Ubuntu Apache Subdomain not Displaying
Using Ubuntu 18.04
I have my main website www.example.com, all the files are hosted in /var/www/html/ and it works as expected. I would now like to make a new website in a subdomain www.blog.example....
0
votes
1
answer
840
views
User-Permission on Folder without affecting owner:group
How can I allow a specific user on my Ubuntu desktop to view/open all folders and files in a specific location without affecting or changing the owner:group of that location?
Until now I need to ...
2
votes
0
answers
228
views
Ubuntu 20.04 to Microsoft Active Directory Integration
I'm having an issue integrating Ubuntu with a Windows Active Directory, the "Realm Discover" always fails to find any realm at all.
My DNS server is absolutely fine and I am using Ubuntu 20....
-2
votes
1
answer
183
views
How to move a website to a new server? [closed]
I am going to move my website to a new server.
I need to copy the /var/www directory to the new server.
Should I use SCP or RSYNC ?
-4
votes
1
answer
93
views
Rename and replace parts with different filenames [closed]
I know there are different questions about this topic but I have found nothing that fits my question:
I want to replace a part of a name in a folder but there are different files with different names....
1
vote
0
answers
84
views
mysql on custom folder
I have already installed MySQL 5.7 (using apt-get) on an Ubuntu server but I need to install version 5.5. I have used the tar.gz binary package and installed it under /home/mysql55/mysql. Now I need ...
1
vote
2
answers
5k
views
Mount folder automatically in home directory for every old&new user
I want to allow access to /var/www/dev/ to every user in my system (+50) via their home directory
For one particular user I can do:
mkdir /home/user_name/www_dev mount --bind /var/www/dev/
/...
0
votes
1
answer
63
views
Directory vs Files for efficient search and retrieval of files
I am working on a website where users have ability to store all kinds of media on the server and there can be any number of users.
I thought I would store all the media which users upload like this:
...
2
votes
2
answers
6k
views
create second samba4 active directory domain controller for backup
I built up a samba4 active directory domain controller on ubuntu 14.04 and everything is working fine. The Windows clients can log in and do stuff. So far so good.
However, in case of emergency, I ...
1
vote
1
answer
3k
views
Nginx Password Protect Entire Port Number 8081
I'm trying to password protect an entire port on my website--https://domain.com:8081 and http://domain.com:8081
I have tried editing /etc/nginx/sites-enabled/domain.com.vhost by adding the following ...
14
votes
2
answers
18k
views
Apache2 - 301 Redirect when missing "/" at the end of directory in the url
I haven't really noticed this Redirect(301) when requesting a url like this without slash("/") at the end: http://server/directory
The server will respone with a 301 Redirect Permanent header with a ...
3
votes
1
answer
3k
views
How do I symlink one directory to a chrooted (jailed) directory?
'm trying to create a folder (directory) for a jailed user on my server that will allow him to access another folder outside of his jail. I'm trying to do this with symlink but all it does is create a ...
1
vote
4
answers
19k
views
/etc/hosts redirecting domain to localhost/directory [closed]
In this example i'm trying to force test.com to load localhost/project
127.0.0.1/project test.com
However it doesn't work.
127.0.0.1 test.com
The above works, but I really need it to go to /...
0
votes
2
answers
223
views
Default path when user logs in
How can I put a user in a default directory when the logs in via SSH on Ubuntu? Currently, users are in ~ but I want them in something like /path/to/something. How is this configured? The machine ...
2
votes
3
answers
358
views
In Ubuntu, how can I give two groups of users root power except for access to one folder?
I just created a Ubuntu development server and I would like to work with two teams on it. I want people from these teams to do anything they want, but I don't want them to be able to see the files ...
11
votes
2
answers
20k
views
Where to put www directory on Ubuntu?
I'm a bit scared to ask this because I got so many negative votes for simply asking a question last time, but here goes;
Where in the Linux (Ubuntu) directory structure is it 'normal' to put public ...
1
vote
4
answers
5k
views
Real time Sync between two folders on different servers
What is the best way to sync two folders completely in real time over two servers (Ubuntu) in same network? Do you think syncing folders is a better idea than having a shared folder? If a shared ...
18
votes
5
answers
102k
views
Why can't I cd into a directory?
I am running Ubuntu 10.04.2 LTS. Why I can't I cd into the /var/www directory?
david@ubuntu:/var$ pwd
/var
david@ubuntu:/var$ ls -l
drwxrwxr-- 13 root root 4096 2011-02-26 21:53 www
david@ubuntu:/...
2
votes
1
answer
293
views
Jail user to only read/write into their user directory
I'm running a Ubuntu server and wanted to know if there was a way to only allow a user (connecting via FTP and SSH) read and write access to their own /home/user/ directory and not let them read or ...
2
votes
1
answer
6k
views
Used recursive chown on the root directory
Im gonna need some help restoring my ssh settings as i screwed everything up by calling this command:
chown -R user /
At the moment im not able to access the site through ssh/ftp since the ownership ...
3
votes
6
answers
1k
views
Need to check a directory tree for changes every 10 seconds and run a script if it is changed
I have a directory that has many folders with code inside it, and I need to run a script to rsync changes over to a couple other servers. I have that script written and working fine, but I cannot ...
0
votes
2
answers
6k
views
How to add another application to apache?
I was following the Zabbix installation tutorial for Ubuntu and it requested that I added a file /etc/apache2/sites-enabled/000-default containing
Alias /zabbix /home/zabbix/public_html/
<...
2
votes
2
answers
267
views
Linux directory permission problem
Why can't I access a directory that I should have access to by group? My user belongs to the group www-data, and the directory has permissions granted for this group. But I cannot access it.
markus@...