wtorek, 29 marca 2016

WAmpserver nie działa, localhost - 403 Forbidden

Miałem poważne problemy z wampserver i moje uwagi:
1. Na najnowszej wersji "wampserver3_x64_apache2.4.17_mysql5.7.9_php5.6.16_php7.0.0" nie można odpalić joomli 1.5 po wgraniu instalki joomli 3 install idzie bez problemu, dobrze że gdzieś zawieruszyła mi się wersja wampserwer 2.2. Po zainstalowaniu i kliknięciu na localhost..... lipa  localhost - 403 Forbidden. Pogmerałem w necie i znalazłem taki trick:
1. Otworzyć "C:/Windows/System32/drivers/etc/hosts" jako administrator
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#

# localhost name resolution is handled within DNS itself.
    127.0.0.1       localhost
    ::1             localhost

127.0.0.1       localhost
127.0.0.1       localhost
 U mnie w 10 tak to wyglądało po zmianach
2. Otworzyć "C:/wamp/bin/apache/Apache2.2.21/conf/" httpd.conf nie httpd.conf.conf bo jest i taki
# Virtual hosts
#Include conf/extra/httpd-vhosts.conf 
i usunąć tego czerwonego hasza
3 Otworzyć "C:/wamp/bin/apache/Apache2.2.21/conf/extra" and open the file "httpd.vhosts.conf
ja wywaliłem wszystko i wkleiłem
#
# Virtual Hosts
#
# 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.2/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.

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
#
# Use name-based virtual hosting.
# This next line is not required if you are using Apache 2.4.x and should be deleted
NameVirtualHost *:80

## should be first so the wamp menu page loads and is the default site
## should also never be changed from only allowing access from the local machine
## for a bit of extra security from casual ip address probing
<VirtualHost *:80>
    DocumentRoot "d:/wamp/www"
    ServerName  localhost
    ServerAlias localhost
    <Directory  "d:/wamp/www">
        AllowOverride All

        <IfDefine APACHE24>
            Require local
        </IfDefine>

        <IfDefine !APACHE24>
            Order Deny,Allow
            Allow from all
            Allow from 127.0.0.1 localhost ::1
        </IfDefine>
    </Directory>
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot "d:/wamp/www/xxxxxxx"
    ServerName  project1
    ServerAlias project1
    <Directory  "d:/wamp/www/xxxxxxx">
        AllowOverride All

        <IfDefine APACHE24>
            Require local
        </IfDefine>

        <IfDefine !APACHE24>
            Order Deny,Allow
            Allow from all
            Allow from 127.0.0.1 localhost ::1
        </IfDefine>

    </Directory>
</VirtualHost>
tu gdzie xxxxxxx podajecie nazwę swojego katalogu który utworzyliście w miejscu zainstalowania wampserwer, u mnie zadziałało za nieudane przeróbki nie odpowiadam bo piszę to tylko dla swojej wiedzy i pamięci :P

poniedziałek, 28 marca 2016

Wgrywanie Dużej bazy danych

Zainstalowałem XAMPP i znowu problem z wgraniem dużej bazy danych. Rozwiązanie znaleźć php.ini i zmienić

max_execution_time = 60 , Maksymalny czas wykonywania każdego skryptu, w sekundach (domyślnie 30)
max_input_time = 90 , Maksymalny czas każdy skrypt może spędzić datę żądania parsowania (domyślnie 60)
memory_limit = 128M , Maksymalna ilość pamięci skrypt może konsumować (Dead 128mb)
upload_max_filesize = 200M , Maksymalny dopuszczalny rozmiar przesyłanych plików. (domyślnie 2mb)
post_max_size = 180M , Maksymalny rozmiar POST danych PHP.

sobota, 26 marca 2016

wampserver nie uruchamia się

Pomarańczowa ikona Wampserver pomarańczowa ikona, zajęty port 80. Rozwiązanie wyłącznie IIS.
Zeby sprawdzić "zajętość" tego portu klikamy na ikonie wampa (prawym przyciskiem) tools >Test port 80.
Wchodzimy w Panel Sterowania>Programy i Funkcje>Wyłącz lub włącz funkcje systemu windows> odznaczamy "Internetowe usługi informacyjne"