Apache+Php

Discussion regarding the installation and configuration of Linux distributions.
Post Reply
sapheroth
Lance Naik
Posts: 19
Joined: Fri Sep 15, 2006 12:25 pm

Apache+Php

Post by sapheroth »

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.
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

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?
sapheroth
Lance Naik
Posts: 19
Joined: Fri Sep 15, 2006 12:25 pm

Post by sapheroth »

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
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

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.
MAJID
Naik
Posts: 90
Joined: Thu Oct 16, 2003 10:23 pm
Contact:

Post by MAJID »

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
sapheroth
Lance Naik
Posts: 19
Joined: Fri Sep 15, 2006 12:25 pm

Post by sapheroth »

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.
Zaheer
Battalion Havaldaar Major
Posts: 286
Joined: Fri Oct 17, 2003 12:15 am
Location: Karachi
Contact:

Post by Zaheer »

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
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

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
sapheroth
Lance Naik
Posts: 19
Joined: Fri Sep 15, 2006 12:25 pm

Post by sapheroth »

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

Post by sapheroth »

i also tried the code that was mentioned in LAMP website mentioed by "LinuxFreaK" but getting the same error... :cry:
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear sapheroth,
Salam,

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

Best Regards.
Farrukh Ahmed
sapheroth
Lance Naik
Posts: 19
Joined: Fri Sep 15, 2006 12:25 pm

Post by sapheroth »

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

Post by sapheroth »

any help brothers... :(
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

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
Post Reply