Changing httpd.conf corrupts XAMPP?

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Changing httpd.conf corrupts XAMPP?

Postby opcd17 » 05. April 2011 04:29

My system is Ubuntu 10.10 and I just downloaded XAMPP from the official site...

It installs and runs fine but when I make one single change to /opt/lampp/etc/httpd.conf and then restart I get this error:

Starting Apache with SSL (and PHP5)...
Error1! Couldn't start Apache!
Starting diagnose...
Sorry, I have no idea what's going wrong.
Please contact out forums...

I am making the change with sudo gedit /opt/lampp/etc/httpd.conf

and the change I am making is adding this line below Listen 80

Listen 127.0.0.1:9051

As soon as I add that and restart, I have no XAMPP!

Any ideas on what I am doing wrong? I have to open that port otherwise when i try to run PHP fsockopen() I get an error....
opcd17
 
Posts: 3
Joined: 05. April 2011 04:22

Re: Changing httpd.conf corrupts XAMPP?

Postby opcd17 » 05. April 2011 05:30

Okay so if I add Listen 20081 it doesn't crash, so 9051 is conflicting. This is the default Tor Control Port but also it is a MySQl listening port, right? So... conflict?
opcd17
 
Posts: 3
Joined: 05. April 2011 04:22

Re: Changing httpd.conf corrupts XAMPP?

Postby Sharley » 05. April 2011 05:56

If that port 9051 is already occupied then Apache can't start on that port.

So stop Tor listening on that port then start Apache, but will Tor then look for another port to listen on or can you configure Tor to listen on another port.

Apache can't share a port already in use and usually if you start Apache before the others that may use a port then Apache will not have issues and most if not all others will try and find another unused port, much like Skype does.

Is there a utility available for Linux that tells who is currently using which port like CurrPorts for Windows?
http://www.nirsoft.net/utils/cports.html
I would feel sure that there would be something similar for Linux that has a GUI and would be a must have utility for your network toolkit if you find one.

Search results - Netstat with a GUI.

Some netstat command line help:
http://en.wikipedia.org/wiki/Netstat

Also here is a link to big list of all the ports and who is defaulted or assigned to use them:
http://www.iana.org/assignments/port-numbers

Not much help to you now, but good luck and best wishes. :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Changing httpd.conf corrupts XAMPP?

Postby opcd17 » 05. April 2011 18:05

Thanks.. starting Apache before Tor seems to work but I can also assign a different port to Tor...

Anyone here had any luck hooking Tor with PHP to switch identities on the fly? I found a class to do it but my Tor won't authenticate, it's frustrating and I need to control my IP for reasons :-)

Netstat should work on BSD.
opcd17
 
Posts: 3
Joined: 05. April 2011 04:22


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 12 guests