Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [MySQL][PHP]Jak ręcznie zainstalować PHP i MYSQL?
Neutral
post
Post #1





Grupa: Zarejestrowani
Postów: 286
Pomógł: 46
Dołączył: 10.01.2016

Ostrzeżenie: (0%)
-----


Pytam, ponieważ od jakiegoś czasu zamiast MYSQL mam MariaDB. Z góry dziękuję.
Go to the top of the page
+Quote Post
nospor
post
Post #2





Grupa: Moderatorzy
Postów: 36 557
Pomógł: 6315
Dołączył: 27.12.2004




apt-get install mysql
apt-get install php


--------------------

"Myśl, myśl, myśl..." - Kubuś Puchatek || "Manual, manual, manual..." - Kubuś Programista
"Szukaj, szukaj, szukaj..." - Kubuś Odkrywca || "Debuguj, debuguj, debuguj..." - Kubuś Developer

Go to the top of the page
+Quote Post
Neutral
post
Post #3





Grupa: Zarejestrowani
Postów: 286
Pomógł: 46
Dołączył: 10.01.2016

Ostrzeżenie: (0%)
-----


Czy mógłby ktoś podać linki, co mam pobrać? Apache, PHP, MYSQL. Potrzebuję 3 linków.

https://httpd.apache.org/download.cgi#apache24
Nie wiem, co pobrać, jest tam parę linków.

To pobrać:
httpd-2.2.25-win32-x86-openssl-0.9.8y.msi 2013-07-10 08:06 6.1M ?

Ten post edytował Neutral 29.11.2016, 18:52:35
Go to the top of the page
+Quote Post
viking
post
Post #4





Grupa: Zarejestrowani
Postów: 6 380
Pomógł: 1116
Dołączył: 30.08.2006

Ostrzeżenie: (0%)
-----


Zacznij może od określenia o jakim systemie operacyjnym mówisz. Wszystkie dystrybucje mają gotowe pakiety. Jeśli Windows to w stopce mam opis instalacji.


--------------------
Go to the top of the page
+Quote Post
Neutral
post
Post #5





Grupa: Zarejestrowani
Postów: 286
Pomógł: 46
Dołączył: 10.01.2016

Ostrzeżenie: (0%)
-----


DocumentRoot "D:\Server\vhosts"
<Directory "D:\Server\vhosts">
Options FollowSymLinks
AllowOverride All
Order deny,allow
Allow from all
Require all granted
</Directory>

Gdzie to, bo znaleźć nie mogę?
Go to the top of the page
+Quote Post
viking
post
Post #6





Grupa: Zarejestrowani
Postów: 6 380
Pomógł: 1116
Dołączył: 30.08.2006

Ostrzeżenie: (0%)
-----


W httpd.conf


--------------------
Go to the top of the page
+Quote Post
Neutral
post
Post #7





Grupa: Zarejestrowani
Postów: 286
Pomógł: 46
Dołączył: 10.01.2016

Ostrzeżenie: (0%)
-----


AH00112: Warning: DocumentRoot [D:/Server/vhosts/test.local] does not exist
AH00526: Syntax error on line 18 of D:/Server/Apache24/conf/extra/httpd-fcgi.conf:
Wrapper D:/Server/php-7.0.0/php-cgi.exe cannot be accessed: (720002)Nie mo\xbfna odnale\x9f\xe6 okre\x9clonego pliku.

Nie rozumiem, co źle zrobiłem. sad.gif

plik httpd-vhosts.conf:

# Virtual Hosts
#
# Required modules: mod_log_config

# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.4/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#

<VirtualHost *:80>
ServerName test.local
DocumentRoot "D:/Server/vhosts/test.local"
ErrorLog "logs/test.local-error.log"
CustomLog "logs/test.local-access.log" common
<Directory "D:/Server/vhosts/test.local">
Options Indexes FollowSymLinks MultiViews Includes ExecCGI
AllowOverride All
Order deny,allow
Allow from all
</Directory>
</VirtualHost>

Ten post edytował Neutral 30.11.2016, 10:09:28
Go to the top of the page
+Quote Post
viking
post
Post #8





Grupa: Zarejestrowani
Postów: 6 380
Pomógł: 1116
Dołączył: 30.08.2006

Ostrzeżenie: (0%)
-----


Myśl człowieku. Masz taką ścieżkę w systemie? Co jest niejasnego w powyższych komunikatach?


--------------------
Go to the top of the page
+Quote Post
Neutral
post
Post #9





Grupa: Zarejestrowani
Postów: 286
Pomógł: 46
Dołączył: 10.01.2016

Ostrzeżenie: (0%)
-----


Zmienną środowiskową muszę ustalić?

DocumentRoot [D:/Server/vhosts/test.local] Nie istnieje.
D:/Server/Apache24/conf/extra/httpd-fcgi.conf:
Wrapper D:/Server/php-7.0.0/php-cgi.exe cannot be accessed: (720002)Nie mo\xbfna odnale\x9f\xe6 okre\x9clonego pliku.
Błąd składni w linii 18.
Go to the top of the page
+Quote Post
viking
post
Post #10





Grupa: Zarejestrowani
Postów: 6 380
Pomógł: 1116
Dołączył: 30.08.2006

Ostrzeżenie: (0%)
-----


AH00112: Warning: DocumentRoot [D:/Server/vhosts/test.local] does not exist

Wrzucamy do https://translate.google.com

AH00112: Ostrzeżenie: DocumentRoot [D: /Server/vhosts/test.local] nie istnieje


--------------------
Go to the top of the page
+Quote Post
Neutral
post
Post #11





Grupa: Zarejestrowani
Postów: 286
Pomógł: 46
Dołączył: 10.01.2016

Ostrzeżenie: (0%)
-----


Nie wiem w jakim pliku popełniłem błąd. W httpd.conf?
Go to the top of the page
+Quote Post
viking
post
Post #12





Grupa: Zarejestrowani
Postów: 6 380
Pomógł: 1116
Dołączył: 30.08.2006

Ostrzeżenie: (0%)
-----


Popełniłeś taki błąd że nie utworzyłeś katalogu który podajesz w configu. Nie wiem jak jaśniej można to wytłumaczyć.


--------------------
Go to the top of the page
+Quote Post
webmaniak
post
Post #13





Grupa: Zarejestrowani
Postów: 371
Pomógł: 30
Dołączył: 14.04.2010

Ostrzeżenie: (0%)
-----


@Neutral:
1. Czemu nie skorzystasz z gotowego pakietu typu XAMPP?
2. Czemu przeszkadza Ci MariaDB?


--------------------
Pomogłem - kliknij , wprowadziłem w błąd - poinformuj niżej lub na pm.
Go to the top of the page
+Quote Post
viking
post
Post #14





Grupa: Zarejestrowani
Postów: 6 380
Pomógł: 1116
Dołączył: 30.08.2006

Ostrzeżenie: (0%)
-----


A po co ma sobie robić śmietnik w systemie? Później nawet nie będzie wiedział jak vhost skonfigurować. Zdarza się że np jakiś bug został poprawiony w MySQL a dalej wisi nierozwiązany przez kilka wersji w MariaDB.


--------------------
Go to the top of the page
+Quote Post
webmaniak
post
Post #15





Grupa: Zarejestrowani
Postów: 371
Pomógł: 30
Dołączył: 14.04.2010

Ostrzeżenie: (0%)
-----


No ok, tylko mnie zastanawia czy Neutral ma świadomość że może zainstalować gotowe środowisko i czy wie jaka jest różnica między MySQL a MariaDB.
A inna sprawa, jeśli nie chcemy mieć śmietnika w systemie to można skorzystać z dockera/vagranta smile.gif


--------------------
Pomogłem - kliknij , wprowadziłem w błąd - poinformuj niżej lub na pm.
Go to the top of the page
+Quote Post
Neutral
post
Post #16





Grupa: Zarejestrowani
Postów: 286
Pomógł: 46
Dołączył: 10.01.2016

Ostrzeżenie: (0%)
-----


MariaDB jest lepsze od MYSQL? Jak się nauczę MariaDB to będę umieć MYSQL?
Go to the top of the page
+Quote Post
viking
post
Post #17





Grupa: Zarejestrowani
Postów: 6 380
Pomógł: 1116
Dołączył: 30.08.2006

Ostrzeżenie: (0%)
-----


Jak się nauczysz mysql to połowy rzeczy z baz danych nie będziesz umiał (widzę to po prowadzonych rekrutacjach). Chcesz dobrze poznac sql zacznij od postgresql. Mariadb to fork mysql. Ma pewne swoje nowe rzeczy ale ogólnie jest raczej zgodny.


--------------------
Go to the top of the page
+Quote Post
webmaniak
post
Post #18





Grupa: Zarejestrowani
Postów: 371
Pomógł: 30
Dołączył: 14.04.2010

Ostrzeżenie: (0%)
-----


Cytat(Neutral @ 30.11.2016, 11:51:05 ) *
MariaDB jest lepsze od MYSQL? Jak się nauczę MariaDB to będę umieć MYSQL?

No właśnie jeśli chcesz robić modyfikację serwera tylko po to by zmienić MariaDB na MySQL to raczej nie jest to konieczne(dla mnie bez sensu), no chyba że koniecznie chcesz mieć MySQL smile.gif


--------------------
Pomogłem - kliknij , wprowadziłem w błąd - poinformuj niżej lub na pm.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.08.2025 - 05:34