LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-27-2015, 12:53 AM   #16
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002

771 will allow you to make a directory the current directory, i.e. cd directory is possible, but since the read bit is not set, "other" accounts won't be able to list the directory content. In other words, you need 775 or 755.
 
Old 11-27-2015, 07:59 AM   #17
debguy
Member
 
Registered: Oct 2014
Location: U.S.A.
Distribution: mixed, mostly debian slackare today
Posts: 207

Rep: Reputation: 19
SOLVED - he said it works !!

SOLVED - he said it works !!

SOLVED - he said it works !!

Quote:
Originally Posted by sraidr69 View Post
Again I am running Mint 17.2 that I upgraded from Mint 14. My localhost on 14 was "/var/www". I noticed there is a /var/www/html/ in 17.2 so I moved "mysite" from /www into /www/html and it works and the url is localhost/mysite. I am fine with this, just wondering if anybody knows about this?
debian is famous for changing all the "compiled defaults" in software, so that if you got apache and compiled it and configured a site: it'd be broken in awful ways

not surprisingly not only do they hack the compile defaults: but change them as well so that if you worked with "debian's defaults" you are then also "up the creek"

---------------------

don't know if anyone mentioned it: but this is a reason to check into apache's help documentation (installed by default, accessible on apache.org as well)

VirtualHost can be used to "encapsulate" your site so it is not dependant on distributor hacks. it ALSO is the "right way" to host multiple websites using one server (many IP addresses routed to one fast server hosting many .com) or just many websites each in a directory under the main url (myhost/a/index.html, myhost/b/index.html)

<VirtualHost localhost:80>
ServerName foo.com
ServerAdmin webmaster@foo.com
DocumentRoot /var/www

# paste your old website's httpd.conf here
# NOT incl. a few globals in "the real httpd.conf"

</VirtualHost>
<VirtualHost new.com:80>
ServerName foo.com
ServerAdmin webmaster@foo.com
DocumentRoot /var/new.com
RewriteEngine on
ErrorLog /var/log/new.com.log
# paste hosted website here
</VirtualHost>

EACH WEB SITE (or IP, either) has it's own conf encapsulated in a VirtualHost "markup", and are called "virtually hosted", but it works just like httpd.conf really, it's easy and works same way, likely your "real httpd.conf" just #include each virtual site and contains only globals

there can be many virtualhost as needed

Last edited by debguy; 11-27-2015 at 08:11 AM.
 
Old 11-28-2015, 01:32 AM   #18
sraidr69
Member
 
Registered: Mar 2015
Posts: 59

Original Poster
Rep: Reputation: Disabled
It appears that I have this resolved. I used

Code:
chmod 775 /var/www/ -R
and that seems to have resolved this. Thank you for all the help!
 
Old 11-28-2015, 02:42 AM   #19
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
755 is the standard for directories and
644 is the standard for files.


Glad it worked out.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mail received at sendmail has relay=localhost [[UNIX: localhost]] check_rcpt fails chingupt Linux - Distributions 3 04-25-2013 05:36 PM
configuring apache2 for form uploads to be seen at localhost imran042 Linux - Newbie 1 05-01-2012 10:22 AM
Message from syslogd@localhost localhost kernel: Disabling IRQ #21 ylts Linux - Hardware 0 02-26-2005 08:01 AM
"localhost login" problems, loading graphical enterface and configuring static ip june Mandriva 2 10-15-2004 02:46 PM
Configuring Apache for localhost only subnet_rx Linux - Software 1 06-29-2004 05:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration