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
sharingsunshineAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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.
0
sharingsunshineAuthor Commented:
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.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
are both your Host (Mac) IP Address and VM IP Address on the same LAN ?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

sharingsunshineAuthor Commented:
yes, I only have one.  I have a static IP on the router.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
so, what are the IP Addresses of the Host and VM ?
0
sharingsunshineAuthor Commented:
I sent them via private message to you.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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)
0
sharingsunshineAuthor Commented:
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.
0
sharingsunshineAuthor Commented:
checking if httpd was working and saw this

https://gyazo.com/22e17e40870fecc1f5328904d57773e8
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
okay networking is not working.

or firewalls are enabled.
0
sharingsunshineAuthor Commented:
they aren't on host

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

selinux is disabled
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
is your Linux VM set to DHCP ?
0
sharingsunshineAuthor Commented:
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
0
sharingsunshineAuthor Commented:
I can ping the VM from the host but not vice versa
0
sharingsunshineAuthor Commented:
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
0
sharingsunshineAuthor Commented:
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.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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.
0
sharingsunshineAuthor Commented:
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.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
so there is no desktop in the VM ?

how did you install phpmyadmin/php ?
0
sharingsunshineAuthor Commented:
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.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
okay, so in the www directory, on the VM, there should be a phpmyadmin folder, is it there?

or where is it located ?
0
sharingsunshineAuthor Commented:
it installed it here



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

so looking at this is that the problem?
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
can you confirm, if you make changes to the test page, in apache, you can see those changes.
0
sharingsunshineAuthor Commented:
I created a page and I can see it from the browser.  The test page wasn't in the /var/www/html directory
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
okay, I'll download and have a look at this precompiled VM, it may not have phpmyadmin.....
0
sharingsunshineAuthor Commented:
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?
0
kadadi_vIT AdminCommented:
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
0
sharingsunshineAuthor Commented:
I went with a different centos image and then it worked fine.

centos-6.4-x86_64-minimal-installation-virtual-machine-org
which can be found here - http://virtual-machine.org/centos-6-x86_64-64bit-vmware-image-download
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sharingsunshineAuthor Commented:
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
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VMware

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.