Localhost !



Hi..I am new and beginner in programming. I try to display live data at localhost by http://localhost/alimtest/ but it show this error.
Server error!
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
If you think this is a server error, please contact the webmaster.
Error 500
localhost
Apache/2.4.7 (Win32) OpenSSL/1.0.1e PHP/5.5.6[/u][/b]
I put my alimtest folder that consist of php codes in htdocs.My localhost running well therefore in order to display the data, do I need to configure anything?
#Please do help me.

Related to : Localhost !
Change of localhost:8888 to localhost[SOLVED]
Databases
I have a working MAMP installation on my mac, with a few virtualhosts. With a default install you have to approach the webserver with http://localhost:8888/ However, I wanted to change that to http://localhost/. So getting rid of the 8888. Now, changing that is easy with MAMP's control panel. After changing it and restarting Apache I can approach localhost/ and get the correct webpage. However, all links coded as <a href="/somedir/">somelink</a> still point to localhost:888/somedir/. I tried finding some setting in my httpd.conf but couldn't find anything. Has anyone a clue were I should look? Thanks.[edit:] I found the solution. I had a base tag pointed to :8888 somewere ... so
[ubuntu] create and provide localhost mail addr to localhost app SERVER 8.10
Databases
I have made a LAMP server 8.10 and I have a forum app that asks for a forum admin email for contacting...how can i configure in command line a mail account , account hosted on another server...
And how should y reffer to it?...like localhost@"my LAMP server" , or like "the mail account name"@"domain".*** and the app will find it maybe alone...
PS:The first problem is the most important coz I may find the answers to the other ones by trying variants...
Thanks!
[ubuntu] Port Forward localhost:80 to localhost:8080
Databases
I have a VirtualBox machine set up and have forwarded the IIS install on the virtual machine's port 80 to my local port 8080. I need to forward the hosts 8080 to the host's port 80.
I have set up iptables to allow this from the external network, http://myexternalip/ works from another computer, but http://localhost/ from the host computer fails.
How can I get this to work?
VirtualBox:80 -> LocalHost:8080 -> LocalHost:80
Why can't I get a telnet localhost 25, ehlo localhost output of 250-AUTH?
Databases

How do I get a telnet localhost 25 output of 250-AUTH LOGIN? Similar to the questions asked here and here, I set up a Postfix-Dovecot mail server using Ubuntu 12.04LTS and can not get it to authenticate.

When smtp_tls_auth_only = no (as recommended here), my connection closes:

Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.

When smtp_tls_auth_only = yes, here's what I get:

Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mydomain.com ESMTP Postfix (Ubuntu)
ehlo localhost
250-mydomain.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN

Below is the output from their respective bash prompt commands (shown in bold):

**postconf -m**
/etc/postfix$ postconf -m
btree
cidr
environ
fail
hash
internal
memcache
nis
proxy
regexp
sdbm
sqlite
static
tcp
texthash
unix

**postconf -a**
cyrus
dovecot

**postconf -n** 
alias_database = hash:/etc/aliases
alias_maps = pgsql:/etc/postfix/pgsql-aliases.cf
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
home_mailbox = Maildir/
html_directory = /usr/share/doc/postfix
inet_interfaces = all
inet_protocols = ipv4
local_recipient_maps = proxy:unix:passwd.byname $alias_maps
mailbox_command =
mailbox_size_limit = 0
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
myhostname = mydomain.com
mynetworks = 127.0.0.0/8
myorigin = $myhostname
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix/readme
recipient_delimiter = +
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,
permit_sasl_authenticated, reject_invalid_helo_hostname,
reject_non_fqdn_helo_hostname, reject_unknown_helo_hostname,
check_helo_access hash:/etc/postfix/helo_access
smtpd_recipient_restrictions =
permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/ssl/certs/smtpd.crt
smtpd_tls_key_file = /etc/ssl/private/smtpd.key
smtpd_tls_protocols = !SSLv2, !SSLv3
smtpd_tls_security_level = may
smtpd_tls_session_cache_database =
btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
unknown_local_recipient_reject_code = 550


**postconf -M** 

smtp       inet  n       -       -       -       -       smtpd
smtpd      pass  -       -       -       -       -       smtpd
submission inet  n       -       -       -       -       smtpd -o
smtpd_tls_security_level=encrypt -o smtpd_sasl_auth_enable=yes -o
smtpd_sasl_type=dovecot -o
smtpd_sasl_path=/var/spool/postfix/private/auth
smtps      inet  n       -       -       -       -       smtpd -o
syslog_name=postfix/smtps -o smtpd_tls_wrappermode=yes -o
smtpd_recipient_restrictions=reject_unknown_recipient_domain,reject_non_fqdn_recipient,permit_sasl_authenticated,reject
pickup     fifo  n       -       -       60      1       pickup
cleanup    unix  n       -       -       -       0       cleanup
qmgr       fifo  n       -       n       300     1       qmgr
tlsmgr     unix  -       -       -       1000?   1       tlsmgr
rewrite    unix  -       -       -       -       -      
trivial-rewrite
bounce     unix  -       -       -       -       0       bounce
defer      unix  -       -       -       -       0       bounce
trace      unix  -       -       -       -       0       bounce
verify     unix  -       -       -       -       1       verify
flush      unix  n       -       -       1000?   0       flush
proxymap   unix  -       -       n       -       -       proxymap
proxywrite unix  -       -       n       -       1       proxymap
smtp       unix  -       -       -       -       -       smtp
relay      unix  -       -       -       -       -       smtp
showq      unix  n       -       -       -       -       showq
error      unix  -       -       -       -       -       error
retry      unix  -       -       -       -       -       error
discard    unix  -       -       -       -       -       discard
local      unix  -       n       n       -       -       local
virtual    unix  -       n       n       -       -       virtual
lmtp       unix  -       -       -       -       -       lmtp
anvil      unix  -       -       -       -       1       anvil
scache     unix  -       -       -       -       1       scache
maildrop   unix  -       n       n       -       -       pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
uucp       unix  -       n       n       -       -       pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail
($recipient)
ifmail     unix  -       n       n       -       -       pipe flags=F
user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp      unix  -       n       n       -       -       pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender
$recipient
scalemail-backend unix - n       n       -       2       pipe flags=R
user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop}
${user} ${extension}
mailman    unix  -       n       n       -       -       pipe flags=FR
user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop}
${user}

Persistent failures appear in the /var/log/mail.log output such as:

Nov 25 09:38:07 mail postfix/master[1131]: reload --
version 2.9.6, configuration /etc/postfix
Nov 25 09:42:00 mail postfix/master[1131]: reload -- version 2.9.6,
configuration /etc/postfix
Nov 25 09:42:11 mail postfix/smtpd[16030]: error: unsupported
dictionary type: pgsql
Nov 25 09:42:11 mail postfix/smtpd[16030]: connect from
localhost[127.0.0.1]
Nov 25 09:42:41 mail postfix/smtpd[16030]: lost connection after EHLO
from localhost[127.0.0.1]
Nov 25 09:42:41 mail postfix/smtpd[16030]: disconnect from
localhost[127.0.0.1]
Nov 25 09:43:45 mail postfix/master[1131]: reload -- version 2.9.6,
configuration /etc/postfix
Nov 25 09:43:51 mail postfix/smtpd[16067]: error: unsupported
dictionary type: pgsql
Nov 25 09:43:51 mail postfix/smtpd[16067]: connect from
localhost[127.0.0.1]
Nov 25 09:43:51 mail postfix/smtpd[16067]: warning: SASL: Connect to
private/auth failed: Connection refused
Nov 25 09:43:51 mail postfix/smtpd[16067]: fatal: no SASL
authentication mechanisms
Nov 25 09:43:52 mail postfix/master[1131]: warning: process
/usr/lib/postfix/smtpd pid 16067 exit status 1
Nov 25 09:43:52 mail postfix/master[1131]: warning:
/usr/lib/postfix/smtpd: bad command startup -- throttling
Nov 25 09:46:25 mail postfix/smtpd[16082]: error: unsupported
dictionary type: pgsql
Nov 25 09:46:25 mail postfix/smtpd[16082]: connect from
mail134-3.atl141.mandrillapp.com[198.2.134.3]
Nov 25 09:46:25 mail postfix/smtpd[16082]: warning: SASL: Connect to
private/auth failed: Connection refused
Nov 25 09:46:25 mail postfix/smtpd[16082]: fatal: no SASL
authentication mechanisms
Nov 25 09:46:26 mail postfix/master[1131]: warning: process
/usr/lib/postfix/smtpd pid 16082 exit status 1
Nov 25 09:46:26 mail postfix/master[1131]: warning:
/usr/lib/postfix/smtpd: bad command startup -- throttling
Nov 25 09:48:06 mail postfix/anvil[16084]: statistics: max connection
rate 1/60s for (smtp:198.2.134.3) at Nov 25 09:46:25
Nov 25 09:48:06 mail postfix/anvil[16084]: statistics: max connection
count 1 for (smtp:198.2.134.3) at Nov 25 09:46:25
Nov 25 09:48:06 mail postfix/anvil[16084]: statistics: max cache size
1 at Nov 25 09:46:25
Nov 25 09:59:40 mail postfix/smtpd[16167]: error: unsupported
dictionary type: pgsql
Nov 25 09:59:40 mail postfix/smtpd[16167]: connect from
localhost[127.0.0.1]
Nov 25 09:59:40 mail postfix/smtpd[16167]: warning: SASL: Connect to
private/auth failed: Connection refused
Nov 25 09:59:40 mail postfix/smtpd[16167]: fatal: no SASL
authentication mechanisms
Nov 25 09:59:41 mail postfix/master[1131]: warning: process
/usr/lib/postfix/smtpd pid 16167 exit status 1
Nov 25 09:59:41 mail postfix/master[1131]: warning:
/usr/lib/postfix/smtpd: bad command startup -- throttling
Nov 25 10:00:48 mail postfix/smtpd[16177]: error: unsupported
dictionary type: pgsql
Nov 25 10:00:48 mail postfix/smtpd[16177]: connect from
localhost[127.0.0.1]
Nov 25 10:01:26 mail postfix/smtpd[16181]: error: unsupported
dictionary type: pgsql
Nov 25 10:01:26 mail postfix/smtpd[16181]: connect from
mail134-3.atl141.mandrillapp.com[198.2.134.3]
Nov 25 10:01:26 mail postfix/smtpd[16181]: warning: SASL: Connect to
private/auth failed: Connection refused
Nov 25 10:01:26 mail postfix/smtpd[16181]: fatal: no SASL
authentication mechanisms
Nov 25 10:01:27 mail postfix/master[1131]: warning: process
/usr/lib/postfix/smtpd pid 16181 exit status 1
Nov 25 10:01:27 mail postfix/master[1131]: warning:
/usr/lib/postfix/smtpd: bad command startup -- throttling
Nov 25 10:03:07 mail postfix/anvil[16182]: statistics: max connection
rate 1/60s for (smtp:198.2.134.3) at Nov 25 10:01:26
Nov 25 10:03:07 mail postfix/anvil[16182]: statistics: max connection
count 1 for (smtp:198.2.134.3) at Nov 25 10:01:26
Nov 25 10:03:07 mail postfix/anvil[16182]: statistics: max cache size
1 at Nov 25 10:01:26
Nov 25 10:05:54 mail postfix/smtpd[16177]: timeout after EHLO from
localhost[127.0.0.1]
Nov 25 10:05:54 mail postfix/smtpd[16177]: disconnect from
localhost[127.0.0.1]
Nov 25 10:16:27 mail postfix/smtpd[16502]: error: unsupported
dictionary type: pgsql
Nov 25 10:16:27 mail postfix/smtpd[16502]: connect from
mail134-3.atl141.mandrillapp.com[198.2.134.3]
Nov 25 10:16:27 mail postfix/smtpd[16502]: warning: SASL: Connect to
private/auth failed: Connection refused
Nov 25 10:16:27 mail postfix/smtpd[16502]: fatal: no SASL
authentication mechanisms
Nov 25 10:16:28 mail postfix/master[1131]: warning: process
/usr/lib/postfix/smtpd pid 16502 exit status 1
Nov 25 10:16:28 mail postfix/master[1131]: warning:
/usr/lib/postfix/smtpd: bad command startup -- throttling
Nov 25 10:18:08 mail postfix/anvil[16504]: statistics: max connection
rate 1/60s for (smtp:198.2.134.3) at Nov 25 10:16:27
Nov 25 10:18:08 mail postfix/anvil[16504]: statistics: max connection
count 1 for (smtp:198.2.134.3) at Nov 25 10:16:27
Nov 25 10:18:08 mail postfix/anvil[16504]: statistics: max cache size
1 at Nov 25 10:16:27

Note that depending on how I set the alias_maps flag e.g. from the default hash:/etc/postix to the optional (see www.postfix.org/pgsql_table.5.html) alias_maps = pgsql:/etc/pgsql-aliases.cf, I get different output but still cannot get past some of the consistent failures related to private/auth or /var/spool/postfix/private/auth.


PHP: connecting to localhost through pg_connect — Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?
Databases

I have downloaded postgress.app as my localhost for postgresql. I can connect using java through jdbc, but have had problems connecting through php. When I run the pg_connect(host=localhost, user = xxx, password = xxx) I receive the error: Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?

I have researched this problem pretty thoroughly and tried all of the suggestions:

1) Uncomment and set listen_addresses = '*' in the postgresql.conf file

2) Add host all all "YOUR-IP-ADDRESS" md5 to the bottom of the pg_hba.conf

3) Set tcpip_socket = true in postgresql.conf file (Now been deprecated)

4) Delete the postmaster.pid file — psql: could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432?

There has been some discrepancy in exactly what to put in for "YOUR-IP-ADDRESS" but this article suggests using ifconfig to check your IP and then using 192.168.0.0/24.

Even if I change the IP address in the pg_hba.conf file, however, my error still asks if the IP (127.0.0.1) accepts connections.

A last note: I have tried the method of leaving host blank or setting the host to a socket path and using a unix domain socket, but that gave me a whole new set of errors which seemed like a bigger rabbit hole than solving the TCP/IP.

Any help is much appreciated!


"Starting Localhost" has encountered a prob .Server localhost failed to start
Databases

I am trying to start a Tomcat7 server bt it is encountering a problem. The following is the console:

16 Jan, 2015 7:24:50 PM
org.apache.tomcat.util.modeler.Registry loadDescriptors
SEVERE: Error loading
jar:file:/C:/Users/deven/Documents/Deep@l!/apache-tomcat-7.0.57/lib/catalina.jar!/org/apache/catalina/mbeans/mbeans-
   descriptors.xml
16 Jan, 2015 7:24:50 PM org.apache.tomcat.util.modeler.Registry
loadDescriptors
SEVERE: Error loading
jar:file:/C:/Users/deven/Documents/Deep@l!/apache-tomcat-7.0.57/lib/catalina.jar!/org/apache/catalina/authenticator/mbeans-descriptors.xml
16 Jan, 2015 7:24:50 PM org.apache.tomcat.util.modeler.Registry
loadDescriptors
SEVERE: Error loading
jar:file:/C:/Users/deven/Documents/Deep@l!/apache-tomcat-7.0.57/lib/catalina.jar!/org/apache/catalina/core/mbeans-descriptors.xml
16 Jan, 2015 7:24:50 PM org.apache.tomcat.util.modeler.Registry
loadDescriptors
SEVERE: Error loading
jar:file:/C:/Users/deven/Documents/Deep@l!/apache-tomcat-7.0.57/lib/catalina.jar!/org/apache/catalina/mbeans-descriptors.xml
16 Jan, 2015 7:24:50 PM org.apache.tomcat.util.modeler.Registry
loadDescriptors
SEVERE: Error loading
jar:file:/C:/Users/deven/Documents/Deep@l!/apache-tomcat-7.0.57/lib/catalina.jar!/org/apache/catalina/deploy/mbeans-descriptors.xml
16 Jan, 2015 7:24:50 PM org.apache.tomcat.util.modeler.Registry
loadDescriptors
SEVERE: Error loading
jar:file:/C:/Users/deven/Documents/Deep@l!/apache-tomcat-7.0.57/lib/catalina.jar!/org/apache/catalina/loader/mbeans-descriptors.xml
16 Jan, 2015 7:24:50 PM org.apache.tomcat.util.modeler.Registry
loadDescriptors
SEVERE: Error loading
jar:file:/C:/Users/deven/Documents/Deep@l!/apache-tomcat-7.0.57/lib/catalina.jar!/org/apache/catalina/realm/mbeans-descriptors.xml

and so on...

previously it was saying port 8080 already in use so I changed the port number to 8082 n than its showing failed to start server.



Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .