|
#1
| |||
| |||
| hi i recently installed os x server 10.1. i did it because i thought it would be easy to test my own php scripts with it. i heard that all the webstuff as php, mysql, ... is included in the os x server and can easy be handled by the admin tool. but when i start the webservice and test a php script nothing happens. why? how can i set up the server to run my php scripts? (i am really a newby so please gimme some advice. i couldn't find anything useful on it elsewhere!) thanks in advance! |
|
#2
| |||
| |||
| Under Mac OS X 10.1 Client version, php is installed but not enabled. I haven't seen the server version but I would assume it could be the same issue. The solution is this: Take the hash out of the following lines in the httpd.conf file LoadModule php4_module libexec/httpd/libphp4.so AddModule mod_php4.c AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps and that should enable it. |
|
#3
| |||
| |||
| it works fine now. i did all the stuff long before but in the server admin tool i set the MIME type for .php files to 'server parsed' what seemed suitable to me. now i've changed it again to 'application/x-httpd-php' and that's it (i'd better have changed nothing...). next step: mysql (i think/hope i'll get along with the manual...!) thanks anyway, banzai ![]() |
|
#4
| |||
| |||
| here the 2 step by step descriptions from the apple knowledge base on php/mysql: first enabling php: Quote:
then starting mysql: Quote:
i hope it helps...! banzai Last edited by banzai; October 19th, 2001 at 08:04 AM. |
|
#5
| |||
| |||
| I enabled PHP, and it works fine But I have trouble getting MySQL to work. When I installed MySQL i got the following text: ------------------------------------------------------------ Preparing db table Preparing host table Preparing user table Preparing func table Preparing tables_priv table Preparing columns_priv table Installing all prepared tables ERROR: 1062 Duplicate entry 'localhost-root' for key 1 ERROR: 1062 Duplicate entry 'localhost-root' for key 1 020612 22:08:00 /usr/libexec/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 ! This is done with: /usr/bin/mysqladmin -u root -p password 'new-password' /usr/bin/mysqladmin -u root -h localhost -p password 'new-password' See the manual for more instructions. You can start the MySQL daemon with: cd /usr ; /usr/bin/safe_mysqld & You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory: cd sql-bench ; run-all-tests Please report any problems with the /usr/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 ------------------------------------------------------------ It seems like there is some errors. Is MySQL installed, is it partly installed, or is my system untouched? When i try to set the MySQL root user password (/usr/bin/mysqladmin -u root -p password 'new-password'): ------------------------------------------------------------ /usr/bin/mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)' Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists! ------------------------------------------------------------ So MySQL doesn't seem to be running? When I try to start MySQL (cd /usr ; /usr/bin/safe_mysqld &): ------------------------------------------------------------ [1] 528 [localhost:/Applications/Utilities] root# chown: mysql: invalid user name Starting mysqld daemon with databases from /usr/var 020612 22:37:15 mysqld ended [1] Done ( cd /usr; /usr/bin/safe_mysqld ) ------------------------------------------------------------ And now I'm stuck. I'm a newbie to UNIX, so I'm probably doing something wrong, but is unaware of that. So please, teach me ![]() When I installed MySQL, I was logged in remotely over ssh, if that could have something to do with it... The server is running OS X Server 10.1.5 |
|
#6
| |||
| |||
| Nevermind my post. It seems like I'm a newbie to manuals/instructions too I didn't follow all the steps before i tried to change the password Now it seems to be working Have to learn all about how MySQL works now. I have no experience so far with SQL databases /Essage |
![]() |
| Thread Tools | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do I turn on Sendmail on Mac OS X Server 10.1 for out going only? | Mac Write | Mac OS X System & Mac Software | 3 | February 13th, 2003 11:16 PM |
| Need help to set up OS X Server 10.1 | Essage | Mac OS X System & Mac Software | 2 | December 1st, 2001 01:15 AM |
| server 10.1, server 1.2 and server 2 | 3mors | Mac OS X System & Mac Software | 1 | October 28th, 2001 11:13 AM |
| OS X 10.1 versus OS X Server 10.1 | wdavies | Apple News, Rumors & Discussion | 1 | October 24th, 2001 08:41 PM |