在Solaris 10 下安装PHP+Mysql+Apache的问题

efanlx 2006-03-30 12:36:24
我装了在Solaris 10 ,选择的是完全安装,如何设置apache、mysql、php的服务呢?要重新安装这些软件吗?好像在Solaris 10这些都自带了喔,请高手指教。谢谢!
...全文
671 44 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
44 条回复
切换为时间正序
请发表友善的回复…
发表回复
efanlx 2006-04-06
  • 打赏
  • 举报
回复
e280.err的日志:
060406 11:09:23 mysqld started
Warning: Ignoring user change to 'ser=mysql' because the user was set to 'mysql'
earlier on the command line
060406 11:09:23 InnoDB: Started
060406 11:09:23 Fatal error: Can't open privilege tables: Table 'mysql.host' doe
sn't exist
060406 11:09:23 Aborting

060406 11:09:23 InnoDB: Starting shutdown...
060406 11:09:26 InnoDB: Shutdown completed
060406 11:09:26 /usr/local/mysql/libexec/mysqld: Shutdown Complete

060406 11:09:26 mysqld ended
efanlx 2006-04-06
  • 打赏
  • 举报
回复
#/usr/local/mysql/bin/mysql
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
fierygnu 2006-04-06
  • 打赏
  • 举报
回复
/usr/local/mysql/bin/mysqld直接执行行吗?
efanlx 2006-04-06
  • 打赏
  • 举报
回复
#chown –R mysql /usr/local/mysql
还是报这样的错误
fierygnu 2006-04-06
  • 打赏
  • 举报
回复
属主都改成mysql试试。
efanlx 2006-04-06
  • 打赏
  • 举报
回复
var 这目录我改成了777的
efanlx 2006-04-06
  • 打赏
  • 举报
回复
mysql目录的权限如下:

drwxr-xr-x 2 root mysql 1.5K 4ÔÂ 6ÈÕ 07:56 bin
drwxr-xr-x 3 root mysql 512 4ÔÂ 6ÈÕ 07:56 doc
drwxr-xr-x 3 root mysql 512 4ÔÂ 6ÈÕ 07:56 include
drwxr-xr-x 2 root mysql 512 4ÔÂ 6ÈÕ 07:56 info
drwxr-xr-x 3 root mysql 512 4ÔÂ 6ÈÕ 07:56 lib
drwxr-xr-x 2 root mysql 512 4ÔÂ 6ÈÕ 07:56 libexec
drwxr-xr-x 3 root mysql 512 4ÔÂ 6ÈÕ 07:56 man
drwxr-xr-x 7 root mysql 512 4ÔÂ 6ÈÕ 07:56 mysql-test
drwxr-xr-x 2 root mysql 1.5K 4ÔÂ 6ÈÕ 07:56 scripts
drwxr-xr-x 3 root mysql 512 4ÔÂ 6ÈÕ 07:56 share
drwxr-xr-x 6 root mysql 1.0K 4ÔÂ 6ÈÕ 07:56 sql-bench
drwxrwxrwx 4 root mysql 512 4ÔÂ 6ÈÕ 08:35 var
efanlx 2006-04-06
  • 打赏
  • 举报
回复
为什么每重启一次电脑,e280-bin.001就自动增加一个文件呢?
e280-bin.001
e280-bin.002
e280-bin.003
e280-bin.004
e280-bin.005
e280-bin.006
....
efanlx 2006-04-05
  • 打赏
  • 举报
回复
# truss -o /tmp/tt /usr/local/mysql/bin/resolveip e280
truss: cannot execute program: /usr/local/mysql/bin/resolveip
#
efanlx 2006-04-05
  • 打赏
  • 举报
回复
force出现以下的结果:
#./mysql_install_db -user=mysql --force
./mysql_install_db: /usr/local/mysql/bin/my_print_defaults:不能执行
Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables
./mysql_install_db: /usr/local/mysql/libexec/mysqld: 不能执行
Installation of grant tables failed!

Examine the logs in /usr/local/mysql/var for more information.
You can also try to start the mysqld daemon with:
/usr/local/mysql/libexec/mysqld --skip-grant &
You can use the command line tool
/usr/local/mysql/bin/mysql to connect to the mysql
database and look at the grant tables:

shell> /usr/local/mysql/bin/mysql -u root mysql
mysql> show tables

Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /usr/local/mysql/var that may be helpful.

The latest information about MySQL is available on the web at
http://www.mysql.com
Please consult the MySQL manual section: 'Problems running mysql_install_db',
and the manual section that describes problems on your OS.
Another information source is the MySQL email archive.
Please check all of the above before mailing us!
And if you do mail us, you MUST use the /usr/local/mysql/bin/mysqlbug script!
fierygnu 2006-04-05
  • 打赏
  • 举报
回复
哦,用/usr/local/mysql/bin/resolveip,全路径。
不行就--force吧。
efanlx 2006-04-05
  • 打赏
  • 举报
回复
我按你的方法,改了/etc/hosts,提示还是一样的错误。然后用truss -o /tmp/tt resolveip e280,说找不到resolveip,晕
fierygnu 2006-04-05
  • 打赏
  • 举报
回复
resolveip是什么文件?权限对吗?
其它问题也是,检查一下权限设置。
efanlx 2006-04-04
  • 打赏
  • 举报
回复
晕,我下载一个4安装看看
fierygnu 2006-04-04
  • 打赏
  • 举报
回复
是php5的bug :)
efanlx 2006-04-04
  • 打赏
  • 举报
回复
是系统有问题还是我其它地方没有配置好?
fierygnu 2006-04-04
  • 打赏
  • 举报
回复
不应该有问题。
google了一下,说是bug :(
http://usalug.org/phpBB2/viewtopic.php?t=8551
efanlx 2006-04-04
  • 打赏
  • 举报
回复

我运行# ldd /usr/local/apache2/modules/libphp5.so
出现以下的内容:
libresolv.so.2 => /usr/lib/libresolv.so.2
libm.so.2 => /usr/lib/libm.so.2
libnsl.so.1 => /usr/lib/libnsl.so.1
libsocket.so.1 => /usr/lib/libsocket.so.1
libz.so => /usr/local/lib/libz.so
libxml2.so.2 => /usr/local/lib/libxml2.so.2
libiconv.so.2 => /usr/local/lib/libiconv.so.2
libc.so.1 => /usr/lib/libc.so.1
libmp.so.2 => /lib/libmp.so.2
libmd5.so.1 => /lib/libmd5.so.1
libscf.so.1 => /lib/libscf.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
libpthread.so.1 => /usr/lib/libpthread.so.1
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1
/platform/SUNW,Sun-Fire-280R/lib/libmd5_psr.so.1
efanlx 2006-04-04
  • 打赏
  • 举报
回复
又有新的错误了:
httpd: Syntax error on line 110 of /usr/local/apache2/conf/httpd.conf: API module structure `php5_module' in file /usr/local/apache2/modules/libphp5.so is garbled - perhaps this is not an Apache module DSO?

如何解决?
fierygnu 2006-04-04
  • 打赏
  • 举报
回复
如果一定想深究,用truss -o /tmp/tt resolveip e280,看看/tmp/tt里错在什么地方。
加载更多回复(24)

19,620

社区成员

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

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