How to set permissions so Zend Server CE Virtual Host can access a document root under my /Users/me directory on a mac - virtualhost

I am trying to set up Zend Server CE Virtual Host on a Mac running OSX Snow Leopard.
If I put the vhost document root in
/usr/local/zend/apache2/vhosts/site
everything works fine.
If I put it into
/Users/me/Documents/site
I get:
"Forbidden You don't have permission to access / on this server."
The permissions for /Users/me/Documents/site are:
drwxrwxrwx 3 me staff 102 30 Jul 12:33 test
How can I get the zend server daemon to serve files in my Documents directory?

Related

How do I log visits to a certain subdirectory of my website?

I have a simple apache server (the default installation on Digitalocean). I can view visits to the domain in the /var/log/apache2 directory, but how do I see which subdirectory they viewed? If this isn't something that's logged by default, how should I set it up?
There is indeed a logfile for all requests the server processed.
RHEL / Red Hat / CentOS / Fedora Linux Apache access file location is:
/var/log/httpd/access_log
Debian / Ubuntu Linux Apache access log file location is:
/var/log/apache2/access.log
FreeBSD Apache access log file location is:
/var/log/httpd-access.log
By default, there you can find the IP address, time, request method, URL the client was using to access your server and browser user agent.
If you want a customized log file you can always visit the official documentation - AccessLog.

How to access folder without domain and with ip address at WHM Web Host Manager?

I have root access, but I do not have domain name. I want to upload project and access through IP address. How is it possible?
That would be possible. Enable mod_userdir in WHM -> Apache mod_userdir Tweak. If userdir protection is enabled them uncheck the protection for the desired cpaneluser and also for the user nobody.
Then access your account like http://server-ip/~cpanelusername
In Windows system hosts files are located in Windows – SystemRoot > system32 > drivers > etc > hosts
By default, the system root is C:Windows, so if you are using Windows, your host's file is most probably: C:\Windows\System32\drivers\etc\hosts
In Linux system hosts files are located in Linux – /etc/hosts
In Mac system hosts files are located in Mac OS X – /private/etc/hosts
For more details please check the link
https://www.blazingcoders.com/how-to-access-hosted-website-files-without-domain-name-or-domain-control

Misunderstanding about apache and permissions

I'm configuring a server from scratch. I'm stuck in front of write permissions.
I'm trying to install a Magento installation and when I do the wizard I'm stuck in front these errors :
Path "/var/www/html/magento2/app/etc" must be writable.
But, when I go to ssh,
ls -l in /var/www/
drwxrwxrwx. 4 root apache 124 29 déc 14:21 html
(ed1: Previously I did chmod 777 -R html/)
(ed2: I'm on local server so, 777 rights are fine, don't blame me about it).
I install VSFTPD and I can upload files by FileZilla without problems.
I think, I have no enough rights only when I try through a browser. I looked into apache configuration, I set all to Require all granted and AllowOverride All. But I am still stuck.
Someone has already been in front of this case ? I'm sure, the solution is easy but I miss understand something about apache permissions.
PS : I'm working on my local machine with virtualBox on CentOs 7
PPS : My local virtual machine has 2 networks cards and is connected to Internet.

403 Forbidden Error when accessing file - httpd 2.4.23

I've installed HTTPD and PHP7 on my Fedora 24 64 bits. When i use the default path for 'DocumentRoot' ('/var/www/html') in the '/etc/httpd/conf/httpd.conf' file everything works perfectly but when I change the path to '/home/beto/web' it stops working.
When I try to access to 'localhost' the 'Fedora Test Page' with the non-default path works but if I try to access to any file, 'localhost/info.php' or 'localhost/foo.html' for example, it says:
403 Forbidden You don't have permission to access /info.php on this server.
I've checked the permissions with this 'namei -m /home/beto/web/info.php and this is the output:
dr-xr-xr-x /
drwxr-xr-x home
drwxr-xr-x beto
drwxr-xr-x web
-rw-rw-r-- info.php
I've been trying for a while :'(

MAMP Pro + Espionage folder encryption = 403 error?

I'm using MAMP PRO on my OS X 10.6 with Espionage to encrypt my ~/Sites folder (where MAMP is pulling my virtual hosts from).
I'm having trouble having MAMP's Apache follow the symlink that Espionage automatically creates to /Volumes/EspionageMounts/lee/3042560432 (I believe this changes all the time, so cannot be static).
My 'Sites' folder is owned by lee/staff.
The volume Espionage mounts seems to be owned by the same.
I have set MAMP Pro to use user 'lee' for Apache.
FollwSymLinks is set in my test.dev virtual host.
And yet, any Apache request to test.dev/whatever.html yields a 403 Forbidden.
The Apache error logs shows:
[Sun Jul 18 08:39:14 2010] [error]
[client 127.0.0.1] Symbolic link not
allowed: /Users/lee/Sites
What am I missing?
Make sure the target folder of the symlink has sufficient permissions for "others."
Try checking the option "Public mountpoint" on Espionage.
I had the same problem. You must select "Public mountpoint" under Espionage settings for your ~Sites folder. Click "Save Changes" and you should see your local sites properly when your folder isn't locked.