Jump to content
Sign in to follow this  
ciku

Linux Server Part3

Recommended Posts

Ciku...................

Tutorial basic nak start mysql ...khas utk ko sorang........... laugh.gif

Mula-mula : (semua dalam root konsole):

1) update-rc.d mysql defaults

2) /etc/init.d/mysql start

3)Sekarang kita akan run mysql dan buat root/admin utk mysql:

mysql -user=root

mysql>set password for root@localhost = password('password');

mysql>\q

Sekarang masuk semula sebagai root dan kita buat user yg sama power dengan root (power root).

Kataka, user tu ialah ciku dan password iallah ciki.

mysql -u root -p

*masukkan password

mysql>GRANT ALL PRIVILEGES ON *.* TO 'ciku'@'localhost'

mysql>IDENTIFIED BY 'ciki' WITH GRANT OPTION;

mysql> flush privileges;

mysql>\q

Siap.

Sekarang ko boleh run phpmyadmin dengan user/pass= ciku/ciki.

Kalo ko nak guna php-nuke..........tak payah la set Uebimiau...guna webmail tu aje.

biggrin.gif

Edited by oshiri

Share this post


Link to post
Share on other sites

mysql>set password for root@localhost = password('password');

yg bhg 'password' ---------> aku gantikan dgn apa??? dgn password server aku nih..sama mcm su??

Share this post


Link to post
Share on other sites

emm jauh gile aku tertinggal ..

tapi takpe.. bab webserver, mysql server, webmail aku dah cover dah awal awal dulu.. ..

baca untuk ulang kaji je..

Share this post


Link to post
Share on other sites

yg bhg 'password' ---------> aku gantikan dgn apa??? dgn password server aku nih..sama mcm su??

ikut suka ko..........nak senang ngingat..guna aje root punya password.

emm jauh gile aku tertinggal ..

tapi takpe.. bab webserver, mysql server, webmail aku dah cover dah awal awal dulu.. ..

baca untuk ulang kaji je..

Kenapa la ko tak join.......tolong diaorang ni............sonang sikit aku.......... biggrin.gif

Edited by oshiri

Share this post


Link to post
Share on other sites

Weblmail baru dah jalan....private chat je belum lagi...silap tang mana tah...index.php tu aku create ikut eubimiau, cuma ubah folder je...tapi dia kata tak jumpa...ko try masuk tengok....

Betul tu psycox...ko tolong la apa2 yg patut....Kurang nampak jalan kat linux nie........

Share this post


Link to post
Share on other sites

mysql> set password for root@localhost = password('god');

ERROR 1044: Access denied for user: '@localhost' to database 'mysql'

mysql>

KUAR NIH.......

Share this post


Link to post
Share on other sites

Blank....tak leh masuk............coba post index.php.

Aku rasa ko ada silap kat page dia.......

Ciku try ni:

Ko kluar dulu dari mysql : mysql>\q

Ko blom ada password.

Masuk guna ni:

mysql --user=root mysql

dan proceed dgn buat password.

Share this post


Link to post
Share on other sites

Pelik betul soklan ko ni............ laugh.gif

Tak install camne nak run.

apt-get install phpmyadmin

Lepas tu copy folder phpmyadmin dari /usr/share dan paste ke /html.

Share this post


Link to post
Share on other sites

Pelik betul soklan ko ni............ laugh.gif

Tak install camne nak run.

apt-get install phpmyadmin

Lepas tu copy folder phpmyadmin dari /usr/share dan paste ke /html.

aku ingat benda tuh mmg dah ada dlm nih laugh.gif

Share this post


Link to post
Share on other sites

kuar which server to configure............apache ke apache2..apache2 kan??

apste ke html??? kat folder mana tuh??

Edited by ciku

Share this post


Link to post
Share on other sites

Lepas tu copy folder phpmyadmin dari /usr/share dan paste ke /html.

paste kat html tu??? apa folder dia?? kat mana aku nak cari html tuh?

Edited by ciku

Share this post


Link to post
Share on other sites

Ko ekstrak php-nuke kat mana?

Dalam php-nuke tu ada folder html.............ko drag folder html tu ke /home/faizul/.......... ko....jadi ko ada folder /home/faizul/html.

Jadi...kat dalam tu la ko paste folder phpmyadmin.

Lepas tu ko set apache2...edit file /etc/apache2/sites-enable/000-default:

NameVirtualHost *

<VirtualHost *>
	ServerAdmin webmaster@localhost

	DocumentRoot /home/faizul/html
	<Directory />
  Options FollowSymLinks
  AllowOverride None
	</Directory>
	<Directory /home/faizul/html/>
  Options Indexes FollowSymLinks MultiViews
  AllowOverride None
  Order allow,deny
  allow from all
  # This directive allows us to have apache2's default start page
                # in /apache2-default/, but still have / go to the right place
  #RedirectMatch ^/$ /apache2-default/
	</Directory>

	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
	#ScriptAlias /cgi-bin/ /var/www/cgi-bin/
	<Directory "/usr/lib/cgi-bin">
  AllowOverride None
  Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
  Order allow,deny
  Allow from all
	</Directory>

	ErrorLog /var/log/apache2/error.log

	# Possible values include: debug, info, notice, warn, error, crit,
	# alert, emerg.
	LogLevel warn

	CustomLog /var/log/apache2/access.log combined
	ServerSignature On

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>

Lepas tu restart apache2.

Ko buang dulu apache.

update-rc.d -f apache remove

update-rc.d apache2 defaults

/etc/init.d/apache stop

/etc/init.d/apache2 start

Lepas tu test dalam browser: http://localhost/phpmyadmin/

Share this post


Link to post
Share on other sites

Index.php Private Chat.....

<?php

if (!eregi("modules.php", $PHP_SELF)) {

  die ("You can't access this file directly...");

  }

  require_once("mainfile.php");

  $module_name = basename(dirname(__FILE__));

  include("header.php");

  $index = 0;

  OpenTable();

  echo"<IFRAME name=stbbox src=\"http://localhost/Private_Chat/\" width=\"780\"height=\"600\">"

  . "<p>Browser anda tidak support frame. Klik <a href=\"http://www.mozilla.org/products/firefox/\" target=\"_blank\">here</a> untuk download Mozilla Firefox.</p>"

    . "</IFRAME>";

    CloseTable();

    include("footer.php");

    ?>

Apa yg tak kena.....??

Share this post


Link to post
Share on other sites

Blank...........ada satu benda ko tak buat aku rasa la...........ko tak .....copy Private_Chat ke /html.

Maksud aku .........isikandungan dalam folder asrc yg ko ekstrak tu.

Copy semua kandungan dalam folder ascr dam pndah ke /html/Private_Chat.

biggrin.gif

Edited by oshiri

Share this post


Link to post
Share on other sites

Ciku dah kehilangan arah.....kuangkuang...rilex buat pelan2......

Oshiri..mende ko quote tu...apa yg silapnya...?? janagn quote camtu je, aku tak paham php beb.... laugh.gif

Share this post


Link to post
Share on other sites

Yg aku quote tu.........code yg dah diubah..............

Rule pertama......JANGAN GUNA HTTP.

Script arsc ni sebenarnya bukan untuk nuke-php..............script utk run standalone cam uebimiau........sebab tu kena guna teknik camni.

Sama jugak seperti uebimiau............ko kena pindah folder yg ko ekstrak tu ke /html/ ......tak kira la kalo ko dah ubah nama dia.

laugh.gif

Share this post


Link to post
Share on other sites

root@server:/home/faizul# update-rc.d -f apache remove

update-rc.d: /etc/init.d/apache exists during rc.d purge (continuing)

Removing any system startup links for /etc/init.d/apache ...

root@server:/home/faizul# update-rc.d apache2 defaults

System startup links for /etc/init.d/apache2 already exist.

root@server:/home/faizul# /etc/init.d/apache stop

Stopping web server: apacheNo process in pidfile `/var/run/apache.pid' found running; none killed.

.

root@server:/home/faizul# /etc/init.d/apache2 start

Starting web server: Apache2apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

httpd (pid 3851) already running

.

root@server:/home/faizul#

bila aku run test localhost kuar ini : which have chosen to open.....mcm dialog utk download.......open with dan save to disk...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...