Компьютерный форум OSzone.net  

Компьютерный форум OSzone.net (http://forum.oszone.net/index.php)
-   Хочу все знать (http://forum.oszone.net/forumdisplay.php?f=23)
-   -   403 forbidden в apache 2.0.49 (http://forum.oszone.net/showthread.php?t=32575)

sad koder 17-06-2004 15:43 222000

os - solaris 9 intel
собственно появляется 403 "access to / denied"
при заходе на сервак,юзер по умолчанию - nobody/nobody,для others на htdocs/ стоит r+x.
Не знаю в чем проблемма!сменил владельца htdocs на nobody - не помогло!

ruslandh 17-06-2004 23:17 222001

Может Вы не там ищите ? Нет-ли чего в конфигах Апачи ?

sad koder 18-06-2004 11:53 222002

похоже проблемму решил - стояли левые пермишены на /,т.е  nobody не мог htdocs  прочитать......сейчас работает

sad koder 18-06-2004 15:58 222003

Теперь такая трабла - мне надо скомпилить пхп.
вот output скрипта /.configure:
hecking whether ln -s works... yes
checking for mawk... no
checking for gawk... no
checking for nawk... nawk
checking for bison... no
checking for byacc... no
configure: warning: You will need bison if you want to regenerate the PHP parsers.
checking for flex... lex
checking for yywrap in -ll... yes
checking lex output file root... ./configure: lex: not found
configure: error: cannot find output from lex; giving up
#

ruslandh 19-06-2004 00:11 222004

Установите пакет flex (пора эту тему в программные средства Linux и FreeBSD перемещать :) )

sad koder 20-06-2004 00:42 222005

нет,flex я установил!!=))
там трабла в чем то другом,пока ищу инфу по этому поводу...
(Хотя я мог просто неправильно его поставить...хм...)

Добавлено:

Как я и предполагал=))))
Сорри за глупый вопрос(все время путаю с линуксом) как мне /usr/loca/bin
добавить в $PATH?
пхп по всей видимости работает,осталось только в httpd.conf строчку вставить...
Теперь надо бы mysql поставить,с этим уже проблеммы.На mysql.com лежит только бинарник и то для 8 солярки(но это не играет особой роли)
так вот output ./configure
# ./configure
NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!

To help you a bit, I am now going to create the needed MySQL databases
and start the MySQL server for you.  If you run into any trouble, please
consult the MySQL manual, that you can find in the Docs directory.

Installing all prepared tables
040620 13:29:45  ./bin/mysqld: Shutdown Complete


To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h solarka password 'new-password'
See the manual for more instructions.

NOTE:  If you are upgrading from a MySQL <= 3.22.10 you should run
the ./bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!

You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests

Please report any problems with the ./bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com

Starting the mysqld server.  You can test that it is up and running
with the command:
./bin/mysqladmin version
# chown: unknown user id mysql
Starting mysqld daemon with databases from /usr/wraith/mysql/mysql-standard-4.0.20-pc-solaris2.8-i386/data
040620 13:29:45  mysqld ended


Собственно сервак не запускается,не может файлы какие-то найти:
# bin/mysqld &
[1] 12218
# 040620 13:31:25  Warning: Can't create test file /usr/local/mysql/data/solarka.lower-test
040620 13:31:25  Can't find messagefile '/usr/local/mysql/share/mysql/english/errmsg.sys'
040620 13:31:25  Aborting

Не знаю че делать - на самом сайти там для спарка только доки....

ruslandh 20-06-2004 07:50 222006

1
Цитата:

сhown: unknown user id mysql
Создайте пользователя mysql
2 Ну, а насчёт этих файлов ..., их действительно нет ?


Время: 21:36.

Время: 21:36.
© OSzone.net 2001-