LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-25-2011, 04:23 AM   #1
bhanu055
LQ Newbie
 
Registered: Jul 2011
Posts: 1

Rep: Reputation: Disabled
Red face i have small project of php script and mysql database, want to configure in .deb file


hello everyone
i want to make deb package with samll project of php and myysql database such as login.php, index.php controll.php etc and database_name.sql . when i install this deb package my php script folder should go in /var/www file
and databse should create automatically.
i edit the control file of deb package , in depends line i set apache2, php and mysql because these three thing are necessary to run my script till here it is ok .
but i am not able to send my project in /var/www and configure database automatically . i think for this i have to write .sh file but i dont know bash scripting . can anyone help me
and provide me step by step making of deb file with small project of php and mysql database
 
Old 07-25-2011, 10:25 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Frankly, I'd just put your .php scripts, .sql initialization script and an explanatory "readme.txt" - with instructions for installing manually - into a compressed tar file (.tgz or .bz2).

But if you really want to learn how to create a .deb package, here's a great tutorial:

http://www.debian.org/doc/manuals/maint-guide/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot get my php script to UPDATE mysql database countrydj Linux - Software 2 04-11-2011 09:09 PM
Cannot connect to mysql database using php script shan_nathan Programming 4 10-17-2008 11:58 PM
LXer: Backing up your MySQL database using your web browser and a PHP script LXer Syndicated Linux News 0 04-21-2007 10:16 PM
PHP Script for Importing vCards into a MySQL Database? amocjr Linux - Software 1 01-20-2007 03:54 PM
need to get data from xml file to MySQL database, and then use php to access Armon Linux - General 1 01-18-2006 02:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration