PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Thu Sep 19, 2019 12:42 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Sun Jun 28, 2009 12:04 am 
Offline
Forum Newbie

Joined: Sat Jun 27, 2009 11:51 pm
Posts: 3
Hi All,
I'm a fresher in php programming and linux.

With Windows, this is what i do. I start the WAMP server and store my php files under c:\wamp\www\Sanjith. And when i go to http://localhost, i get the list of php programs and can run any one of them.

But i dont know how to do something similar in linux.

In linux, I installed and started apache and mysql. Edited the /srv/www/htdocs/index.html file and went to http://localhost to confirm if it was working. And it was. The contents of index.html was shown. But I was wondering.... where do i have to place my php programs so that i can access them from localhost??

I dont know where to store my php programs so that they can be accessed. As in windows, I hope i would be able to access them from localhost itself.

Please help.

With Regards
Sanjith


Top
 Profile  
 
PostPosted: Sun Jun 28, 2009 1:39 am 
Offline
Forum Contributor

Joined: Sun Sep 09, 2007 6:27 pm
Posts: 282
In Fedora 9 you'll find your httpd.conf file in /etc and in that file you'll see where your document root is and where any virtual hosts may be too.

Without any changes, out of the box Fedora the root of your web files is /var/www/html/ You can add <Directory> and/or <Alias> directives to locate files elsewhere in the filesystem if you wish.


Top
 Profile  
 
PostPosted: Sun Jun 28, 2009 2:04 am 
Offline
Forum Commoner

Joined: Wed Jan 07, 2009 1:43 am
Posts: 66
which linux distribution you use ?

in ubuntu it's in the /var/www/
centos /var/www/html/
other i don't know

I'm not sure whether you can change this directory or not
apache should be able to do it

don't forget to install php first


Top
 Profile  
 
PostPosted: Sun Jun 28, 2009 8:59 am 
Offline
Forum Newbie

Joined: Sat Jun 27, 2009 11:51 pm
Posts: 3
I'm using opensuse11.1.
Currently I'm accessing the files by placing them under /home/sanjith/public_html/<myapps>/
And then typing http://localhost/~sanjith/ in the browser.

Now there seems to be another problem.

I am not able to login to my phpMyAdmin. The root user password is blank and when i try to login, I get #2002 - The server is not responding (or the local MySQL server's socket is not correctly configured).

What should i do??

Regards
Sanjith


Top
 Profile  
 
PostPosted: Mon Jun 29, 2009 9:20 am 
Offline
Forum Contributor

Joined: Thu Jun 11, 2009 5:32 am
Posts: 105
Location: Essex


Top
 Profile  
 
PostPosted: Tue Jun 30, 2009 12:13 am 
Offline
Forum Newbie

Joined: Sat Jun 27, 2009 11:51 pm
Posts: 3
How do i start mysql manually??


Top
 Profile  
 
PostPosted: Tue Jun 30, 2009 12:51 am 
Offline
DevNet Master
User avatar

Joined: Wed Jun 27, 2007 9:44 am
Posts: 4313
Location: Sofia, Bulgaria

_________________
There are 10 types of people in this world, those who understand binary and those who don't


Top
 Profile  
 
PostPosted: Fri Aug 14, 2009 5:25 pm 
Offline
Forum Newbie

Joined: Fri Jul 17, 2009 1:15 am
Posts: 18

_________________
AccuWebHosting.Com - Windows VPS Hosting
ASP.NET 3.5 | SQL 2005 Database | US Based Hosting Company | 24 X 7 Support | Daily Backups | Uptime Guarantee | Affiliates - $50 Per Sale |
|


Top
 Profile  
 
PostPosted: Fri Sep 11, 2009 6:34 pm 
Offline
Forum Commoner

Joined: Wed Jul 01, 2009 3:35 am
Posts: 82
Location: Mumbai


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group