Unable to access localhost when XAMPP is running

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

Unable to access localhost when XAMPP is running

Postby adim86 » 24. July 2009 03:40

I am unable to access the localhost while running XAMPP. I have been using this set up for two weeks successfully and suddenly I get a database error from XAMPP and then I restart my computer, after I restarted it I am unable to access my localhost, hence my coding environment is broken. I think apache is no longer working (but i do not know how to approach fixing this). I checked the log files and i got this message:

httpd: Could not open configuration file /Applications/XAMPP/xamppfiles/etc/httpd.conf: Too many levels of symbolic links

I checked the error logs and also got this:

[Thu Jul 23 20:36:47 2009] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu Jul 23 20:36:48 2009] [notice] Digest: generating secret for digest authentication ...
[Thu Jul 23 20:36:48 2009] [notice] Digest: done
dyld: NSLinkModule() error
dyld: Symbol not found: _alloc_globals
Referenced from: /Applications/XAMPP/xamppfiles/htdocs/Debugger/5_1_x_comp/ZendDebugger.so
Expected in: flat namespace

I dont know what they mean any help?
adim86
 
Posts: 5
Joined: 24. July 2009 03:12

Re: Unable to access localhost when XAMPP is running

Postby caltuna » 24. July 2009 19:03

I'm wondering if somehow something turn on Personal Web Sharing by accident. Go to System Pref, Sharing, and make sure the box is not checked.

Maybe another version of MySQL or Apache started at re-boot? In terminal do: cat /etc/hostconfig.

It should look like this:
AFPSERVER=-NO-
AUTHSERVER=-NO-
AUTOMOUNT=-YES-
CUPS=-AUTOMATIC-
NFSLOCKS=-AUTOMATIC-
NISDOMAIN=-NO-
TIMESYNC=-YES-
QTSSERVER=-NO-
WEBSERVER=-NO-
SMBSERVER=-NO-
SNMPSERVER=-NO-
SPOTLIGHT=-YES-
MYSQLCOM=-NO-
ARDAGENT=-NO-

If it doesn't, fix it. Note the MYSQLCOM and WEBSERVER. Don't omit the beginning and ending dash!

Al
caltuna
 
Posts: 111
Joined: 05. May 2009 16:35

Re: Unable to access localhost when XAMPP is running

Postby adim86 » 25. July 2009 01:04

My web sharing was on, i turned it off and restarted my computer but it did not work

This was what was in my hostconfig file:
AFPSERVER=-NO-
AUTHSERVER=-NO-
AUTOMOUNT=-YES-
CUPS=-AUTOMATIC-
NFSLOCKS=-AUTOMATIC-
NISDOMAIN=-NO-
TIMESYNC=-YES-
QTSSERVER=-NO-
WEBSERVER=-NO-
SMBSERVER=-NO-
SNMPSERVER=-NO-
SPOTLIGHT=-YES-

I later added these two below to mach your:
MYSQLCOM=-NO-
ARDAGENT=-NO-

I restarted my computer still no change. The logs are still saying the same thing, could installing mysql on a virtual machine (Vmware) cause this?
adim86
 
Posts: 5
Joined: 24. July 2009 03:12

Re: Unable to access localhost when XAMPP is running

Postby caltuna » 25. July 2009 02:50

Is the VM running?

Why would you install XAMPP on a virtual machine? You using Parallels or Vmware?

What does Activity Monitor show? Do you see httpd and mysql running there?
caltuna
 
Posts: 111
Joined: 05. May 2009 16:35

Re: Unable to access localhost when XAMPP is running

Postby adim86 » 25. July 2009 03:25

No I installed django server and mysql on my Vmware (windows xp), I was only wondering if that can cause a clash.

for some reason when i run "top" in my terminal i get three instances of httpd:

PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE
1228 httpd 0.0% 0:00.00 1 10 380 2420K 6944K 1184K 32M
1220 httpd 0.0% 0:00.00 1 10 380 2420K 6944K 1180K 32M
1240 httpd 0.0% 0:00.00 1 10 380 2228K 6944K 1184K 32M

mysql is also running and no the vm is not running


Thanks
adim86
 
Posts: 5
Joined: 24. July 2009 03:12

Re: Unable to access localhost when XAMPP is running

Postby adim86 » 25. July 2009 03:34

I dont know if i have been clear about wheat is happening to me.

I access the Xampp control panel, I hit start Apache, mysql and ftp. All of them show "starting" as their status and then change to "running" except Apache. Apache stays on "starting" (never switches) and when you go to ur browser and type in http://localhost. nothing shows up.
adim86
 
Posts: 5
Joined: 24. July 2009 03:12

Re: Unable to access localhost when XAMPP is running

Postby caltuna » 25. July 2009 16:35

Well if "top" shows httpd, than Apache is running... or looks like it. What does Activity Monitor show? Do you see several instances of httpd? (It is OK to have several going.)

What happens if you enter in your bowser the numbers: http://127.0.0.1/ ? Do you get a not-found screen?

Go to terminal and enter: cat /etc/hosts

Do you get:
cat /etc/hosts
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
caltuna
 
Posts: 111
Joined: 05. May 2009 16:35

Re: Unable to access localhost when XAMPP is running

Postby adim86 » 25. July 2009 17:46

There is no httpd in the activity monitor although it shows up when i do "top"

Yes I get an unable to find page error when i go to: http://127.0.0.1/

This is what i get when i do a: cat /etc/hosts

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
adim86
 
Posts: 5
Joined: 24. July 2009 03:12

Re: Unable to access localhost when XAMPP is running

Postby caltuna » 25. July 2009 18:25

Here are a bunch of things to try... in no special order:

For the hell of it try: http://127.0.0.1:8000/ It seems django uses a different port. See what you get there (probably nothing!)

I don't understand why you see httpd in top but not in Activity monitor. Restart the Mac and look at top again before doing anything.

I don't know what the last line is in your /etc/hosts file but I'm not worrying about it. You might take it out (use nano or pico or whatever) and re-start and see what happens.

I assume that the htdocs folder is RW for everyone? Use get info... not on the shortcut but to the actual folder... which is in the xmappfiles folder.

Could there be a firewall issue? Are you running Apple firewall? Do you have a router. Could port 80 be blocked somewho?

Take a look at your hpttd.conf file and see if somehow something got changed with respect to port 80. It is in .../XAMPP folder.

Maybe it's a permissions thing. You could go to terminal and do:

chmod -R 777 /applications/xampp and then start up XAMPP and see if it helps.

The only thing I can think of is that your virtual machine VMware screwed something up.

(And why would you want to develop a web app in python?)

Al
http://www.insurancesolutions123.com
caltuna
 
Posts: 111
Joined: 05. May 2009 16:35


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 23 guests