r****y 发帖数: 26819 | 1 我在win32平台下,用apache2.0.40和php最新的,可能是4。2。2,按照一般网站上说
的办法:
apache成功建立以后,将php.ini-dist改名php.ini,然后将php.ini和php4ts.dll考
到win2000系统目录下的system和system32下,最后修改apache的httpd.conf文件:
添加:
LoadModule php4_module c:/pgp/sapi/php4apache.dll
AddType application/x-httpd-php .php4
ScriptAlias /php4/ "c:/php"
Action application/x-httpd-php4 "/php4/php.exe"
AddType application/x-httpd-php4 .php
重起apache,但是报错失败。第一句LoadModule就有问题。
在网上查了一些,都说Apache2和php4整合有一些问题。
请教有经验的大侠。
谢谢! |
|
M*********t 发帖数: 257 | 2 Any of you guys familiar with mod_rewrite in Apache2 ?
I created a .htaccess file under my home dir /home/john/public_html/
and try to redirect all incoming URL to http://localhost/~john/index.php?page=xxx
but when I try to access a link like http://localhost/~john/register
I got a 404 page not found error
Server says the following URL is not found
/home/john/public_html/index.php
It seems Apache map the requested URL to physical file location
but the file is actually there in that path
and if ... 阅读全帖 |
|
h****g 发帖数: 772 | 3 http://www.tutorialspoint.com/python/python_cgi_programming.htm 'filename'
系统是debian squeeze, python 2.6.6, apache2
错误信息如下
Phase: 'PythonHandler'
Handler: 'mod_python.publisher'
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1537,
in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)
File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1229,
in _process_target
result = _execut... 阅读全帖 |
|
s*******d 发帖数: 4135 | 4 下面是每个进程的内存使用量:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2065 asterisk 20 0 35968 12m 2748 S 0.0 10.4 0:35.80 apache2
2003 asterisk 20 0 37276 12m 2580 S 0.0 10.4 0:21.92 apache2
2398 asterisk 20 0 35972 12m 2768 R 8.6 10.0 0:36.16 apache2
2004 asterisk 20 0 35968 12m 2640 S 0.0 9.9 0:04.26 apache2
2403 asterisk 20 0 35964 9044 1164 S 0.0 7.3 0:02.71 apache2
2177 asterisk 20 0 36232 8840 1160 S 0.0 7.1 0:02.18 apache2
2002 ast... 阅读全帖 |
|
d*******r 发帖数: 3299 | 5 root@myPC:~# dpkg -L apache2
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/apache2
/usr/share/doc/apache2/changelog.Debian.gz
/usr/share/doc/apache2/NEWS.Debian.gz
/usr/share/doc/apache2/copyright
/usr/share/bug
/usr/share/bug/apache2
/usr/share/bug/apache2/control
/usr/share/doc/apache2/README.Debian.gz
/usr/share/bug/apache2/script
root@myPC:~#
root@myPC:~#
root@myPC:~#
貌似信息很少啊,比如会加入文件/etc/init.d/apache2,没显示 |
|
l*******G 发帖数: 1191 | 6 found ajaxterm a good thing if you just want to have a terminal through a webpage, i.e. you'll be able to use ssh to your server from anywhere with internet (such as public library, even if they block 22, 443, etc ports and only allow 80)
Complete Guide: http://mewbies.com/how_to_install_ajaxterm_tutorial.htm
My simple guide:
1. Install:
# Change SSH server configuration to make sure PasswordAuthentication is yes
sudo sed -i s:PasswordAuthentication.*:PasswordAuthentication yes: /etc/ssh/
sshd_... 阅读全帖 |
|
l*******G 发帖数: 1191 | 7 推荐ajaxterm:
Found ajaxterm a good thing if you just want to have a terminal through a
webpage, i.e. you'll be able to use ssh to your server from anywhere with
internet (such as public library, even if they block 22, 443, etc ports and
only allow 80)
Complete Guide:
http://mewbies.com/how_to_install_ajaxterm_tutorial.htm
My simpler guide (ubuntu)
1. Install:
# Change SSH server configuration to make sure PasswordAuthentication is yes
sudo sed -i s:PasswordAuthentication.*:PasswordAuthentication... 阅读全帖 |
|
t*****t 发帖数: 72 | 8 【 以下文字转载自 Linux 讨论区 】
发信人: tecplot (_____), 信区: Linux
标 题: apache问题请教
发信站: BBS 未名空间站 (Tue Aug 23 14:42:09 2005), 转信
我原来的计算机上系统自带的Apache在下面这个目录:
/usr/sbin, 开的服务进程叫 httpd-perl
后来我自己又安装了Apache2在 /usr/local/apache2
所有的设置文件都在这个目录底下。我可以通过stop
httpd-perl, 再用apachectl start启动新的apache2。
我现在希望Linux启动的时候直接运行我自己安装的apache2
而不是系统原来的那个,请教如何设置?多谢
我的系统是Mandrake 10.0..... |
|
b******r 发帖数: 1137 | 9 I tried OpenMediaVault.
1. OMV 4.0 only works with Debian Squeeze, not Wheezy.
2. I cannot get the transmission plugin installed. just cannot find it in
the plugin list.
3. I am getting sustainable 10MB transferred speed over Gigabit line.
4. Someone has an installation script of SABnzbd and some other script on
OMV. Pretty handy. SABnzbd runs pretty well. It takes full CPU resource but
not much memory. 256M ram is more than enough.
5. I tested Newznab on a dockstar before. If you don't try to i... 阅读全帖 |
|
r*t 发帖数: 34 | 10 One station in our lab is loaded with solaris 10, and with apache2 running.
I was told that it was restarted and try to automatically upgrade some packa
ges, unfortunately, there is a power off during the reboot. When it came bac
k, we found that the apache2 no longer work (all the webpage no longer reach
able). Here is the info:
As root,
# svcs |grep -i apache
legacy_run 23:22:05 lrc:/etc/rc3_d/S50apache
online 23:20:42 svc:/network/http:apache2
I guess I should kill this legacy ser |
|
m****k 发帖数: 22 | 11 当然不会,现在跑的可稳定那
apache2就是apache2 |
|
c********l 发帖数: 8138 | 12 发信人: 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。发现:在服务器本... 阅读全帖 |
|
c********1 发帖数: 421 | 13 About LAMP
LAMP stack is a group of open source software used to get web servers up and
running. The acronym stands for Linux, Apache, MySQL, and PHP. Since the
virtual private server is already running Debian, the linux part is taken
care of. Here is how to install the rest.
Set Up
Before running through the steps of this tutorial, make sure that all of
your repositories are up to date:
apt-get update
apt-get upgrade
apt-get install apache2
apt-get install mysql-server
mysql_secure_installation... 阅读全帖 |
|
c********1 发帖数: 421 | 14 version of PHP 5.5 on Debian Wheezy 7.0/7.1/7.2 (and how to fix the GPG key
error)
BY CHRIS · SEPTEMBER 1, 2013
Please note: This works fine. But this package will also upgrade your apache
to version 2.4 which has different config files than apache 2.2 and even
deletes stuff, like /etc/apache2/sites-available/default when upgrading.
This may result in a loss of your apache settings (vhost, mod_rewrite stuff
etc.). Be aware of that ! This shit cost me a full weekend. :(
This affects only upgrades... 阅读全帖 |
|
c********1 发帖数: 421 | 15 http://www.dev-metal.com/setup-latest-version-php-5-5-debian-wh
How to install/setup latest version of PHP 5.5 on Debian Wheezy 7.0/7.1/7.2
(and how to fix the GPG key error)
BY CHRIS · SEPTEMBER 1, 2013
Please note: This works fine. But this package will also upgrade your apache
to version 2.4 which has different config files than apache 2.2 and even
deletes stuff, like /etc/apache2/sites-available/default when upgrading.
This may result in a loss of your apache settings (vhost, mod_rewrite stu... 阅读全帖 |
|
c********g 发帖数: 1173 | 16 在家setup一个test server。设置全是从我的production上抄下来的。不知怎么就总是
出这个403 error。server ip is 192.168.2.5. On my desktop I change my host
file to pointing www.clingmarks.com to 192.168.2.5.
下面是设置。那位给看看吧。
ls -l /var/www/
total 12
drwxr-xr-x 2 root root 4096 2011-08-04 11:26 clingmarks.com
-rwxr-xr-x 1 root root 177 2011-07-25 16:10 index.html
==============================
cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 americano
192.168.2.5 americano.clingmarks.com www.clingmarks.com
# The following line... 阅读全帖 |
|
o******1 发帖数: 1046 | 17 多谢指点!
我试着在那个shell script中echo几个apache2的环境变量,比如$APACHE_RUN_DIR和$
APACHE_RUN_GROUP,还是没有打印出来。
也许httpd的系统用户环境变量我没有找对。我是在/etc/apache2/envvars中找的。如
果不对,应该在哪个文件中?
谢谢啦! |
|
c********l 发帖数: 8138 | 18 周末的时候在家里闲得无聊,于是想体验一把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。发现:在服务器本地访问http://localhost:4567/时,一切OK。但是如果用远程机器上的浏览器访问http://my.server.com:4567/时,浏览器会长时间显示空白页面,最后超时报错。一开始怀疑可能是路由器没有... 阅读全帖 |
|
T********r 发帖数: 6210 | 19 open a command prompt window
net stop apache or
net stop apache2
net start apache or
net start apache2 |
|
发帖数: 1 | 20 公司打算招聘1-2名码工,具体要求请见:
https://www.indeed.com/viewjob?t= software+developer&jk=ec0e72fa0ff359e6&_ga
=2.200733614.1410608034.1525096859
-1391852118.1523048666
有意者, 可以在indeed提交简历, 本人是Hiring Manager, 谢谢!
Software Developer
Northern Plains Servicing - Woodcliff Lake, NJ 07677
$70,000 - $100,000 a year
A fast-growing finance company is looking for a mid-level software developer
to join our team of developers building the next-generation of consumer
lending platform. This is a fantastic opportunity to e... 阅读全帖 |
|
|
s****a 发帖数: 6521 | 22 【 以下文字转载自 BuildingWeb 讨论区 】
发信人: shorea (未注册用户), 信区: BuildingWeb
标 题: 问个apache在win7下的初级问题
发信站: BBS 未名空间站 (Thu Jan 19 11:51:29 2012, 美东)
apache2.2设置好了,里面放了一个index.php文件
但是在本机上输入ip连接主页,死活就只出现默认的“it works!”,没有出现php的内
容;
只有在地址后面加上/index.php,这样才出现php的效果;
而用其他电脑远程连接,也是只输入ip地址,却可以出现php返回的内容。
这是为什么呢? |
|
m****k 发帖数: 22 | 23 那台机器重新装了apache2.0.43
web可以访问了。。。。
不过。。。。。
兄弟们的帐号都没有了~~
泪水滔天
qql别砍我
不过你只要重新注册一下
其他的就都回来了,包括你的签名档,
经验数。。。。。。
sorry
http://transpub1.cee.usu.edu
重新设置了版面,院系全部调整东大的了。 |
|
j**h 发帖数: 173 | 24 可能需要在Query目录里加上retrieveDiskConfiguration使得访问https://www.mac.com/
WebObjects/Info.woa/wa/Query/retrieveDiskConfiguration
时得到:
{
payload = {iDiskQuotaInBytes = 1048576000; iDiskUsedBytes = 39096640; };
statusCode = success;
}
附:可以参考:
http://www.drijf.net/dototto/wwwmac.html
我现在可以从Finder里面直接连接到iDisk,但是不能用备份软件。我用的是Apache2.04
要
个
don't |
|
a***y 发帖数: 19743 | 25 v4
静态地址是怎么回事?
我发现设置apache2的webdav也很麻烦啊,还要去专门设置怎么共享哪个文件夹。
而且接个硬盘上去是HFS格式的,貌似不自动mount。怎么spin down呢
这个真是需要折腾啊。
如果这么麻烦就干脆还是恢复原来的firmware算了,虽然pogoplug的app不是很好,但
是至少文件还是基本上可以浏览的,只是iPad不方便sync |
|
m*****u 发帖数: 2 | 26 本人现在把电脑设置成服务器。安装了apache2.0.(windows环境下)。想把专业的c++
toolbox 放在网上。这样可以trial 或者test 这些程序。不知道如何在cgi下设置及编译
,调用那些c++程序。需要安装那些c++编译器?如果有相关的source地址,请大侠指
点。本人纯属新手,请大侠赐教。多谢多谢。bow//. |
|
|
r****y 发帖数: 26819 | 28 So what? Many people ask this question under linux environment.
Have you tried? What is your httpd.conf and php.ini,and versions? |
|
r****y 发帖数: 26819 | 29 Setting up Apache 2 with PHP
by J Wynia
Update - 8/14/02 - This article was written before several updates to both Apache and PHP. It has not been updated to reflect these changes.
While PHPTriad is now a dead project, I have managed to get the Apache2.0/PHP4.2 combination up and running. I thought I'd do a short writeup on it. Please remember that one of the reasons I shut PHPTriad down was not wanting the flood of support
emails. If this doesn't work for you, the Apache 1.3.x series works just |
|
r****y 发帖数: 26819 | 30 This was a hard and old problem troubled many people on google.
Here's what I collected and summary from lots of articles on internet:
I tried and got it passed for APACHE 2.0.42 and PHP4.3.0-DEV in win2kpro.
Here I make a file here to backup my memory.
First go to snaps.php.net and get a newest version of php for win32.
Then, install both of them, for php, only extract to a dir is enough.
Then, copy all DLL's in php4/dlls to windows/system32.
Then, copy php.ini_dist to php.ini, copy it with php |
|
l********r 发帖数: 140 | 31 I install Apache 2 on Win2K, the install is OK.
Run it up and the default local host can be accessed.
Now, I want to protect a folder with a user name and password. After
I make all the changes, the GUI service monitor just tell me can not start.
Anyone has any idea? Thanks.
I modify:
1) change:
# DocumentRoot "D:/Program Files/Apache Group/Apache2/htdocs"
DocumentRoot "D:/Http_Root"
2) add:
AllowOverride None
Options None
|
|
r*****r 发帖数: 397 | 32 【 以下文字转载自 Linux 讨论区,原文如下 】
发信人: ruisher (aa), 信区: Linux
标 题: start apache server , httpd? apachectl?
发信站: Unknown Space - 未名空间 (Wed Sep 22 23:42:02 2004) WWW-POST
Kind of confuse.There are two httpd.conf file,
one is in /etc/httpd/conf/httpd.conf
one is in /usr/loca/apache2/conf/httpd.conf
which one should I configure, or both?
When I try to start the apache server, what's the difference between
apachectl start
httpd start?
Looks when I start with httpd, it fails and told me can't bind to the a |
|
r*****r 发帖数: 397 | 33 Hi, you are right.
I checked
$ /usr/local/apache2/bin/httpd -v
Server version: Apache/2.0.50
Server built: Sep 7 2004 23:50:34
$ /usr/sbin/httpd -v
Server version: Apache/2.0.40
Server built: Sep 4 2002 17:20:34
Is there any trouble?How can I uninstall one of them?How can I fix the
problem?
Thanks very much.
address, |
|
r*****r 发帖数: 397 | 34 When I downloaded the tar file and I installed from source, it automaically
goes to /usr/local/apache2 directory.
The older version goes to /etc/httpd, I guess somebody else installed it in
the lab. It's build from rpm, if I rm the rpm, is there any trouble?
Or maybe better to remove my own version, I just worried i installed from
source, may not easy to uninstall. |
|
c***c 发帖数: 21374 | 35 确认你修改的httpd.conf就是你的apache所用的那个
很多linux的版本默认已经安装了一个apache /etc/httpd
如果你自己再装一个(一般/usr/local/apache2),那么要修改的httpd.conf是前者而不
是后者 |
|
g******g 发帖数: 5 | 36 I want my http server do the following things:
each time I type the following in my web browser
http://my.site/~myname
it will open:
http://my.site/~myname/index.php
the file index.php is under "/home/myname/public_html"
in httpd.conf(or apache2.conf), I did: |
|
q**1 发帖数: 193 | 37 your code should be working well as long as you issued an
absolute physical path to '$path'. under my apache2/php5/ubuntu
box, it can even grab files under /etc and post them to the web...
but WinXP might be different, duno, hehe.
state
f |
|
q**1 发帖数: 193 | 38
以后家里用及只能用动态 IP 了,虽然机子整天开着根静态的
也差不太多。。:-)
这个怎么操作,关键是能不能用自己安装的软件和系统,
比如我现在要用 Apache2 + mod_perl2 还有一些自己安装的
Perl modules。外面好像很少有能提供这样服务的吧。//bow |
|
d*****l 发帖数: 8441 | 39 不知道Apache2下,怎么在.HTML文件中嵌入PHP script. Windows OS
谢谢! |
|
b*******l 发帖数: 1737 | 40 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 |
|
o***s 发帖数: 31 | 41 Check /var/log/apache2(httpd)/error.log file and let us know what it says. |
|
l******g 发帖数: 11 | 42 各位同学,我的网站 Ubuntu/Apache2 要开一个mobile界面。我怎么样
让mobile browser重定向到我的.mobi域名去? 我写了一个跳转
index.xhtml。好像没有什么用? 是不是还要配置.htaccess? 大家谁
的网站支持mobile browser的,告诉我一下? 谢谢! |
|
i*******3 发帖数: 129 | 43 1)现在促销$4.95 with unlimited space/bandwidth,那位还知道有什么coupon么?
2) 现在要不要dedeciated IP? 2.95% 似乎有点贵,现在不要,以后还能加么?
3)似乎选择了apache2.0 就不能选择ssh access了, 为什么??
还是很喜欢ssh 直接操作的。。 |
|
c****1 发帖数: 302 | 44 已有域名,想找一个好的web hosting公司,请赐教,多谢~~~
(1)能够很好支持 Apache2 + Mysql(5.1以上) + php5.
(2)对php5的要求很高,要支持很多设定(包括ImageMagick,mbstring,gd,...)
(3)用户操作简单,方便;可把本地(家里的Linux)上的php code + mysql tables +
数据 等等快速upload到webhosting指定的网站上后,1-2个小时内,即能看到结果(看
到运行php+mysql的结果)。
(4)email等的设定简单,方便。
(5)...
(6)...
还需要注意什么?请经验丰富的朋友赐教
code11 |
|
s****a 发帖数: 6521 | 45 apache2.2设置好了,里面放了一个index.php文件
但是在本机上输入ip连接主页,死活就只出现默认的“it works!”,没有出现php的内
容;
只有在地址后面加上/index.php,这样才出现php的效果;
而用其他电脑远程连接,也是只输入ip地址,却可以出现php返回的内容。
这是为什么呢? |
|
d******8 发帖数: 2191 | 46 谢谢!gae用自己的域名方便不?我的网站是用php做的,gae的php还处于实验阶段。。
。ec2安装apache2之后可以访问了,试了下,真心满意。 |
|
g****z 发帖数: 1135 | 47 你可能没设置对吧?
For Ubuntu, edit /etc/apache2/sites-enabled/222-example.conf. VirtualHost
setting is something like this:
# assume domain: example.com
ServerName www.example.com
ServerAlias *.example.com
...
DocumentRoot /var/www/wordpress
Options ...
...
试试看。 |
|
m******n 发帖数: 1691 | 48 mac 10.8.2, apache2, php
小文件可以上传,大文件不行(>=8 MB)
格式都是jpg
最好能把服务器本地的目录直接加进来,否则一张一张传得累死。
生成的s文件和m文件最好放到别的目录下去。跟原文件放在一起不好版本管理。
而且只能加图不能删图?
网站:
http://jesseyuan.com/~shuaiyuan/index.php
extension |
|
p******t 发帖数: 156 | 49 其实神座的CPU足够强劲
apache2 : Apache HTTP Server
aria2 : High speed download utility
asterisk : the Asterisk Open Source PBX
btsync : BitTorrent Sync in daemon mode
cups : Common UNIX Printing System
dnsmasq : A small caching DNS proxy and DHCP/TFTP server
forked-daapd : forked-daapd is an iTunes-compatible media server
git : fast, scalable, distributed revision control system
mt-daapd : mt-daapd, a.k.a. Firefly Media Server
hd-idle : spin down idle hard disks
minidlna : DLNA/UPnP-AV media server
mysql... 阅读全帖 |
|
w*x 发帖数: 3456 | 50 我怎么觉得apache2+php好卡,也就是lighttpd速度还能接受 |
|