HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   User conflict with ISPConfig and apache (http://www.howtoforge.com/forums/showthread.php?t=42751)

JimXL 17th January 2010 16:49

User conflict with ISPConfig and apache
 
I installed phpwebgallery and set the user and group recursively to the same owner as all the other files/directories in /var/www/web1/, thinking that would make things work right. However I finally discovered that httpd runs as apache.apache which broke the phpwebgallery. Once I changed everything over to user apache, it all started to work.

My question is, have I configured something wrong?

Second question concerns email. I'm seeing this in the maillog

Jan 17 10:15:31 server postfix/smtp[3052]: 3A33A27579C: to=<web4_president@server.localdomain>,
orig_to=<president@fc-arc.org>, relay=none, delay=0.38, delays=0.29/0.08/0.01/0, dsn=5.4.4, stat
us=bounced (Host or domain name not found. Name service error for name=server.localdomain type=A
: Host not found)

My host name is set to www (hostname command, /etc/hostname and in the /etc/hosts file it is
cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
208.93.233.148 www.fc-arc.org

I have no idea where it is getting a host name of server. Again, I guess I've got something configured wrong.

Suggestions welcome.

This is a Centos 5.4 system installed following the howo perfect system guide.

Jim.

till 18th January 2010 09:20

This is caused by mod_php as mod_php does not support to run php under a different user then the apache user. If you want to run php scripts under the user of the website, use suphp:

http://www.howtoforge.com/install-su...2.20-and-above

JimXL 19th January 2010 13:17

Quote:

Originally Posted by till (Post 216657)
This is caused by mod_php as mod_php does not support to run php under a different user then the apache user. If you want to run php scripts under the user of the website, use suphp:

http://www.howtoforge.com/install-su...2.20-and-above

OK, thanks. I'm surprised that isn't included in the ISPConfig install instructions or something.


Screw it, I'm backing ISPConfigure out and starting over. I thought this would be easier than rolling my own virtual hosts, it's not.

Jim.

till 19th January 2010 15:01

Quote:

OK, thanks. I'm surprised that isn't included in the ISPConfig install instructions or something.
Thats simple. Solutions like suphp that have to switch the user are slower then mod_php. I run a lot of cms systems with mod_php, so there is no real reason. You just have to make the upload directory of the cms writable to the apache user.


All times are GMT +2. The time now is 11:33.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.