General :: Cannot Connect To Localhost After Selinux Install

May 5, 2011

I'm in the process of setting up a new Debian box as a web server. I had apache2 and mysql set up and all of the SSl taken care of. After installing selinux I noticed that my browser and ftp in the terminal wont connect to localhost, other computers on my network can connect to the apache server via a global ip, but it wasn't pulling database info. When I checked, I found that mysql was stopped. When I try to start it, it times out.

After some googling and trying a bunch of setsebools I finally just disabled selinux in /etc/selinux/config. I rebooted and confirmed selinux was disabled, but still the same issues. If it helps the error php throws when trying to connect to mysql is "can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)"

View 2 Replies


ADVERTISEMENT

General :: Cannot Connect To Service With Public IP Only With Localhost

Apr 20, 2010

I have installed Linux Mint 8 (based on ubuntu). And I have setup a webserver on port 8098.

I can connect to my webserver with http://127.0.0.1:8098, but when I try to connect to http://192.168.1.107:8098 from the same machine or another machine it doesn't work.

How can I get this working? Is there any default firewall settings that I have to change?

View 2 Replies View Related

General :: Can't Connect To X11 Window Server Using 'localhost:0.0'?

Jan 24, 2010

I have an intel i7 with windows7 64b , then install VMware Workstation and create a machine with Oracle enterprise Linux 64b 5update4, now i want to inatall oracle db10gR2, but this message apears. [oracle@localhost database]$ Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using 'localhost:0.0' as the value of the DISPLAY variable.

at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)

[Code]...

View 8 Replies View Related

General :: Error: Cannot Connect To The Database Because: INSERT Command Denied To User 'webuser'@'localhost' For Table 'visitor'

May 6, 2011

Error: Cannot connect to the database because: INSERT command denied to user 'webuser'@'localhost' for table 'visitor'

[Code]...

View 3 Replies View Related

Ubuntu :: Cannot Connect To Localhost:631?

Jul 18, 2010

I cannot log into 'localhost:631' to install my printer. I reinstalled cups files to no avail. Why do you think I cannot login?

View 3 Replies View Related

Ubuntu :: Can't Connect To Localhost?

Aug 2, 2010

Get the usual message of when theres network/connection problems:Unable to connect Firefox can't establish a connection to the server at localhost. I could access it a few hours ago, but now I cant Have not restarted the computer since, have not really done anything out of the ordinary either. Why is it doing that and how to solve it? I have never got this problem before.

View 2 Replies View Related

Networking :: Can't Connect To Localhost By IP

Dec 30, 2010

I am running the HTTP server (Jetty) from Eclipse IDE, which listens on port 8888. I can connect to it in the browser with URL [URL] but not with http://192.168.1.100:8888/home, where 192.168.1.100 is my local IP. Not from this PC or any other PC in the LAN. Firewall is disabled. I can successfully ping to 192.168.1.100. I can share from this PC with SAMBA.
All configuration and logs look fine.

View 6 Replies View Related

CentOS 5 :: Cannot Connect To Localhost

Sep 5, 2009

$mysqladmin -u root

just prints out a long option list and quits... sometimes it tells me that I cannot connect to localhost.... I've tried --no_defaults,--socket= etc. as per the MySQL manual.

MySQL 5.0.45 I know the server is running This is a new install and i'm su'd to mysql in mysql homedir. I'm sshing into DV Centos 5.

View 1 Replies View Related

Ubuntu Networking :: Cannot Connect Via Localhost

May 24, 2011

i re-installed ubuntu 11.04 two days ago, to join 2 partitons into 1,anyway i then setup vnc and ssh as normal but now it just times out on both when trying to connect is there a firewall or something in place by default?ports show as open when scanning my external isp address, ubuntu box is in the dmz so no need for ports being forwarded.i also cannot connect via localhost, the above testing i could not connect from my worki can also netcat to my external ip via ssh/vnc ports and read the banners fine?

View 1 Replies View Related

Red Hat / Fedora :: VSFTPD: Can't Connect From Localhost

Aug 20, 2010

I set up a ftp server using VSFTPd. Remote connections are working fine. I can connect then create, rename and delete folders. I can upload files without any issue. BUT, each time i connect directly from the server (with the command "ftp localhost") i can't upload files either delete them. The only thing i can do is create folders. I'm getting error code "553: could not create file" when trying upload files. I triple checked the rights, everything is OK. I disabled SELinux (even if i don't like it). The weirdest thing is everything's working fine from remote host.

Below my vsftpd.conf:

listen=YES
tcp_wrappers=YES
anonymous_enable=NO
local_enable=YES

[code]....

View 4 Replies View Related

Debian :: Boinc Will Not Connect To LocalHost

Mar 28, 2011

I am running Testing with the liquorix kernel. Right now I have Boinc 6.10.52 on here. I have tried 6.10.58, 6.12.8 and 6.12.18 (all for 64bit linux). I have, for months, been running the 6.12.8 version. Boinc is installed in my home folder as it has been for nearly 2 years.

Rebooted after trying to test an Ubuntu LiveCD for the 11.04B1 (Failed big time). I turned off this drive in bios for that test. This has been done many times over the years of testing as I use a different drive for that and want no contamination of my main drive. I did have some problems booting that were corrected by reinstalling my fglrx-driver package.

The only problem is that Boinc will not run at all. None of those versions. They all behave the same way. Open boincmngr from menu and it comes up blank and "disconnected".Go to Advanced/Select computer. Has the option for "Debian". This is correct. Select that and enter the password for Boinc or the password for Debian and it tries to connect but does not.

View 2 Replies View Related

Server :: Cant Connect To MYSQL On Localhost

May 28, 2011

Running MYSQL 5.5.12 and MYSQL Workbench 1:5.2.34 on up-to-date Arch linux Set up MYSQL with root account and password. When running Workbench as user, got error when trying to connect :

Quote:

Cannot Connect to Database Server Your connection attempt failed for user 'root' from your host to server at 127.0.0.1:3306: Can't connect to MySQL server on '127.0.0.1' (111)

1 Check that mysql is running on server 127.0.0.1

2 Check that mysql is running on port 3306 (note: 3306 is the default, but this can be changed)

3 Check the root has rights to connect to 127.0.0.1 from your address (mysql rights define what clients can connect to the server and from which machines)

4 Make sure you are both providing a password if needed and using the correct password for 127.0.0.1 connecting from the host address you're connecting from

After commenting #skip-networking in my.cnf error changed to :

Quote:

Cannot Connect to Database Server Your connection attempt failed for user 'root' from your host to server at 127.0.0.1:3306: Lost connection to MySQL server at 'reading initial communication packet', system error: 0

1 Check that mysql is running on server 127.0.0.1

2 Check that mysql is running on port 3306 (note: 3306 is the default, but this can be changed)

3 Check the root has rights to connect to 127.0.0.1 from your address (mysql rights define what clients can connect to the server and from which machines)

4 Make sure you are both providing a password if needed and using the correct password for 127.0.0.1 connecting from the host address you're connecting from

Copying my.cnf to /etc/ and running Workbench as root didn't change anything, i still get the second error The wiki [URl] says to enable MYSQL in /etc/hosts.allow but i didn't do it, i guess it is required only when trying to access MYSQL from remote hosts which i dont.

View 2 Replies View Related

Software :: Apache2 Won't Connect To Localhost Or 127.0.0.1

Mar 16, 2009

1. I use a cable modem with a specific IP address & a router with port 80 forwarded to my home Linux development machine. From outside my house (e. g., from my office), I can connect no problem.

2. My home development machine is IP 192.168.1.20- if I use this address in the browser (on the home development machine) it connects. However, on the same machine, neither localhost nor 127.0.0.1 connect.

Nothing shows up in the regular log (even with logging set to "debug"), but this shows up in the error log for both localhost and 127.0.0.1:

Quote:

[Mon Mar 16 19:05:28 2009] [error] [client 127.0.0.1] File does not exist: /htdocs

This is particularly odd, since I have NO reference to htdocs in any of my configuration files. I have grep'd all over the place, and the only reference that shows up is in the apache2 binary. When I do 192.168.1.20, I get this in the error log:

Quote:

[Mon Mar 16 19:10:24 2009] [error] [client 192.168.1.20] File does not exist: /var/www/localhost/scripts, referer: http://192.168.1.20/

Which should be OK, because in this initial, very immature test environment, I don't have the /scripts directory defined; I don't think it has anything to do with my problem. I get the web page. My sites-enabled/000-default (appropriately linked per convention to a file in sites-available) has been completely stripped down. I have exactly the same situation with the default sites-* file. Here's the minimal version:

Code:

NameVirtualHost *
<VirtualHost *>
ServerName localhost
DocumentRoot /var/www/localhost

[code]....

View 14 Replies View Related

Fedora Servers :: Unable To Connect To The Localhost

Jul 13, 2009

I'm trying to connect to url, but the browser is unable to connect to the localhost; my OS is F11, if someone have encounter this problem? i was able to connect to the localhost when i had F6 OS.?

View 3 Replies View Related

Ubuntu Networking :: Can't Connect To Localhost Trough Lan?

Jul 22, 2010

i know it all sounds weard but ive been searching google so much now.. look the setup is kinda straight forward. We got a test server for websites. This server has lamp server configured. Now i have a Website in the apache www folder. From here on everything works fine in http://localhost or 127.0.1.1 etc etc. also i have configured virtualhosts. This so we can have a live enviroment but its actually a test enviroment.

Now i try to connect trough the lannetwork! so i goto my windows client and hit in the browser :http://(serverip+port) and also tried http://(serverip) When i do this i get a 403 forbiddin acces. I solved that problem by deleted a line in the apache2.conf wot was called : virtualHost xxx.xxx.xxx.xx: xx

Now Hes loading the page but says he cant connect to 127.0.1.1 Any1 knows a solution? (sorry for my bad grammer btw )

View 9 Replies View Related

Server :: Unable To Connect Localhost In Mysql

Apr 21, 2011

iam not able to connect localhost in mysql.i uswd command for mysql is

#mysqladmin -u root -h localhost password "123456"

ErroR:-

mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'

View 1 Replies View Related

Server :: Why The Php Mysql_connect() Only Can Connect Localhost MySQL

Apr 17, 2011

I used 4 host to establish a high-availability web server system. 2 Load Balancer + 2 Web Server(installed MySQL Server 5.5). 2 MySQL Server used Multi-Master Replication.Used "Amoeba" as MySQL Proxy which direct the write statement to a specific MySQL Server.I can login Amoeba and MySQL Server using MySQL client. I tried query something in XAMMP on Windows XP. It work!

Installed related software:

MySQL-server-5.5.11-1.rhel5
MySQL-shared-compat-5.5.11-1.rhel5
php53-mysql-5.3.3-1.el5_6.1
MySQL-client-5.5.11-1.rhel5

[code]....

What I tried:

yum install php php-mysql
yum install php53 php53-mysql

Compiled php 5.3.6 soruce + MySQL 5.5 Server, Client, Shared, Shared-Compact Above software installed on different host. And the phpinfo showing MySQL I doubt something wrong in my php.ini. Used default php configuration.

View 5 Replies View Related

CentOS 5 Server :: Php Can't Connect Mysql By 'localhost'?

Sep 25, 2009

php can't connect mysql by 'localhost' but can connect by IP address:

[Code]...

View 3 Replies View Related

Fedora :: SELinux - Partition Accessed By Httpd & Mysqld - Can't Connect To The Databases

Oct 5, 2010

all of the website content will be on a separate partition called "/websites". I've got SELinux enabled, and set the context on /websites and subdirectories to "public_content_t", so that httpd (Apache) can access this partition. This works. However we also have mysql databases stored on this partition as well, and we are getting errors like this in /var/log/auditd/audit.log: type=AVC msg=audit(1286249333.390:326): avc: denied { search } for pid=6167 comm="mysqld" name="/" dev=sda3 ino=2 scontext=system_u:system_r:mysqld_t:s0 tcontext=system_u:object_rublic_content_t:s0 tclass=dir

I've tried setting the context to "mysqld_db_t" on the MySQL database folders, but it appears that it cannot get to the partition at all, or anything outside of /var/lib/mysql/. How can we get mysqld to access databases on this partition? Right now there are symlinks from folders in /var/lib/mysql/ that go to each database on /websites partition. Setting SELinux to Permissive mode gets everything to work fine. Basically with SELinux in Enforcing mode, we're getting errors in the PHP applications that httpd can't connect to the databases.

View 4 Replies View Related

Debian Installation :: Unable To Connect To 'localhost:8000?

Mar 11, 2011

I have installed Xen on Debian. I am trying to create a virtual machine with "virtual machine manager" And it shows the following message: "Virtual machine manager Localhost (XEN) - not connected" And when i try to create a machine from command line i get the same error message:

root@debian:~# virt-install
ERROR unable to connect to 'localhost:8000': Connection refused
Traceback (most recent call last):
File "/usr/bin/virt-install", line 1033, in <module>
main()

[Code]...

View 1 Replies View Related

Fedora :: Connect To The Localhost At Port 6667 Using Irssi?

Aug 18, 2010

I want to use bitlbee-irssi to IM using gtalk.. I have installed bitlbee and edited /etc/bitlbee/bitlbee.conf with

RunMode = ForkDaemon
User = bitlbee
DaemonInterface = 127.0.0.1
DaemonPort = 6667

Now when I try to connect to the localhost at port 6667 using irssi, i get the following error message saying it cannot connect to localhost port 6667

13:48 -!- Irssi: Looking up localhost
13:48 -!- Irssi: Connecting to localhost [127.0.0.1] port 6667
13:48 -!- Irssi: Connection to localhost established
13:48 -!- Error: bind: Permission denied
13:48 -!- Error: listen: Bad file descriptor
13:48 -!- Irssi: Connection lost to localhost

A similar looking error comes up when I try to telnet localhost at 6667. Also, I get a selinux warning saying SELinux is preventing /usr/sbin/bitlbee "name_bind" access .How do I check if bitlbee is listening to port 6667? Btw, I am using fedora 13, I have selinux running in enforcing mode and the firewall running. I have set the port 6667 in the other ports tab of "system-config-firewall" (I am hoping that this will open that port).

View 5 Replies View Related

Ubuntu Servers :: Firefox Can't Connect To Localhost But Chromium Can

Jul 28, 2010

After spending what seems like an eternity trying to learn how to host a couple of webpages on my laptop for no better reason than to practice creating them without paying for a server. .for the time being, I kept getting the usual errors (stuff I have seen lots of tutorials on) and this time kept getting

"The connection was refused when attempting to contact localhost"

Just by random chance I happened to open up Chromium for one of my attempts and low and behold, I get the much awaited

Quote:

It works! This is the default web page for this server.The web server software is running but no content has been added, yet. I can even login to phpMyAdmin from Chromium. So what's going on with Firefox? Doesn't work in Seamonkey either. Using 10.04

View 7 Replies View Related

Software :: Can't Connect To Kismet Server 'localhost:2501?

Jul 10, 2010

Trying to run kismet but get errors on opensuse 11.2 64 bit- error message I get is. Could not connect to Kismet server 'localhost:2501' Question:What do i need to change in the settings, the following are the default ones.

[Code]...

View 13 Replies View Related

CentOS 5 Server :: Named Refuses Connect From Outside Localhost

Aug 23, 2009

I have installed bind from the repos and am trying to setup a caching name server. After copying the stock name-cachinging.conf to named.conf, I tweaked named.conf to reflect my LAN:

options {
listen-on port 53 { 127.0.0.1; 192.168.1.102; };
listen-on-v6 port 53 { ::1; };

[code]...

View 2 Replies View Related

Fedora Servers :: SELinux - Find A List Of All The Booleans For SELinux (10) Using Getsebool -a

Feb 23, 2009

You can find a list of all the booleans for SELinux (Fedora 10) using getsebool -a My question is, is there a reference online that describes each one. Most of obvious but it's one of those "I have to know because it's there situation).

View 5 Replies View Related

Fedora :: Evolution Refuses To Connect Localhost IMAP Server

Nov 21, 2010

I have a strange problem with evolution in Fedora 14. I run my own mail servers (Postfix and Dovecot) on localhost. This all worked great in F13 but now evolution refuses to connect to the localhost imap server. If I connect from my laptop (also F14) i.e. not from the localhost all works fine and great with evolution. I deleted all the config and started again to no avail. I also created a new user and logged in with this user and I still get the same so looks not to be user config issue.
evolution --debug=evo.debug.txt returns nothing useful.
Dovecot is listening on localhost as I can telnet to the imap port. Also other imap clients like Thunderbird work fine.

View 4 Replies View Related

Ubuntu One :: Invalid OpenID Transaction & Can't Connect To Localhost:37111?

Apr 1, 2010

Fixed. Follow the instructions below if you can't add computers through the FAQ method.bLogin to Ubuntu One on the website, open a terminal and type

Code:
u1sync --authorize

Press enter and a window should open redirecting you to one.ubuntu.com, if you are already logged in. Every time I try to login to U1, or add any computers to it, it gives me this error. I've tried removing cookies,history, etc. but it still doesn't work. Not even on a Windows machine using IE or Firefox.

Also, I can't add any computers to U1, as Firefox won't connect to http://localhost:37111[URL]... Tried resetting my hosts file, doing the things listed here, even in the Gnome proxy settings. Still no luck.

View 3 Replies View Related

Ubuntu Networking :: WxMaxima Can't Connect To Maxima - Adding 127.0.0.1 Localhost?

Jul 28, 2010

I am looking how to fix a problem like is in the subject. I searched internet and lots of people wrote that to fix this problem need to add a line in /etc/hosts file:127.0.0.1 localhostMoreover i added later also line:127.0.0.1 localhost.localdomain localhostbut it didn't help.

View 1 Replies View Related

General :: /localhost Recursion/cache/iptables - Allow Localhost Recursion But Deny Recursion To External Clients?

Mar 8, 2011

I am a newbie in Linux. I have Fedora 13 OS 32 bits. I am working with PowerDNs and Poweradmin. How can I configure this with PowerDNS?

1. Allow localhost recursion but deny recursion to external clients. Is there a tutorial for that?

2. Set up cache nameserver for localhost (like caching-nameserver in Bind).
Is there a tutorial for that?

3. My Master Server with PowerDNS is working well from localhost but external clients cannot access it.

I have iptables with these rules:

[Code]....

View 1 Replies View Related

OpenSUSE :: Virtual Machine Manager - Can't Connect To Localhost Because Libvirtd Is Not Running

Sep 16, 2010

It complains that it can't connect to localhost because probably libvirtd is not running. Well it is running, so please share your wisdom with me. Here is error message:

[Code]....

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved