Skip to main content

LAMP - Open Source Experiments

LAMP (Linux, Apache, MySQL, Perl) configuration on OpenSUSE Linux 10.0.

Here is some useful information :

The configuration files are in
/etc/apache2/

I had to create an empty file named include.conf in /etc/apache2/sysconfig.d
Else 'httpd2 -k start' (the way you need to start the daemon) was giving an error.

HTML files and other stuff like images go by default into :
/srv/www/htdocs
CGI files in /srv/www/cgi-bin


Also did some experimentation with 'mysql' based on info that I had got from the LFY magazine.
First installed the mysql server. Then the following commands to craete and update databases.

linux:~ # mysqladmin -u root -p XXXXX

linux:~ # mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2 to server version: 4.1.8-standard

mysql> create database testdb;
Query OK, 1 row affected (0.17 sec)

mysql> show databases
->
-> ;
+----------+
Database
+----------+
mysql
test
testdb
tmp
+----------+
4 rows in set (0.07 sec)

mysql> use testdb;
Database changed

mysql> create table registration ( memid int not null primary key, name varchar(20),
emailID varchar(30), Location varchar(25));
Query OK, 0 rows affected (0.06 sec)

mysql> describe registration
-> ;
+----------+-------------+------+-----+---------+-------+
Field Type Null Key Default Extra
+----------+-------------+------+-----+---------+-------+
memid int(11) PRI 0
name varchar(20) YES NULL
emailID varchar(30) YES NULL
Location varchar(25) YES NULL
+----------+-------------+------+-----+---------+-------+

mysql> insert into registration values(1,'Surendranath Boral','suboral@gmail.com',
'Jayanagar Bangalore');
Query OK, 1 row affected (0.04 sec)

mysql> select * from registration
-> ;
+-------+--------------------+-------------------+---------------------+
memid name emailID Location
+-------+--------------------+-------------------+---------------------+
1 Surendranath Boral suboral@gmail.com Jayanagar Bangalore
+-------+--------------------+-------------------+---------------------+
1 row in set (0.07 sec)

mysql> quit
Bye

Another thing:
Kaffeine gives this problem and doesnt play any mp3 or video by default
WIN32 Codecs...
No WIN32 codecs found in /usr/lib/win32. You're not able to play Windows Media 9 files,
newer Real Media files and some less common formats.

Comments

Popular posts from this blog

IIMB PGSEM Star of the Quarter

From the PGSEM Student Affairs Council (SAC) Indian Institute of Management, Bangalore: Star of the Quarter Award is given to an individual who has significantly contributed to PGSEM community through extra curricular activities in an academic quarter, as part of various activities done by PGSEM-SAC and committees. SAC members will nominate significant contributors for the Award and the voting will be conducted among the current batches to decide the Star along with SAC members' points. SAC member is not eligible to be nominated for this award.   You will be getting a mail on voting for Star of the Quarter - Q3 2008-2009. Please take your time to vote for and decide the Star.   A voting happened (to decide amongst 11 equally strong and capable contestants) and guess what? I polled 32.65% of the votes and yes  I won!!  My immense gratitude towards one & all who felt I was worth it!! It takes an institute of IIMB's stature and star students to recognize a STAR! :D Also have t...

IIMB PGSEM SOP Essays.

The IIMB PGSEM application for 2008 had a SOP section which required 5 short essays to be written. Here are the ones I had written: Statement of Purpose How do you see the PGSEM helping you in your goals? (150 words) My taking up the PGSEM course has twin objectives, namely, self-development and learning all aspects of setting up, managing a commercial/social enterprise. Having worked in the software industry for five years, I have closely seen the software development life-cycle. However, there are several aspects of business and the economy that are of interest to me and I find the time ripe to explore these in a formal way, through academics; specifically strategic management of a firm, innovation strategies, and the scope of strategic consulting. Getting ready to usher in acceleration in growth opportunities in my care...

Quantum Contrapt - Part 01

First short story in the 'CSlueth files' series.  Note: This is purely a work of fiction! 1. The dead body  Wednesday, Chalmers tekniska hogskola, 6:30 PM  He had just walked out of the classroom in the V building. For the past forty five minutes he had been coding an exciting dynamic systems simulation after having completed a late and rather boring simulation exercises session class. He had to take the road in front of the Chalmers Bibliotek library as he wanted to meet a friend staying nearby. As he walked past the Information Sciences department building there was a gust of cold winter wind that struck his face and he raised the collars of this jacket, sinking in his chin into its warm, furry interiors. It was December and it would get dark really early. It was dark now and hardly anyone else around.   He hummed a tune as he ran up the flight of stairs, the library was at an elevated level from the V building. He found himself humming some r...