m******e 发帖数: 2 | 1 XP下安装,DSL,动态IP,rounter相连一个LAN。在bin目录下键入apache命令和其它参数
运行正常。但localhost和127.0.0.1不出现任何东西,是怎么回事?
查logs里的error文件,都是notice只有一个warn:A request to send or receive data
was disallowed because the socket is not connected and (when sending on a
datagram socket using a sendto call) no address was supplied. :
setsockopt(SO_UPDATE_ACCEPT_CONTEXT) failed.
还有,是不是用apache就要disable LAN里的QoS?
十分感谢! |
|
p****j 发帖数: 6 | 2
谢谢!我知道local怎么访问,象你说的,还有localhost都可以,
我已初步设了一下httpd,但是,怎么知道自己的public IP and
private IP?因为另一台机器也是连着DSL(不是client/sever形式),
IP分配那里都是填的动态分配的。
谢谢! |
|
s******y 发帖数: 21 | 3 【 以下文字转载自 shopping 讨论区,原文如下 】
发信人: slidarmy (此贴已消毒), 信区: shopping
标 题: [转载] 急问apache server 的问题
发信站: The unknown SPACE (Thu May 29 01:19:50 2003), WWW转贴
【 以下文字转载自 Internet 讨论区,原文如下 】
发信人: slidarmy (此贴已消毒), 信区: Internet
标 题: 急问apache server 的问题
发信站: The unknown SPACE (Thu May 29 01:16:12 2003) WWW-POST
我自己的pc windxp 装上了apache, php,做了一个website,在localhost上run.
现在我ipconfig 找到的ip address xxx.xx.xx
我想理论上让另外一台电脑打 http://xxx.xx.xx/index 因该可以访问到我的website,
但是却不行。
我在apache config 里已经加了 servername xxx.xx. |
|
v**m 发帖数: 242 | 4 too many possibilities
what kind of error message did u get?
题
其他以前用LOCALHOST的.ASPX |
|
a****g 发帖数: 9 | 5 我是个绝对新手, 问题太蠢别笑我.
用dreamweaver create 了个 default.aspx 文件, 只有一个DataGrid.
copy 到local 的 wwwroot. 但当我用IE http://localhost/ 打开时,
它怎么把aspx当成txt文件打开了????
如果没有DataGrid, 一切正常.
我是哪里社的不对呢? |
|
s*******e 发帖数: 1269 | 6 不是默认的用户名字是 root?
我查了一下之有odbc@localhost 这个用户名字。
怎么回事?
多谢拉! |
|
s*******e 发帖数: 1269 | 7 login.php
login1.php
$db=mysql_connect("localhost","wanghaixin","4278883")or die( "We cannot
connect to databases");
mysql_select_db("example",$db);
$pass= $_POST['pass'];
echo "$pass";
?>
数据pass 怎么传不过来?
多谢指点。
嘿嘿 |
|
|
m*k 发帖数: 19 | 9 现在web site在我自己的机器上,用localhost很好。但外边的人如何访问?直接输入我
机器的IP地址吗?可是我在本地机输入自己的IP时,会跳出一个要求我输入username和ps
w的窗口,不知道是什么的PSW。
我是用DSL,动态IP(我上面输入的是WANIP),我也已经在zoneedit上申请了免费的zone
,也下载安装了DirectUpdate。但域名是我自己乱起的,也不知道行不行,目前是不work
,上面也说是要72小时才能live。因为这个网站我只想让别人测试一下,不是长期的,不
管什么方式都好,域名或IP,只要让别人能访问几天就行。怎么办?不胜感激! |
|
m******y 发帖数: 588 | 10 Hi, all
I wrote a dll with delphi using Windows API Logonuser and
NetUserChangePassword which is called to impersonate a user from ASP. It's
much like the example on
http://support.microsoft.com/default.aspx?scid=kb;EN-US;248187
I got it working all right on my localhost. I can logon and change password.
But when I put those asp pages on the web servers of our company and
registered dll, it was unable to work and give me the error "Logon failure:
unknown user name or bad password." Of course I g |
|
b*********e 发帖数: 11 | 11 can't access http://localhost
please help me,
BTW, I disabled xp firewall |
|
w*******w 发帖数: 18 | 12 我现在不建虚拟目录,就将helloworld.aspx储存在inetpub/wwwroot下,然后在ie中打ht
tp://localhost/helloworld.aspx,没有出错,但没有东西显示,这是为什么?哪里出错
了?谢谢。 |
|
|
s*u 发帖数: 84 | 14 我现在自己编了一个简单的网站,但只在我的LOCALHOST里.我以后
会慢慢发展它.
我想知道的是, 我如何能够把它搬到INTERNET上去,需要什么样的
具体步骤? |
|
t*****t 发帖数: 72 | 15 【 以下文字转载自 Programming 讨论区 】
发信人: tecplot (kaka), 信区: Programming
标 题: Re: cgi测试newbee问题
发信站: BBS 未名空间站 (Tue Aug 9 16:43:28 2005), 转信
o, my script worked after I put it in the public_html/cgi-bin
directory, and visit it through any browsers.
Still wondering if or not there are any ways that I can test it
by "localhost" or sth not bound to my website. //bow |
|
r****d 发帖数: 375 | 16 I am installing Apache in my linux box. The apache server (httpd) starts fine,
and I can see the start page without any problem in my linux box (using http://localhost or http://myipaddress). However, if I switch to a different machine in the same LAN, I got "The connection was refused ...'' error. But I can still use ping or ssh my linux box from this machine. Could some one help me out?
Thanks a bunch. |
|
i**p 发帖数: 902 | 17 HTTP 500 after runing "http//localhost/my.asp". |
|
b*******l 发帖数: 1737 | 18 Hello all,
I am new to PHP and MySQL programming, and I am trying to connect to MySQL
via my PHP script. My PHP scripts generally work. However, for the following
PHP code:
ini_set('display_errors', true);
error_reporting(E_ALL);
$mysqli = mysqli_connect("localhost", "xxx", "xxx", "test");
...................
?>
I get the following error message:
Fatal error: Call to undefined function mysqli_connect() in C:\Program Files
\Apache Group\Apache2\htdocs\simpleconnection.php on line 6
Can some |
|
j*****o 发帖数: 320 | 19 This is PHP5 only. Maybe your host supports PHP4 by default? If so, you
may need a htaccess file to enable PHP5.
Hello all,
I am new to PHP and MySQL programming, and I am trying to connect to MySQL
via my PHP script. My PHP scripts generally work. However, for the following
PHP code:
ini_set('display_errors', true);
error_reporting(E_ALL);
$mysqli = mysqli_connect("localhost", "xxx", "xxx", "test");
...................
?>
I get the following error message:
Fatal error: Call to undefined |
|
b*******l 发帖数: 1737 | 20 Thanks, easywebx. That's it. I was wondering why the default php.ini
commented out all these extensions.
The function is available now. However, I still cannot connect to the
database. Below is my code:
ini_set('display_errors', true);
error_reporting(E_ALL);
$mysqli = new mysqli("localhost", "john", "abc123", "test");
If (1 > 0) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
} else {
printf("Host information: %s\n", mysqli_get_host_info($mysqli));
mysqli |
|
e******x 发帖数: 925 | 21 试试: $mysqli = mysqli_connect("localhost", "john", "abc123", "test");
或者先用root用户试试。 |
|
|
z****e 发帖数: 3810 | 23 谢谢,用某一个的时候是不是需要关掉另外一个,localhost后面还要加上ports #对吧? |
|
l***u 发帖数: 73 | 24 我用winXP pro的local的机器用IIS创建了一些网页想让别的内部用户访问,可是总是没有办法在别的机器上访问到。可以ping。另外我的网页用localhost或者是内部的http的ip地址从自己的机器上都可以访问到。IIS的权限设置也将该目录设置成了可执行的。在网上google了,最后还是没能找到解决的办法,而且现在也不知道该从何处入手,请各位赐教。 |
|
f*********e 发帖数: 8453 | 25 正自学,在学自动访问网页部分WWW::Mechanize。
可是写了几句小程序却总出错:
#! /usr/bin/perl -w
use strict;
use constant URL => "http://localhost:8081";
use WWW::Mechanize;
my $browser = WWW::Mechanize->new();
$browser->get(URL);
if($browser->success) {
my $content = $browser->content;
print "Result: '$content'\n";
}
else {
print "failed";
}
我用的perl环境是从activeperl下的for windows xp v5.10.0.1003. 我自己机器
上有apache, 用的端口是8081.
Perl出错信息是:
HTTP::Request version 1.3 required--this is only version 1.28 at C:/Perl/ |
|
|
|
y*******r 发帖数: 2337 | 28 你的Integrated Security是true的。
在localhost上,那就是你的windows login.所以没问题。
上传后,就是ASP_NET了,所以有问题。
改成False,然后加username, password. |
|
s****y 发帖数: 983 | 29 不用,windows也可以,下载xmap安装上,mysql,apache,php就都有了。Joomla解压缩
(有index.php的那一层)到apache的文档根目录(./htdocs), 浏览器输入http://localhost,然后按页面说明安装就行了 |
|
w*****e 发帖数: 76 | 30 多谢各位大虾指点!
Server选了1&1
XAMPP装完了,貌似control panel是工作的,但为啥我在浏览器里输入“http://localhost”显示“It Works!”?
我是不是没装好?
鼓捣一晚上也没把joomla装上...撞墙... |
|
u**y 发帖数: 202 | 31 上面那位大俠說的是在你自己的local computer上面這麽設置,模擬一個server環境,
然後用http://localhost訪問測試在你自己電腦上的網站。如果你購買的是1and1的linux hosting,不需要安裝xampp。把joomla的文件上傳導server的web目錄(不確定具體名字是什麽)下面,然後要麽用1and1送你的域名,或者用那個public的url,訪問你的空間,joolma自帶的安裝文件會引導你一步步地安裝(事先在1and1裏面新建一個數據庫)。 |
|
|
|
S****e 发帖数: 10596 | 34 高人给救个急
用一台 win7 64系统装本机服务器
先用 xampp 一切都好 ,自己的网页也好
转天 就不能用了,浏览器localhost xampp界面能上
但是 phpmyadmin就不行 ,#2002 - The server is not responding (or the local
MySQL server's socket is
not correctly configured)
无论是浏览器还是 xampp界面
自己的本机网站也上不去,说off line
卸了 重装也不好
无语了换WAMP
装上一切都好,自己网页也可
转天,也就是今天,又不能用了,现象和上面的一样
简直崩溃了
高人给指点一下
谢谢 |
|
|
c*********n 发帖数: 79 | 36 I just finished my site last week and it is running locally on my computer.
I did successfully have the site gone live, however, all the images are not
displaying and they are on my server in the wp-content/uploads folder. My WP
media folder is empty tho, but it is set to wp-content/uploads in dashboard
. I also have the search and replace plugin installed, and used it to
replaced all localhost to the live site in my database.
Somebody told me that this may be may be related to the custom Portfo... 阅读全帖 |
|
f*******w 发帖数: 407 | 37 关于用自家电脑做网站服务器的一个技术问题
我已经安装好了WAMP,在LOCALHOST上能查看网页以及和数据库交流了。向网络服务商
买了static IP。请问下一步我是不是:
1.设置自家电脑使用这个static IP(如何设置啊?)。
2.在商家如GODADDY买domain并且把domain assign给我所有的static IP。
就OK 了?
菜鸟上路,多多指教。 |
|
f*******w 发帖数: 407 | 38 关于用自家电脑做网站服务器的一个技术问题
我已经安装好了WAMP,在LOCALHOST上能查看网页以及和数据库交流了。向网络服务商
买了static IP。请问下一步我是不是:
1.设置自家电脑使用这个static IP(如何设置啊?)。
2.在商家如GODADDY买domain并且把domain assign给我所有的static IP。
就OK 了?
菜鸟上路,多多指教。 |
|
c********l 发帖数: 8138 | 39 发信人: coupondeal (Coupon Deal), 信区: Programming
标 题: 安装web.py小记
发信站: BBS 未名空间站 (Mon Mar 25 17:38:56 2013, 美东)
周末的时候在家里闲得无聊,于是想体验一把Python的web server。本来以为,无非是
手动地实现一个类似于WAMP的功能,应该花不了太长时间。但最后的事实是:各种问题
不断,插曲实在太多,花费了偶大半天的时间,于是把安装经验分享在网上,希望后来
人少走弯路。
web.py在安装之前,需要有几个dependency: web server, Python, CGI/WSGI module,
Database, Database driver/adaptor.
第一步:web server
web.py的官方页面上说既可以用LightTPD也可以用Apache,考虑到Apache更普遍,平时
也经常用Apache,于是决定使用Apache。在官网上找到Apache 2.4 for windows x64下
载,安装,设端口为4567,最后start。发现:在服务器本... 阅读全帖 |
|
i****1 发帖数: 445 | 40 自己在windows8上试了apache tomcat这个东东,直接解压运行,没有安装成系统服务
。譬如我设置的端口号是9999
可是只能在自己电脑上访问http://localhost:9999。别的电脑访问不了。
google了一下,发现是因为防火墙的问题,说要在防火墙里设置一下:
1 Right click "Inbound Rules" on the left pane
2 Choose "New Rule"
3 Choose "Port" “TCP”
4 Under "Specific ports" enter your port number (9999)
5 Continue with "Next" until the end of the wizard, naming the rule when
asked.
这样还是不行。
我目前发现唯一的方法是关闭防火墙。这样太不行,系统不安全。
求问,有人遇到过相同问题吗? |
|
k*******p 发帖数: 8821 | 41 问一个问题,包子奉上給有用的解决办法。
有一段小代码,是在一个表Customer_table查询Customer_ID.如果这个id 存在则输出"
good",否则输出"bad".'gooduser'这个id是表中存在的,执行代码的结果是输出“good
"。假如我把$uid换成一个不存在的id,比如$uid='bdxhsbfhbfhc';结果还是输出"good"
.我如果新建一个php文件,初始一个不存在的id, $uid='bdxhsbfhbfhc';输出“bad".
我如果把$uid换成一个存在的id,比如$uid='gooduser',结果还是“bad".也就是第一
次的结果永远存下来了。这是为什么呢?
$mysqli = mysqli_connect("localhost", "root", "abcde", "table1");
if (mysqli_connect_errno()) {
printf("Connect failed: %sn", mysqli_connect_error());
exit();
}
else {
... 阅读全帖 |
|
n*****t 发帖数: 22014 | 42
// ajax.php
// http://myhost.com/ajax.php?admin=user&pass=passwd&query=select * from table
function pre_encode(&$item, $key) {
if (is_string ( $item ))
$item = mb_encode_numericentity ( $item, array ( 0x80, 0xffff, 0,
0xffff ), 'UTF-8' );
}
$user = $_REQUEST ['user'];
$pass = $_REQUEST ['pass'];
if ($user != 'admin' || $pass != 'passwd')
die ( "incorrect passwd" );
$ret = mysql_connect ( "localhost", "root", "passwd" ) && mysql_select_db (
"database" ) && mysql_set_charset ... 阅读全帖 |
|
d******8 发帖数: 2191 | 43 第一次学习JavaScript WebSocket做了个小实验,用它去连接本地C# Server,结果
server上显示连接成功了,但JS却一直处于正在连接状态。下面的代码解释部分代表输
出(未输出)的状态。如果在Javascript后加上cnt.send('abc'),错误信息为:
InvalidStateError: Failed to execute 'send' on 'WebSocket': Still in
CONNECTING state.。等很久都没有timeout error,说明Javascript一直在连接Server
。但是Server已经显示连接成功了呀。求牛人指点!
Javascript:
var cnt=new WebSocket("ws://localhost:8001");
cnt.onopen=function(){console.log('connection setup!');};// not shown
cnt.onmessage=function(msg){console.log(msg);}; // not shown
cnt.onerr... 阅读全帖 |
|
c********1 发帖数: 421 | 44 【 以下文字转载自 Programming 讨论区 】
发信人: coupondea1 (coupon and deal), 信区: Programming
标 题: 吐槽 MySQL
发信站: BBS 未名空间站 (Tue Aug 26 18:25:32 2014, 美东)
MySQL的问题实在太多。
1. 一台机器上的数据库,里面有中文信息,死活无法成功导入到另一台机器上
的mysql,总显示乱码。修改了所有的设置都无用,不是这种乱码就是另外一种乱码。
2,另外一个DB,用phpMyAdmin生成导出.sql文件,在导入另一台机器上时
报错there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT
or ON UPDATE clause
仔细检查.sql文件,发现只有一列是用的ON UPDATE CURRENT_TIMESTAMP
其它的列连 on UPDATE / DEFAULT 语句都没有
后来才知道,该表中有2列均为timestamp,其中之一设了ON UPDATE
CURRENT_TIM... 阅读全帖 |
|
c******n 发帖数: 4965 | 45 【 以下文字转载自 Java 讨论区 】
发信人: creation (努力自由泳50m/45sec !), 信区: Java
标 题: Re: very archaic issue :
发信站: BBS 未名空间站 (Fri Apr 29 11:58:14 2011, 美东)
one colleague replied
using ssh -t ....
would help
here is my reply to him (his approach partially works, but only when you
terminate ssh client by ctrl-C, which is SIGINT, it does not work
when the ssh is run by a daemon like hudson, and terminated with -15 )
######################################
This is a cleaner way than the hack I came up with: I foun... 阅读全帖 |
|
a****s 发帖数: 47 | 46 Haha, the same problem as me.
Strange thing is that even the localhost and root is added to
the user table, when I run something need to create a database,
it still gives me permission error, so I have to
put "%","root" into user table, and it works. |
|
a****s 发帖数: 47 | 47 hi, I started the mysql server, and type bin/mysqlshow,
it gives me following result:
+-----------+
| Databases |
+-----------+
| mysql |
| test |
+-----------+
So far so good.
When I type bin/mysqlshow mysql,
it gives me error:
bin/mysqlshow: Access denied for user: '@localhost' to database 'mysql'
What is wrong? |
|
z*h 发帖数: 22 | 48 hi, guys,
I got to configuration problem with mysql. for test, I set a user as test
as well as the password. If I do it like this: mysql -u test -p test, it
does work. however, when I try to connect the db in java code through jdbc,
an authorization error is reported.
what I did is:
jdbc:mysql://localhost/test?user=test&password=test
all other settings are right, including port blah, blah.
any suggestions? help please. |
|
bz 发帖数: 1770 | 49 I installed MySQL and used root to grant priv to a normal user test1.
mysql> grant CREATE,UPDATE,SELECT,ALTER on mytest_db.* to test1@localhost;
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
I did not grant DROP to test1, but test1 still can delete tables in
mytest_db database. Any ideas? how to make normal user can only creat table
and can not delete table, like ftp uploading account in ftp servers?
Thanks!
I am pretty new to dba stuff. |
|
l**w 发帖数: 6 | 50 I just installed SQL Server7 in my computer and tried to set
the localhost as the server. But connection is alreays
failed. How can I configure my computer or where can I find
some article about this? Thank you! |
|