LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 05-04-2008, 11:42 AM   #1
abc27
LQ Newbie
 
Registered: Apr 2008
Posts: 12

Rep: Reputation: 0
moving apache, php and mysql and webmin


Ok so i have my entire webserver setup i.e. apache, mysql, proftpd, webmin, php5 (Basically i have XAMPP installed) in my root folder under /opt but now i have realised my root folder is full since its only partitioned to 2gb.

How would i move all of this from /opt to /home/abc without disrupting anything?

The site is not live yet so downtime isnt too much an issue.
 
Old 05-04-2008, 01:14 PM   #2
JSkywalker
Member
 
Registered: Aug 2007
Distribution: openSUSE 12.1
Posts: 82

Rep: Reputation: 22
somehting like this...

edit: MAKE a BACKUP first

stop the services, and move all files to the new location (as root)
Code:
stop xxamp
mkdir /home/abc/opt
mv /opt/* /home/abc/opt
try to find references to 'opt' in your web-root...
Code:
# find any references to /opt (change files that have references!)
cd /home/abc/opt
grep -lir '/opt/' *
try to find references to 'opt' in your config-files...
Code:
# find any config files with references to /opt (change files that have references!)
cd /etc/apache2
grep -lir '/opt/' *

Last edited by JSkywalker; 05-04-2008 at 01:15 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
php/shell script to install mysql,apache and php automatically stranger_6_7 Linux - General 2 08-11-2009 02:07 AM
Apache 2 Configuration in Webmin -- and PHP support vharishankar Linux - General 4 02-10-2005 04:06 AM
Access MySQL, Webmin, Tomcat, Apache treotan Linux - Newbie 1 12-04-2004 04:22 PM
Apache Qs: Moving Document Root and PHP with Apache2 larsenmtl Linux - Networking 3 09-29-2004 08:31 AM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 08:59 PM


All times are GMT -5. The time now is 08:23 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration