LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 09-05-2014, 01:40 PM   #16
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled

Quote:
Originally Posted by rjo98 View Post
going under the impression I can skip MySQL.... I didn't get the email
If your PHP site uses or will use a mysql database, you'll need this package.
Where was the email supposed to "go"? Local or off-host?

CentOS version...?

I agree with unSpawn, your progress is very commendable.
 
1 members found this post helpful.
Old 09-05-2014, 01:45 PM   #17
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
The only php I could find so far was all for forms that just send an email of the form data to different folks. So, at least at this point, I'm going to see if I can get by without install MySQL on the new server.

Looks like sendmail is timing out talking to my mail relay, off host, from my virtual machine. But I figure that's a lot easier of an issue to tackle, if it's even still an issue, once i'm on the real server. For how my attempt at xampp was going, the fact that it's actually logging something in there is a big step.

CentOS 6.5

Thanks guys, I'd still be banging my head against a wall if it weren't for you two.

Shortly here i'm going to try to kill my xampp disaster, then install apache and php and see where that gets me.
 
Old 09-05-2014, 02:17 PM   #18
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
My two test php forms work PERFECTLY on the real server!!!

Question though on what you think is the best way to get the actual html, php, jpgs, etc out of the existing xampp and into /var/www/html on the new server? I know unSpawn said rsync the docroot over, but I'm almost afraid of how much useless stuff I'd be bringing over (they don't have a real good inventory/idea of what's still in use and what's not).

Should I really just copy it all over and see what happens? Is there a program that could crawl the main 'homepage' of it and see what's still used, that would include any .php .jpg .whatever files with it, then I could move that over? I'm not sure what the best practice is in this situation, so just looking for opinions here.

I still can't get over how much easier the "right way" is haha
 
Old 09-05-2014, 03:18 PM   #19
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by rjo98 View Post
Looks like sendmail is timing out talking to my mail relay, off host, from my virtual machine.
Probably the "real server's" IP is in either a firewall rule that allows that IP or in the "trusted hosts" directive of the receiving server's mail service configuration.

Hard to tell. You could try telnet <mailrelay_ip> 25 and see what's what...
Can you send mail from the VM's host (not the guest) to the mail relay?

I'd copy everything over unless space is an issue.
 
1 members found this post helpful.
Old 09-05-2014, 03:21 PM   #20
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
You're probably right about the trusted IP thing.

Yeah, I'm thinking about just copying everything, that way it's all there, even if most of it is garbage at this point. Guess I'll just do an rsync of the folder containing all the files on the old server, and have it duplicate that folder under /var/www/html then.
 
Old 09-05-2014, 03:40 PM   #21
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
if you can
Code:
telnet <mailrelay_ip> 25
to offer a prompt on the host, you could install postfix on the guest and use the Smarthost configuration to send mail to the mail_relay.
 
1 members found this post helpful.
Old 09-05-2014, 03:41 PM   #22
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
OK, I will give it a shot later.
 
Old 09-12-2014, 02:19 PM   #23
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
Hey guys. Kinda related to this but definitely off topic from my first post, but I'm going to ask.

So now that I have a fancy, non-lampp web server with sendmail working with my php forms, how do I back this thing up? haha
 
Old 09-12-2014, 05:20 PM   #24
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
define "up"... please.

Glad to see you're making progress!
 
Old 09-12-2014, 05:44 PM   #25
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
Got everything working on the new server!
But I'm not sure about backing it up. Is there an "official" way or do I just rsync some folders?
 
Old 09-13-2014, 06:21 AM   #26
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
doh, I definately mis-read "back this thing up" for backup. Long day.
rsync is my choice.
 
1 members found this post helpful.
Old 09-13-2014, 07:37 AM   #27
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
No problem. Ok. I'll just setup rsyncs of the stuff. Do I need to stop processes first or you think I can skip doing that jazz.
 
Old 09-13-2014, 09:17 AM   #28
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Really depends on how much writing is going on in the directories you wish to backup.
 
1 members found this post helpful.
Old 09-15-2014, 07:56 AM   #29
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
Very, very minimal, and not at the hours i'd be running the rsync.

I was thinking of backing up /var/www and then /etc. For what I'm doing, do you think that covers it?
 
Old 09-15-2014, 09:35 AM   #30
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
I'd use something like this:
Code:
#!/bin/bash
tar -pczf /path/to/storage/backup_name_$(date +%F).tar.gz /var/www/site1 \
/var/www/site2 /etc/apache2/sites-enabled/000-default /etc/apache2/sites-enabled/other_site
#EOF
/var/www/siteX may be /var/www/html/siteX and /etc/apache2/sites-enabled/000-default would be your path to the apache conf files for any sites included in the backup.
 
1 members found this post helpful.
  


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
Simpler alternative to PHP to handle email form? littlebigman Linux - Software 7 12-06-2013 08:32 AM
Have Apache send email when my website is accessed? dilettante9 Linux - Server 4 06-25-2012 12:08 PM
[SOLVED] How to find URL for xampp website on my server anon091 Linux - Newbie 2 03-02-2010 09:01 AM
Migrating from Lotus Domino Email Server 6.5 to Linux email Server sailu_mvn Linux - Software 0 08-22-2006 11:04 PM
PhP Problems (email form) webwolf70 Programming 5 10-14-2005 05:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:43 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