Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Testing Latest Version (error)
#18
(02-26-2017, 03:19 PM)joebordes Wrote: first thing to look at is phpinfo

create a script inside the webserver root with this contents:


PHP Code:
<?php phpinfo(); ?>



now call that page in the browser.

search on that page for imap, that is where you need to have php-imap support, this is usually installed in the operating system, probably somthing like



Code:
yum install php-imap


Code:
short_open_tag = On

although this setting is really not important. after you make a change to php.ini you have to rester apache server:



Code:
apache2ctl restart


you can find the exact location of the php.ini file in the phpinfo output, search for "Loaded Configuration File"

as for the permissions look in the phpinfo for "User/Group" under the apache handler section, that will tell you who the files have to be assigned to. I am supposing that centos has a rather strict permission system and it won't let apache read files assigned to root. Try changing the owner of the files and directories to the webserver user

Finally, that PHP version is rather old, I would recommend a php5.6 or higher if possible.

Keep asking....

Hi Joe,

I finally got PHP upgraded tol 5.6, however there is no php-imap package. To get 5.6 on CentOS 7.3 I had to enable the epel-release repo and IUS repo.

As I mentioned before the web server directory root: /var/www/html and everything under that is owned by apache:apache. Current permissions are set all the way down through the tree to 775:
Code:
[root@merlin cbostest]# ls -l config.inc.php

-rwxrwxr-x. 1 apache apache 0 Feb 10 19:14 config.inc.php
[root@merlin cbostest]# ls -l tabdata.php 
-rwxrwxr-x. 1 apache apache 1967 Feb 10 19:14 tabdata.php
[root@merlin cbostest]# ls -l install.php 
-rwxrwxr-x. 1 apache apache 1820 Feb 10 19:14 install.php

That is just a small example of the permissions settings. I've done lots of Apache web servers and I can't remember ever running into something like this.

Apache is setup to run as apache (user) apache (group) and since this is the case I'm at a total lost as to why I'm seeing the program install check returning information to the screen that claims the file permissions need adjusted. I though perhaps there was something odd with Apache's configuration but while I've been comparing the differences between the old and new server config files I don't see any real differences.
Mark

[i]If I could work while on horseback that's where I'd be doing it. There's nothing like riding... Gives new meaning to the phrase, ride to live... live to ride.[/i]
Reply


Messages In This Thread
Testing Latest Version (error) - mweaver - 02-11-2017, 01:58 PM
RE: Testing Latest Version (error) - mweaver - 02-26-2017, 08:13 PM

Forum Jump:


Users browsing this thread: 5 Guest(s)