MAMP Pro /MAMP/ start page not accessible on local network - mamp

I am trying to access the MAMP Pro /MAMP/ start page over the local network, but I get the following error in the apache log:
[Wed Feb 24 12:21:03 2016] [error] [client 192.168.1.63] client denied by server configuration: /Library/Application Support/appsolute/MAMP PRO/mamp
I have locally mapped http://dev in my host file to the ip of the server, and I am able to view the websites hosted by MAMP, but not the start page.
Some facts that may be of use to diagnose:
I am using MAMP Pro 3.5
The document root has been changed to ~/Sites
If I run normal MAMP I can access the start page fine from the local
network. This is using the same ports as MAMP Pro, the same
document root, and the same PHP version.
I am under the impression that for some reason MAMP Pro uses a different location for the mamp start page files than that of MAMP? I have found the files in:
/Library/Application Support/appsolute/MAMP PRO/mamp
and
/Applications/MAMP/bin/mamp
and the permissions seem to be the same, as is the user.
Any clues?
Thanks in advance.

Had this in the past, just use IP address of the MAMP Mac.
Sometimes I had to configure the Apache http settings and set my other local IP address in to the ALLOW part.
Greetings,
Peter

#PeterInWiesbaden's answer was helpful in pointing me in the right direction. The issue was that in my (normal) MAMP httpd.conf file I had set all the paths of the MAMP start files to be similar to the following:
Alias /MAMP "/Applications/MAMP/bin/mamp"
<Directory "/Applications/MAMP/bin/mamp">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
but when I edited them in the httpd.conf file directly used by MAMP Pro, these get overwritten each time the server starts, as it uses a template for each Server Name.
To edit httpd.conf for MAMP Pro, it must be done through going to the following in the menu bar:
File->Edit Template->Apache->httpd.conf
And changing the MAMP Pro start pages sections similar to the following:
Alias /MAMP "/Library/Application Support/appsolute/MAMP PRO/mamp"
<Directory "/Library/Application Support/appsolute/MAMP PRO/mamp">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

Related

Where will be the myserver.conf, hosts, and ports.conf in cPanel/WHM?

I want to customize my client's site with virtual host block. Manually I did this request on the Ubuntu server 18.04. But now I have the cPanel and the WHM access.
I read these official links.
Modify Apache Virtual Hosts with Include Files
Modify Virtualhost Containers With Include Files
But I messed regrading the include files and those directories as,
/usr/local/apache/conf/userdata/ssl/2_2/$user/$domain/$includename.conf
and
/etc/apache2/conf.d/userdata/ssl/2_4/user/domain/includename.conf
And the following scripts
To rebuild the httpd.conf file, run the following script:
/usr/local/cpanel/scripts/rebuildhttpdconf
To restart Apache, run the following script:
/usr/local/cpanel/scripts/restartsrv_httpd
Please clearly tell how can I merge this to be put using cPanel and WHM.
vhost
<VirtualHost *:9876>
ServerName 139.59.xxx.xxx
DocumentRoot /home/username/newfile/doneapi/public
<Directory /home/username/newfile/doneapi/public>
AllowOverride All
</Directory>
</VirtualHost>
hosts file
127.0.0.1 139.59.xxx.xxx
ports.conf
Listen 9876
Thanks in advance

/phppgadmin Forbidden You don't have permission to access /phppgadmin/ on this server

I recently upgrade my server from Debian Wheezy to Debian Jessie (Debian 8).
A lot of packages was updated and now, I don't have the right to access to phppgadmin from http://myIP/phppgadmin
Forbidden
You don't have permission to access /phppgadmin/ on this server.
I try a lot of thinks to solve the problem but absolutely nothing works...
In /etc/apache2/conf.d/phppgadmin:
Alias /phppgadmin /usr/share/phppgadmin
<Directory /usr/share/phppgadmin>
DirectoryIndex index.php
AllowOverride None
order allow,deny
# deny from all
allow from 127.0.0.0/255.0.0.0 ::1/128
allow from all
In /etc/apache2/sites-enabled/000-default.conf I add:
<Directory /usr/share/phppgadmin/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
I try to change the permissions of /usr/share/phppgadmin/, /var/www...
And I have the same message even if I uninstall the package phpgpadmin !
apt-get remove phppgadmin
Big thanks for help...
In Debian 8, apache2 configurations are now in /etc/apache2/conf-available and soft-linked from /etc/apache2/conf-enabled when enabled, just like virtualhosts or modules.
The phppgadmin package in its latest version comes with a predefined configuration file:
/etc/apache2/conf-available/phppgadmin.conf
This configuration should be activated by default, but otherwise it can be activated with a2enconf phppgadmin
Your old configuration /etc/apache2/conf.d/phppgadmin should be removed as well as the mentioned addition in /etc/apache2/sites-enabled/000-default.conf.
Then edit phppgadmin.conf and remove the Require local directive that you don't want if you previously had Allow from all.
you can easily solve this problem by replacing Require local directive to Allow from all in configuration file /etc/apache2/conf-available/phppgadmin.conf

How to change from localhost to localhost.local in wamp?

I'm using cakephp 2.1 and WAMP for one of my app which is making use of Facebook Connect plugin. Getting an error saying
An error occurred. Please try later
Googled and found this
http://ardentdev.com/no-facebook-connect-cookies-for-localhost-development/
But not coming to know how to chance the settings from localhost to localhost.local for app in WAMP.
First, you need to add a virtual host. To do this, edit the apache configuration file that came with WAMP. This is assuming you're on OSX.
/bin/apache/Apache2.2.17/conf/http.conf
# add the following
<VirtualHost 127.0.0.1>
DocumentRoot "/path/to/project"
ServerName mysite.local
ServerAlias mysite.local
</VirtualHost>
Then, edit your hosts file. Open up the terminal, and run the following (use whatever editor you like, I'm choosing Vi):
$ sudo vi /private/etc/hosts
And add a host to point to our new site.
127.0.0.1 mysite.local
Lastly, restart the WAMP server and you should be able to visit mysite.local in your browser and it will point to your project.

Testing website on localhost server for iphone and ipad

What I'm looking to do is preview what I've built on a custom localhost server (set up with Mamp Pro) on my iphone or ipad. The localhost is under http://devsite:8888 and not http://localhost:8888.
I've tried the instructions for something similar found here. The result was being able to see the files but it was just the list of the files on the server and not picking up index.php—no previews enabled. I've triple checked to make sure I have a proper index in the root directory as well.
Added /etc/apache2/extra/httpd-vhosts.conf file
https://gist.github.com/07223bf788ef1e2e1411
Put this in your .htaccess or httpd.conf (usually /etc/apache2/httpd.conf on OSX):
DirectoryIndex index.php
If that is put in .htaccess be sure that somewhere in httpd.conf (or whatever customm config file for the web server) you have this (replace /var/www/html with the directory where your .htaccess file is):
## These lines can go anywhere in the main config file:
AccessFileName .htaccess
<Directory "/var/www/html">
AllowOverride All
</Directory>
Also, make sure your /etc/hosts file includes:
127.0.0.1 devsite
# Or whatever your local computers IP is:
# 192.164.2.164 devsite
so that the hostname will resolve properly.
Edit:
From the comments, it sounds like your virtual hosts may need additional configuration. Can you put the contents of the /etc/apache2/extra/httpd-vhosts.conf file in your question?

Zend .htaccess configuration not working in Ubuntu

Hi I am running Ubuntu 10.04 LTS - the Lucid Lynx
i create a project by
zf create project test
this command automatically generates a .htaccess file which didn't work
I configured my webserver (Apache2) by editing
/etc/apache2/sites-available/default file
setting
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
and i am getting the following error
Internal Server Error
/**************************************************************************************/
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster#localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2.2.14 (Ubuntu) Server at localhost Port 80
/****************************************************************************************/
please help me
You haven't loaded mod_rewrite, so Apache doesn't know what the RewriteEngine line means.
On ubuntu you can probably do (as a super user):
a2enmod rewrite
apache2ctl restart
Otherwise you'll have to edit the apache config and add a line like this to load the module
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
The path on your system may be different.