Apache+Php

Discussion regarding the installation and configuration of Linux distributions.

Apache+Php

Postby sapheroth » Mon Feb 26, 2007 2:41 pm

a.a.
i m given a task to create a webpage for LAN users. where they can put their daily routine tasks(in single page only) in short words. the page is accessed by a username and password...
i m downloading PHP and Apache packages but dont know where to start.plz guide me how to start and complete this task.....

i'll b thankful to u...

A.H.
sapheroth
Lance Naik
 
Posts: 19
Joined: Fri Sep 15, 2006 12:25 pm

Postby lambda » Mon Feb 26, 2007 3:06 pm

do you need help configuring apache and php? or do you need help writing php code?

you will probably need a database to store whatever the users enter into the form. do you have postgresql or mysql installed?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Postby sapheroth » Mon Feb 26, 2007 4:09 pm

thanx for your responce...
i havent installed anything yet.....
plz guide me which software do i need to install???
also i want only one username with p/w to access this page...
i m using RH9 for this purpose...
thanx
sapheroth
Lance Naik
 
Posts: 19
Joined: Fri Sep 15, 2006 12:25 pm

Postby lambda » Mon Feb 26, 2007 4:13 pm

i will not help you with redhat 9. upgrade to something newer. most recent distributions prepackage apache+php.

you wanted guidance, well, there you have it.
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Postby MAJID » Tue Feb 27, 2007 1:50 am

Hello.
Well you do not need to download packages all you need are in the 3
CDs of Redhat 9
Go to redhat package manager. Add Remove Programs.
Look for something like server packages. Install Apache, PHP and all related stuff related to PHP and Apache(httpd). Also install MySQL server packages
along with PHP/MySQL extention.

1. First you have to create a database roughly there would be two tables.
auth table (username, password)
daily_data table (username, data, date)
2. Then you can create the php script that will authinticate using MySQL db
and save the session for particular user. Then the user will save the data
on daily basis.

It is very simple Add. Update and Insert PHP/MySQL application as far as i got from you.
01101101 01100001 01101010 01101001 01100100
MAJID
Naik
 
Posts: 90
Joined: Thu Oct 16, 2003 10:23 pm
ICQ: 269695850

Postby sapheroth » Tue Feb 27, 2007 2:48 pm

a.a.
thenk u for your help brothers.
a little more....i want to know that is there any software of utility for linux that can do this job. i mean that can create a small database and can connect it with php page.
regards.
sapheroth
Lance Naik
 
Posts: 19
Joined: Fri Sep 15, 2006 12:25 pm

Postby Zaheer » Tue Feb 27, 2007 4:04 pm

As you said before that you are given that task so do it yourself.try to use LAMPIXX which is a whole LAMP live distro(Linux+Apache+MySQL+PHP).
Good Judgement comes from Experience and Experience comes from bad Judgement!!
The more I know, the more I realize I don't know!?
The easiest way to find out is to try Out!!!

Registered Linux user #333501
Zaheer
Battalion Havaldaar Major
 
Posts: 284
Joined: Fri Oct 17, 2003 12:15 am
WLM: zaheermb20@hotmail.com
Yahoo Messenger: zaheermb2002@yahoo.com
Location: Karachi

Re:

Postby LinuxFreaK » Tue Feb 27, 2007 6:00 pm

Dear sapheroth,
Salam,

Better if you can learn how to install and configure these applications. If you do not have time then go with Zaheer option.

FYI, http://www.lamphowto.com/lampssl.htm and http://www.lamphowto.com/lamp.htm

Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Postby sapheroth » Wed Feb 28, 2007 1:21 pm

i m trying to install and configure all the stuff from the site

http://hostlibrary.com/installing_apach ... p_on_linux

i installed and configured apache as the site stated but when i try to configure mysql from the this code

"./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --disable-maintainer-mode --with-mysqld-user=mysql --enable-large-files-without-debug"

i get this msg and the configuration process stops.

[root@feedback mysql-5.0.27]# Starting mysqld daemon with databases from /usr/local/src/mysql-5.0.27/data
STOPPING server from pid file /usr/local/src/mysql-5.0.27/data/feedback.pid
070228 13:16:52 mysqld ended

plz guide me how to configure mysql.
thanx
sapheroth
Lance Naik
 
Posts: 19
Joined: Fri Sep 15, 2006 12:25 pm

Postby sapheroth » Wed Feb 28, 2007 1:44 pm

i also tried the code that was mentioned in LAMP website mentioed by "LinuxFreaK" but getting the same error... :cry:
sapheroth
Lance Naik
 
Posts: 19
Joined: Fri Sep 15, 2006 12:25 pm

Re:

Postby LinuxFreaK » Thu Mar 01, 2007 9:13 am

Dear sapheroth,
Salam,

Can you post your my.cnf or the way you are trying to start mysql daemon.

Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Postby sapheroth » Thu Mar 01, 2007 10:42 am

ok i m sending my.cnf file....
but i told you that i m just following those two websites and didnt put any code other than mentioned in these websites.

the my.cnf file states

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock

[mysql.server]
user=mysql
basedir=/var/lib

[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
~
~
~
~
~
~
~
~
~
~
"/etc/my.cnf" 11L, 193C
sapheroth
Lance Naik
 
Posts: 19
Joined: Fri Sep 15, 2006 12:25 pm

Postby sapheroth » Fri Mar 02, 2007 3:12 pm

any help brothers... :(
sapheroth
Lance Naik
 
Posts: 19
Joined: Fri Sep 15, 2006 12:25 pm

Re:

Postby LinuxFreaK » Sat Mar 03, 2007 10:56 am

Dear sapheroth,
Salam,

How you are starting mysql daemon ?

use mysqld --defaults-file=/path/to/your/my.cnf and make sure you have /var/lib/mysql exists with user and group owner ship from which you are running mysql server. normally it will be run by mysql user and mysql group.

Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi


Return to “%s” Installation

Who is online

Users browsing this forum: No registered users and 1 guest

cron