apache with rc.d, php, perl install problem

LiuRong 2000-08-24 11:04:00
Dear experts:
Firstly, I install redhat 6.2 with default options.And then I want to install the least version of php, so I should reinstall apache. As I uninstall apache, so I have to uninstall mod_perl and php3(all use rpm - e ...). Then I install the apache and php, it seems good. but when I ls the /etc/rc.d/init.d, I could locate the httpd file, so I couldn't autostart the httpd at start time. Does anybody can tell how to recover the /etc/rc.d/httpd?(somebody in this forum say it could do with DarkConf, but I could find it in my linux system, If it works, please tell me where to download ). Another question, then I want to install the mod_perl_xxx.src.rpm, I use the command rpm --rebuild
mod_perl_xxx.src.rpm. It seems good at beginning. but then it reports some errors like couldn't find the httpd.h file. Then I copy the .h file from xxx/apache_xxx/src/include to /usr/include. But it still couldn't work.
These questions are drive me mad, please give me a hand.
Thanks in advance.
Ron (Hello from China
...全文
173 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
LiuRong 2000-09-02
  • 打赏
  • 举报
回复
The final solution to this problem.
Add the following text to the file /etc/rc.d/init.d/httpd, Notice the 3rd line and 4th line is needed in order to let the chkconfig to admin.
#!/bin/sh
#
# chkconfig: 2345 85 30
# description: Starts and stops the http daemons # used to provide http network services.

#start/stop Apache Web Server
#
RETVAL=0
case "$1" in
'start')
/usr/local/apache/bin/apachectl start
RETVAL=$?
;;
'stop')
/usr/local/apache/bin/apachectl stop
RETVAL=$?
;;
'restart')
/usr/local/apache/bin/apachectl restart
RETVAL=$?
;;

*)
echo "Usage: $0 { start | stop }"
RETVAL=$?
;;
esac
exit $RETVAL


Then run command
chkconfig --level 2345 httpd on
chkconfg --add httpd
It will OK.
Thanks anybody to help me. After 3 days, I will give anybody talking here relatively score.
bb
Ron

U皮特U 2000-08-30
  • 打赏
  • 举报
回复
1. add following lines into your /etc/rc.d/rc.local file:
/usr/local/apache/bin/apachectl start
If you installed apache in another path, you can replace /usr/local/apache/bin to your apache's installed bin path.

2. Install mod_perl source by using command: rpm -ivh mod_perl_xxx.src.rpm .
It will install source into /usr/src/redhat/SOURCES/, cd this path and built it according the install document.
hotfire 2000-08-30
  • 打赏
  • 举报
回复
you can edit the /etc/rc.d/init.d/httpd, find the command 'httpd', add the path where you install apache.
another way, you can 'ln -s /apache path/bin/httpd /usr/sbin/httpd'. it doesn't need to edit /etc/rc.d/init.d/httpd.
当前课程中商城项目的实战源码是我发布在 GitHub 上的开源项目 newbee-mall (新蜂商城),目前已有 9900 多个 Star,本课程是一个 Spring Boot 技术栈的实战类课程,课程共分为 3 大部分,前面两个部分为基础环境准备和相关概念介绍,第三个部分是 Spring Boot 商城项目功能的讲解,让大家实际操作并实践上手一个大型的线上商城项目,并学习到一定的开发经验以及其中的开发技巧。商城项目所涉及的功能结构图整理如下: 作者寄语本课程录制于2019年,距今已有一段时间。期间,Spring Boot技术栈也有一些版本升级,比如Spring Boot 2.7.x发版、Spring Boot 3.x版本正式版本。对于这些情况,笔者会在本课程实战项目的开源仓库中创建不同的代码分支,保持实战项目的源码更新,保证读者朋友们不会学习过气的知识点。新蜂商城的优化和迭代工作不会停止,不仅仅是功能的优化,在技术栈上也会不断的增加,截止2023年,新蜂商城已经发布了 7 个重要的版本,版本记录及开发计划如下图所示。 课程特色 对新手开发者十分友好,无需复杂的操作步骤,仅需 2 秒就可以启动这个完整的商城项目最终的实战项目是一个企业级别的 Spring Boot 大型项目,对于各个阶段的 Java 开发者都是极佳的选择实践项目页面美观且实用,交互效果完美教程详细开发教程详细完整、文档资源齐全代码+讲解+演示网站全方位保证,向 Hello World 教程说拜拜技术栈新颖且知识点丰富,学习后可以提升大家对于知识的理解和掌握,可以进一步提升你的市场竞争力 课程预览 以下为商城项目的页面和功能展示,分别为:商城首页 1商城首页 2购物车订单结算订单列表支付页面后台管理系统登录页商品管理商品编辑

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧