Build WordPress website on a CentOS 6.5 server.
-
@scottalanmiller said:
You can test PHP mail with this...
<? $headers = 'From: [email protected]'; mail('[email protected]', 'Test email using PHP', 'This is a test email message', $headers, '[email protected]'); ?>
I did this for a test before seeing your message
-
Okay, well that test tells us that there is a PHP issue rather than a WordPress issue.
-
@scottalanmiller said:
I just did the install and it "just installed." It didn't request an FTP server or anything like that. None of that dialogue came up. It installed Make instantly with zero fuss. This is a nearly ten year old install.
Do you, perhaps, not have the entire WordPress directly owned by apache:apache?
No I do not. I made these directories myself after apache was installed a year ago.
I then dropped WP into one of them. Let me go fix that. -
@JaredBusch said:
@scottalanmiller said:
I just did the install and it "just installed." It didn't request an FTP server or anything like that. None of that dialogue came up. It installed Make instantly with zero fuss. This is a nearly ten year old install.
Do you, perhaps, not have the entire WordPress directly owned by apache:apache?
No I do not. I made these directories myself after apache was installed a year ago.
I then dropped WP into one of them. Let me go fix that.Ah, that is quite likely to cause that FTP problem. If it can't save the file itself, it will ask for an alternative method of transferring the file. It's a fallback method to make it easier for people to use on uncontrolled hosting platforms.
-
Here are the PHP packages from my working system.....
-bash-4.1$ rpm -qa | grep -i php
php-mbstring-5.3.3-27.el6_5.x86_64
php-pecl-apc-3.1.9-2.el6.x86_64
php-pdo-5.3.3-27.el6_5.x86_64
php-gd-5.3.3-27.el6_5.x86_64
php-xmlrpc-5.3.3-27.el6_5.x86_64
php-pecl-memcache-3.0.5-4.el6.x86_64
php-common-5.3.3-27.el6_5.x86_64
php-mysql-5.3.3-27.el6_5.x86_64
php-xml-5.3.3-27.el6_5.x86_64
php-mcrypt-5.3.3-3.el6.x86_64
phpMyAdmin-3.5.8.2-1.el6.noarch
php-pear-1.9.4-4.el6.noarch
php-5.3.3-27.el6_5.x86_64
php-tidy-5.3.3-27.el6_5.x86_64
php-php-gettext-1.0.11-3.el6.noarch
php-PHPMailer-5.2.2-1.el6.noarch
php-cli-5.3.3-27.el6_5.x86_64 -
@scottalanmiller well quite a difference..
[root@web ~]# rpm -qa | grep -i php
php-pecl-memcache-3.0.5-4.el6.i686
php-pear-1.9.4-4.el6.noarch
php-cli-5.3.3-27.el6_5.i686
php-pspell-5.3.3-27.el6_5.i686
php-common-5.3.3-27.el6_5.i686
php-gd-5.3.3-27.el6_5.i686
php-snmp-5.3.3-27.el6_5.i686
php-xmlrpc-5.3.3-27.el6_5.i686
php-devel-5.3.3-27.el6_5.i686
php-mysql-5.3.3-27.el6_5.i686
php-xml-5.3.3-27.el6_5.i686
php-5.3.3-27.el6_5.i686
php-pdo-5.3.3-27.el6_5.i686
[root@web ~]# -
I have no idea how I installed PHP a year ago. Just a basic setup I am certain as my old static site did not even use PHP except for a couple test scripts. So moving forward.
chown -R apache:apache daerma.com and all better on that front.
-
Do you have the EPEL setup?
-
@scottalanmiller i do now. just did that actually.
-
php-PHPMailer also installed php-mbstring. but still no mail. so i'll just go through and match all your php items then try again
-
got distracted talked to my family..
from /var/log/httpd/error_log: sendmail: fatal: chdir /var/spool/postfix: Permission denied
THink there be the problem. -
one command later...
setsebool -P httpd_can_sendmail onall working.
-
Ok, I am using the same version as you, but when I click install theme, it automatically installs.
-
@JaredBusch said:
one command later...
setsebool -P httpd_can_sendmail onall working.
odd, I've never had to do that one before.
-
@technobabble said:
Ok, I am using the same version as you, but when I click install theme, it automatically installs.
Yeah... we got that fixed already Folder perms.
-
@scottalanmiller One of the many differences when installing on a standard linux server vs one with cPanel installed!
-
@technobabble said:
@scottalanmiller One of the many differences when installing on a standard linux server vs one with cPanel installed!
How email works?
-
@scottalanmiller none of the issues show up when you use cPanel to slice out space on the server for the users domain along with tools. With the standard install of WordPress I don't have to change permissions. Now with Joomla, Zen Cart, and I belive vBulletin, there usually many permission changes to be made.
-
@technobabble said:
@scottalanmiller none of the issues show up when you use cPanel to slice out space on the server for the users domain along with tools. With the standard install of WordPress I don't have to change permissions. Now with Joomla, Zen Cart, and I belive vBulletin, there usually many permission changes to be made.
It's a single change. You download as root and chown to Apache when you deploy it. That's all.
-
Well my site is working well, so now it is time for content..