Avatar of sharingsunshine
sharingsunshineFlag for United States of America

asked on 

New VMware Fusion Test Site - 403 Error

I am trying to access my vmware server via my desktop browser and I get a 403 error trying to connect to phpMyAdmin.  I am using dhcp for my network connection on the vmware server and I need to be able to access phpMyAdmin and the test site.

1.  Please tell me how to get phpMyAdmin working off the test server

2.  Also the best practice to access my site through the test sever via a browser.

I am using VMware Fusion 6 on a MacBook Mavericks.  The test server is a CentOS 6.4 server.  The hostname is localhost.localdomain

Here is a screenshot of a portion of my phpMyAdmin.conf file
https://gyazo.com/5b260d04b0fb600109a100102d09b425


Thanks,

Randal
VMwareLinux DistributionsApache Web Server

Avatar of undefined
Last Comment
sharingsunshine
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

If you have configured your VM Networking for NAT, you may want to change it to BRIDGED networking mode, and then re-try, the new IP Address from your Desktop (MAC OS Host).

So your Mac Host and VM are on the same IP network.
Avatar of sharingsunshine

ASKER

I went into setting and changed the bridged networking section to have wifi selected.  I then got a screen saying new name Wi-Fi, type airport, and then gives an IP number.

This is a different IP number than the VM. Following your statement

*********then re-try, the new IP Address from your Desktop (MAC OS Host)

I tried the ip from the network adapter change and the ip from the ifconfig for eth0 on the VM in this manner.  http://[ip number]/phpMyAdmin but neither one works.
are both your Host (Mac) IP Address and VM IP Address on the same LAN ?
Avatar of sharingsunshine

ASKER

yes, I only have one.  I have a static IP on the router.
so, what are the IP Addresses of the Host and VM ?
Avatar of sharingsunshine

ASKER

I sent them via private message to you.
can both the VM and Host - ping each other ?

for other experts, the IP Addresses are:-

Mac Host - 192.168.0.178
VM - 192.168.0.0.197

(I don't think there is any issues in sharing these, as they are private IPs)
Avatar of sharingsunshine

ASKER

the ping from VM to ip ending in .178 says host unreachable

the ping from desktop to .178 fails

ping from desktop to .197 fails

before we changed it to bridged from share with my Mac I could ping google.com and get yum updates.  Now neither one are working.
Avatar of sharingsunshine

ASKER

checking if httpd was working and saw this

https://gyazo.com/22e17e40870fecc1f5328904d57773e8
okay networking is not working.

or firewalls are enabled.
Avatar of sharingsunshine

ASKER

they aren't on host

iptables - https://gyazo.com/59038b276b88cd2c8fba31c73a43d4af

selinux is disabled
Avatar of sharingsunshine

ASKER

yes, in /etc/sysconfig/network-scripts/ifcg-eth0 I have BOOTPROTO = "dhcp" and when I change it off of bridged to "share my mac" it serves up an address.


when I restart the network it shows
https://gyazo.com/e93696987c6a2161d89a827aa38eaa3b
Avatar of sharingsunshine

ASKER

I can ping the VM from the host but not vice versa
Avatar of sharingsunshine

ASKER

Let me clarify,

I can ping the .197 address from the host

but from the VM I can't ping .178 which is the network adapter ip
Avatar of sharingsunshine

ASKER

from the host browser using http://192.168.0.197 I can get the centos test page but when I put in http://192.168.0.197/phpMyAdmin I get the 403 error.
okay, so you have network connectivity between the two computers, confirmed by connection to test page, so Web traffic is working.

inside the VM can you test with a browser?

I suspect you have the wrong URL.
Avatar of sharingsunshine

ASKER

I don't know how to test a browser inside of the VM.  This VM doesn't act like the Windows ones I have set up.  Which I can run a browser in.
so there is no desktop in the VM ?

how did you install phpmyadmin/php ?
Avatar of sharingsunshine

ASKER

this is the distribution I used
http://twiki.org/cgi-bin/view/Blog/BlogEntry201310x2

and I installed the LAMP items via yum

I haven't seen a desktop when I boot up it goes to the command line each time.
okay, so in the www directory, on the VM, there should be a phpmyadmin folder, is it there?

or where is it located ?
Avatar of sharingsunshine

ASKER

it installed it here



/var/lib/phpMyAdmin
/usr/share/phpMyAdmin
/etc/phpMyAdmin

so looking at this is that the problem?
can you confirm, if you make changes to the test page, in apache, you can see those changes.
Avatar of sharingsunshine

ASKER

I created a page and I can see it from the browser.  The test page wasn't in the /var/www/html directory
okay, I'll download and have a look at this precompiled VM, it may not have phpmyadmin.....
Avatar of sharingsunshine

ASKER

I added it by yum so I don't think it will have it included initially.

On my Amazon instance I loaded it via yum too.  I did a search and it puts it in the same place as the VM.

[root@ip-172-31-22-236 ~]# find / -name phpMyAdmin
/usr/share/phpMyAdmin
/var/lib/phpMyAdmin
/etc/phpMyAdmin

I looked at port 80 via telnet and it is says connection times out on port 80

I changed the iptables and I commented out at the last line what was their originally.  I restarted iptables and network and apache but still get same error

https://gyazo.com/33b7909703d5c581c099aac1dc728183

I looked in phpMyAdmin.conf and there is an alias pointing to /phpMyAdmin just like on my instance with Amazon. Is there something that needs to be turned on to honor that alias?
Avatar of kadadi_v
kadadi_v
Flag of India image

Now you need to give the access in phpMyAdmin.conf located @ /etc/httpd/conf.d/phpmyadmin.conf on centos VM.

Please add  the line there allow from all in phpMyAdmin.conf file.

Regards,
VK
ASKER CERTIFIED SOLUTION
Avatar of sharingsunshine
sharingsunshine
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of sharingsunshine
sharingsunshine
Flag of United States of America image

ASKER

the orignal centos image was missing some key parts so I started over and then the phpMyAdmin worked fine and I was able to connect without getting the 403 error anymore
VMware
VMware

VMware, a software company founded in 1998, was one of the first commercially successful companies to offer x86 virtualization. The storage company EMC purchased VMware in 1994. Dell Technologies acquired EMC in 2016. VMware’s parent company is now Dell Technologies. VMware has many software products that run on desktops, Microsoft Windows, Linux, and macOS, which allows the virtualizing of the x86 architecture. Its enterprise software hypervisor for servers, VMware vSphere Hypervisor (ESXi), is a bare-metal hypervisor that runs directly on the server hardware and does not require an additional underlying operating system.

39K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo