![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 7 Pomógł: 0 Dołączył: 8.04.2009 Ostrzeżenie: (0%) ![]() ![]() |
Witam,
niedawno postanowilem wziasc sie za swoja edukacje i zakupilem kilka ksiazek o AMP i ew. LAMP. W jednej z ksiazek (PHP5, Apache i MySQL od podstaw) przeczytalem o instalacji i konfiguracji. Postanowilem od razu sprobowac zrobic to uzywajac technik podanych w tej ksiazce. Najpierw ksiazka opisywala instalacje i konfiguracje Apache'a (2.0) - wszystko przebieglo dobrze, instalacja sie powiodla, na localhoscie pojawia sie informacja o poprawnym zainstalowaniu Apache'a. Drugi etap to dodanie PHP (5) do serwera - robilem wszystko zgodnie z poradami zawartymi w ksiazce, czyli dodanie poszczegolnych linijek do pliku httpd.conf, takich jak:
<HTML> <HEAD> <TITLE>TESTING APACHE</TITLE> </HEAD> <BODY> Jesli to widzisz, konfiguracja jest poprawna! </BODY> </HTML> I zapisac w katalogu Apache'a (w moim przypadku C:\AMP\Apache 2.0\Apache2\htdocs) pod nazwa index.html, aby sprawdzic czy apache poprawnie odnajduje katalog. Po odpaleniu http://localhost w przegladarce pokazal sie owy tekst "Jesli to widzisz, konfiguracja jest poprawna!", wiec wnioskuje ze jak narazie wszystko jest w porzadku. Nastepny krok nazywal sie "Konfiguracja instalacji PHP". Wedlug instrukcji zmienilem nazwe pliku php.ini-dist na php.ini i skopiowalem do katalogu C:\windows. Nastepnie skopiowalem plik php5ts.dll do katalogu C:\windows\system32. Aby sprawdzic poprawnosc dzialania, autor znow zalecil otworzeniu notatnika, napisanie: <html> <head> <title>Test PHP</title> </head> <body> <?php echo "Jesli to widzisz to <i>naprawde</i> konfiguracja jest poprawna!"; ?> </body> </html> i zapisanie tego w htdocs jako phptest.php. Nastepnie aby sprawdzic czy wszystko dziala, wpisalem w przegladarce http://localhost/phptest.php. I tu sie pojawia problem: Not Found The requested URL /phptest.php was not found on this server. Apache/2.0.63 (Win32) PHP/5.2.9-2 Server at localhost Port 80 Dochodzimy teraz do mojego pytania i prosby - co robie zle? Czy moglibyscie wskazac mi sposob, a takze wytlumaczyc solucje rozwiazania mojego problemu tak zebym tez sie czegos nauczyl na przyszlosc? Z gory bardzo dziekuje wszystkim, ktorzy poswieca chwile na pomoc. Pozdrawiam o/ /EDIT Problem wyzej juz udalo mi sie rozwiazac, lecz teraz mam problem z MySQLem (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) Sciagnałem instalke o nazwie mysql-essential-5.1.33-win32 Wszystko ladnie sie zainstalowalo. Potem wg ksiazki zmienilem linijke extension_dir = "./" na extension_dir = "C:\AMP\PHP5\ext" nastepnie usunalem srednik z liniki ;extension=php_mysql.dll i skopiowalem plik libmysql.dll do system32. Nastepnie otworzylem cmd i wpisalem c:\mysql\bin\mysqld --install Wszystko ladnie sie zainstalowalo. Nastepnie wpisalem NET START MySQL ale wywala mi blad: he MySQL service is starting. The MySQL service could not be started. A system error has occurred. System error 1067 has occurred. The process terminated unexpectedly. Wiem, ze to czesty blad. Przestudiowalem google ale nie znalazlem rozwiazania dla siebie. Licze na wasza pomoc. Z gory dzieki. Ten post edytował Yukka 9.04.2009, 16:53:17 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 7 Pomógł: 0 Dołączył: 8.04.2009 Ostrzeżenie: (0%) ![]() ![]() |
Ok, przy kazdej probie 'net start mysql' wywala 4 raporty:
1. Log Name: System Source: Service Control Manager Date: 2009-04-10 16:54:00 Event ID: 7034 Task Category: None Level: Error Keywords: Classic User: N/A Computer: Jukka-PC Description: The MySQL service terminated unexpectedly. It has done this 5 time(s). Event Xml: <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <System> <Provider Name="Service Control Manager" Guid="{555908D1-A6D7-4695-8E1E-26931D2012F4}" EventSourceName="Service Control Manager" /> <EventID Qualifiers="49152">7034</EventID> <Version>0</Version> <Level>2</Level> <Task>0</Task> <Opcode>0</Opcode> <Keywords>0x80000000000000</Keywords> <TimeCreated SystemTime="2009-04-10T15:54:00.000Z" /> <EventRecordID>136388</EventRecordID> <Correlation /> <Execution ProcessID="0" ThreadID="0" /> <Channel>System</Channel> <Computer>Jukka-PC</Computer> <Security /> </System> <EventData> <Data Name="param1">MySQL</Data> <Data Name="param2">5</Data> </EventData> </Event> ------------------------------------------------------------------------------------ 2. Log Name: Application Source: MySQL Date: 2009-04-10 16:54:00 Event ID: 100 Task Category: None Level: Error Keywords: Classic User: N/A Computer: Jukka-PC Description: Aborting For more information, see Help and Support Center at http://www.mysql.com. Event Xml: <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <System> <Provider Name="MySQL" /> <EventID Qualifiers="49152">100</EventID> <Level>2</Level> <Task>0</Task> <Keywords>0x80000000000000</Keywords> <TimeCreated SystemTime="2009-04-10T15:54:00.000Z" /> <EventRecordID>64768</EventRecordID> <Channel>Application</Channel> <Computer>Jukka-PC</Computer> <Security /> </System> <EventData> <Data>Aborting </Data> </EventData> </Event> ------------------------------------------------------------------------------------------ 3. Log Name: Application Source: MySQL Date: 2009-04-10 16:54:00 Event ID: 100 Task Category: None Level: Warning Keywords: Classic User: N/A Computer: Jukka-PC Description: Can't create test file C:\AMP\MySQL\data\Jukka-PC.lower-test For more information, see Help and Support Center at http://www.mysql.com. Event Xml: <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <System> <Provider Name="MySQL" /> <EventID Qualifiers="49152">100</EventID> <Level>3</Level> <Task>0</Task> <Keywords>0x80000000000000</Keywords> <TimeCreated SystemTime="2009-04-10T15:54:00.000Z" /> <EventRecordID>64767</EventRecordID> <Channel>Application</Channel> <Computer>Jukka-PC</Computer> <Security /> </System> <EventData> <Data>Can't create test file C:\AMP\MySQL\data\Jukka-PC.lower-test </Data> </EventData> </Event> --------------------------------------------------------------------------------------- 4. Log Name: Application Source: MySQL Date: 2009-04-10 16:54:00 Event ID: 100 Task Category: None Level: Warning Keywords: Classic User: N/A Computer: Jukka-PC Description: Can't create test file C:\AMP\MySQL\data\Jukka-PC.lower-test For more information, see Help and Support Center at http://www.mysql.com. Event Xml: <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <System> <Provider Name="MySQL" /> <EventID Qualifiers="49152">100</EventID> <Level>3</Level> <Task>0</Task> <Keywords>0x80000000000000</Keywords> <TimeCreated SystemTime="2009-04-10T15:54:00.000Z" /> <EventRecordID>64766</EventRecordID> <Channel>Application</Channel> <Computer>Jukka-PC</Computer> <Security /> </System> <EventData> <Data>Can't create test file C:\AMP\MySQL\data\Jukka-PC.lower-test </Data> </EventData> </Event> --------------------------------------------------------------------------------------------- Wyczytalem " <Data>Can't create test file C:\AMP\MySQL\data\Jukka-PC.lower-test". zauwazylem ze nie mam nawet folderu data w folderze z mysql. Utworzylem taki, potem net start mysql i wywala mi 3 inne bledy (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) Log Name: System Source: Service Control Manager Date: 2009-04-10 17:02:49 Event ID: 7034 Task Category: None Level: Error Keywords: Classic User: N/A Computer: Jukka-PC Description: The MySQL service terminated unexpectedly. It has done this 6 time(s). Event Xml: <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <System> <Provider Name="Service Control Manager" Guid="{555908D1-A6D7-4695-8E1E-26931D2012F4}" EventSourceName="Service Control Manager" /> <EventID Qualifiers="49152">7034</EventID> <Version>0</Version> <Level>2</Level> <Task>0</Task> <Opcode>0</Opcode> <Keywords>0x80000000000000</Keywords> <TimeCreated SystemTime="2009-04-10T16:02:49.000Z" /> <EventRecordID>136389</EventRecordID> <Correlation /> <Execution ProcessID="0" ThreadID="0" /> <Channel>System</Channel> <Computer>Jukka-PC</Computer> <Security /> </System> <EventData> <Data Name="param1">MySQL</Data> <Data Name="param2">6</Data> </EventData> </Event> Log Name: Application Source: MySQL Date: 2009-04-10 17:02:49 Event ID: 100 Task Category: None Level: Error Keywords: Classic User: N/A Computer: Jukka-PC Description: Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist For more information, see Help and Support Center at http://www.mysql.com. Event Xml: <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <System> <Provider Name="MySQL" /> <EventID Qualifiers="49152">100</EventID> <Level>2</Level> <Task>0</Task> <Keywords>0x80000000000000</Keywords> <TimeCreated SystemTime="2009-04-10T16:02:49.000Z" /> <EventRecordID>64771</EventRecordID> <Channel>Application</Channel> <Computer>Jukka-PC</Computer> <Security /> </System> <EventData> <Data>Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist </Data> </EventData> </Event> Log Name: Application Source: MySQL Date: 2009-04-10 17:02:36 Event ID: 100 Task Category: None Level: Error Keywords: Classic User: N/A Computer: Jukka-PC Description: Can't open the mysql.plugin table. Please run mysql_upgrade to create it. For more information, see Help and Support Center at http://www.mysql.com. Event Xml: <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <System> <Provider Name="MySQL" /> <EventID Qualifiers="49152">100</EventID> <Level>2</Level> <Task>0</Task> <Keywords>0x80000000000000</Keywords> <TimeCreated SystemTime="2009-04-10T16:02:36.000Z" /> <EventRecordID>64770</EventRecordID> <Channel>Application</Channel> <Computer>Jukka-PC</Computer> <Security /> </System> <EventData> <Data>Can't open the mysql.plugin table. Please run mysql_upgrade to create it. </Data> </EventData> </Event> I teraz "Can't open the mysql.plugin table. Please run mysql_upgrade to create it." Otworzylem mysql_upgrade z bina ale tez mi wywala jakies glupie bledy, ktorych nie pokazuje w podgladzie zdarzen :| Ten post edytował Yukka 10.04.2009, 17:09:27 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 17.10.2025 - 10:51 |