Running PHP On Linux [ Ubuntu ] [ Beginner ]

Any help topics that don't fit in the current categories can go here.
Post Reply
Alg0r1thm
Posts: 64
Joined: Mon Sep 12, 2011 7:57 pm

Running PHP On Linux [ Ubuntu ] [ Beginner ]

Post by Alg0r1thm »

Hi brothers ,

I've installed ubuntu , I wanted to install the machine that run php , I installed lampp with the some commands after I googled.

Now it works ~> http://up7.iranblog.com/images/czzareobwoh1ihg6lg7.png

But I don't know where can I store php codes and run them !

Also I decided to remove that and Install xampp when I downloaded Xampp and I runned the installation command I face error !!!!!!!!!

I thought it's in that directory opt when went there there was nothing ! NoThInG !

I need some stuff that I can build mysql tables with user interface if you have the clue please help me what should I do ?

Notice : I'm pure beginner , Say the ways with details .

Thanks in advance
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Running PHP On Linux [ Ubuntu ] [ Beginner ]

Post by jacek »

I think the default folder is /var/www if you look in there you should see the "It works !" page.
Image
Alg0r1thm
Posts: 64
Joined: Mon Sep 12, 2011 7:57 pm

Re: Running PHP On Linux [ Ubuntu ] [ Beginner ]

Post by Alg0r1thm »

How can I learn this commands ?

I wanna login into the phpmyadmin but I can't it says Login without a password is forbidden by configuration (see AllowNoPassword) !!!

I googled they said I should change the config of the phpmyadmin ( I mean copying the config.sample to config ... ) but I can't

because I don't have permession ! The config's file permession is Read-Only !

How can I change the file permession ? is changing the directory's permession contain the file's permession ?

I'm newbie Linux User .

[ Linux Ubuntu ]

Thanks in advance
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Running PHP On Linux [ Ubuntu ] [ Beginner ]

Post by jacek »

You can change the permission of the file either by doing
chmod 0764 config.inc.php
you may neeed to run it as root, to do that do
sudo chmod 0764 config.inc.php
Image
Post Reply