Migrating xampp website, but php form doesn't send email from new server
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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.
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.
/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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.