UHU-n: apache + php + mysql=fanakmegyek, HELP!!!
a gépre(uhu 1.1 rc4 nevermore) most akartam felrakni egy 2-es apache servert, a szerver frankón fut csak a PHP scripteket nem futtatja, pedig fent van a 4.36-os PHP.
a httpd.conf-ban a következők vannak beállítva:
AddModule mod_php4.c
DirectoryIndex index.html index.php
<IfModule mod_dir.c>
DirectoryIndex index.html
</IfModule>
AddType application/x-tar .tgz
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php4 .php
AddType application/x-httpd-php3 .php
AddType application/x-httpd-php3-source .phps
LoadModule php4_module libexec/libphp4.so
a hasonló beállításokkal win32 alatt minden frankón ment.
MIT ÁLLÍTSAK BE?
a mysql pedig a halálom..........
sem win sem uhu alatt nem tudok csatlakozni a szemét szerverhez.....
ezek alapján állítom be:
http://prog.hu/cikkek/?aid=422&pg=3
az idegbaj kerülget akár mit állítok nemmegy!
root:/usr/local/mysql# ./scripts/mysql_install_db
ez lefut, OK
root:/usr/local/mysql/support-files# ./mysql.server start
erre semmi válasz
./bin/mysqladmin -u root password 'jeszo'
erre:./bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
./bin/mysqladmin -u root -h localhost password 'new-password'
a válasz meglepő:
root:/usr/local/mysql# ./bin/mysqladmin -u root -h localhost password 'new-password'
./bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
root:/usr/local/mysql/bin# ./mysql -u root -p
Enter password:
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)
root:/usr/local/mysql/bin# ./mysql
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)
SEGÍTSÉG!!!!!!!!!!!