PDA

View Full Version : The Perfect Server - Ubuntu Hardy Heron


SamTzu
11th May 2008, 22:09
I'm getting errors like this in /var/log/apache2/error.log

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/imagick.so' - libMagick.so.9: cannot open shared object file: No such file or directory in Unknown on line 0

Anyone know what thats about?

The file seems to be there...
/usr/lib/libMagick.so.10 -> libMagick.so.10.0.9

falko
12th May 2008, 21:14
You can try to find the package that contains libMagick.so.9 with apt-file: http://www.howtoforge.com/apt_file_debian_ubuntu

SamTzu
15th May 2008, 07:49
Hi, all.
I'm having strange problems with the new server.
Joomla keeps complaining about folder permissions.
It sayz that user doesnt not have rights to write to the folder though that is not so.

I know I should remember this but I can't. Was there some umask setting somewhere that I still need to fix?

Or is this related to my attempt to replace the /tmp folder with a new virtual drive.
Should the ISPConfig temp files there look like this..?
ls -hal /tmp
-rw------- 1 root root 0 2008-05-14 00:27 sess_0ddd1fde2e6d46db67b054cf968f4311

cat /etc/fstab
/dev/sdc1 /tmp ext3 rw, 0 0

geareddesign
15th May 2008, 20:28
I am new to setting up Ubuntu and LAMP web server. I would like to create a local web server only (no access from outside world) to use as a development environment. Is there anything special I should do during the install/set-up process to ensure that the sever is restricted to only my local network. I assume that the steps in the process shown on the HOWTO opens the server up to the www, but I could be wrong.

Thank you in advance for any guidance you have to offer.

~ Misty

falko
16th May 2008, 15:58
It sayz that user doesnt not have rights to write to the folder though that is not so.

What are the permissions and owners of these folders?
Are you using suPHP? Did you disable AppArmor?

falko
16th May 2008, 15:59
I am new to setting up Ubuntu and LAMP web server. I would like to create a local web server only (no access from outside world) to use as a development environment. Is there anything special I should do during the install/set-up process to ensure that the sever is restricted to only my local network. I assume that the steps in the process shown on the HOWTO opens the server up to the www, but I could be wrong.

Thank you in advance for any guidance you have to offer.

~ Misty
Hi Misty,

please open a new thread for this - otherwise this one will be too confusing.

geareddesign
16th May 2008, 17:26
please open a new thread for this - otherwise this one will be too confusing.

Sorry, by the title I assumed this was about all questions regarding the "The Perfect Server - Ubuntu Hardy Heron" HOWTO.

Started new post at: http://www.howtoforge.com/forums/showthread.php?p=124969#post124969

SamTzu
16th May 2008, 18:25
Permissions and users seem to be correct.
Folder permissions are drwxr-xr-x in Joomla dir.

I disabled the AppArmor and I use suExec.
I also see this folder exists...
/home/admispconfig/ispconfig/tools/suphp

How do I know if ISPConfig is using suPHP?
I remeber something about suPHP suExec not working well togerher?
Is this still true?

I'm pretty sure this is about su/chrooted problem.
Joomla complains about the right to write to configuration.php file though the user has those rights.
So it must be www-data user that has problems then, right?

Sam

falko
17th May 2008, 00:36
Can you post the vhost configuration for that web site from Vhosts_ispconfig.conf? Then I can see whether you're using suPHP or not.

SamTzu
18th May 2008, 17:30
Doesnt look like suPHP is used.

root@server26:/home/administrator# cat /etc/apache2/vhosts/Vhosts_ispconfig.conf
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
</VirtualHost>
#
#
#
######################################
# Vhost: www.linustila.fi:80
######################################
#
#
<VirtualHost 217.25.105.35:80>
SuexecUserGroup linus.tila web2
ServerName www.linustila.fi:80
ServerAdmin webmaster@linustila.fi
DocumentRoot /var/www/web2/web
ServerAlias linustila.fi
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
Alias /cgi-bin/ /var/www/web2/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web2/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode Off
<IfModule mod_ruby.c>
<Directory /var/www/web2/web>
Options +ExecCGI
</Directory>
RubyRequire apache/ruby-run
#RubySafeLevel 0
<Files *.rb>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
</IfModule>
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Alias /error/ "/var/www/web2/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web2/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web2/user/$1/web/$3
</VirtualHost>

I dont see any suphp lines here...

SamTzu
18th May 2008, 19:44
It does not seem to be suExec.
I disabled it and normal user still cant edit configuration.php in Joomla.
If I login as a user using SSH I can manually configure configuration.php using vi.
So its somewhere between apache-php (or maybe chroot)

SamTzu
18th May 2008, 20:39
Ok. I have finally tracked the problem to suPHP.
I remembered reading about this some years back, and true enough after some digging I found this (http://www.howtoforge.com/forums/showthread.php?t=20062) article.

After changing the umask to 0022 Joomla still does not work correctly.

What am I still missing?

Edit<I can't figure it out So I gave up and just use the ftp mode in Joomla.>

SamTzu
22nd May 2008, 00:44
I'm wondering if someone could update this article a litle bit.
http://www.howtoforge.com/apache2_suphp_php4_php5_p3
<EDIT> Found it here...
http://www.howtoforge.com/install-suphp-on-various-linux-distributions-for-use-with-ispconfig-2.2.20-and-above

I'm particularly interested in how this relates to Ubuntu 8.04 LTS and ISPConfig.

Installing the suphp was not difficult.

apt-get install libapache2-mod-suphp
If I try to Set ISPConfig to "suphp" then I get the Vhosts_ispconfig.conf dissapearing problem.

If I dont set it I get problems with user rights.

What did the man say? Ah yes...
"Your damned if you do, your damned if you dont."

falko
22nd May 2008, 13:24
If I try to Set ISPConfig to "suphp" then I get the Vhosts_ispconfig.conf dissapearing problem.

What's the output of ls -la /etc/apache2/vhosts?

volkswagner
23rd May 2008, 01:23
I am not sure if this was a fluke but I am not alone.

Thank you for writing such a comprehensive guide. It makes a newbie like me, able to dive into servers.

I had one issue during the bind9 setup. When restarting bind9 I got an error. It seems there is another service which needs to be restarted. I was able to get it working with a restart of the system. I found another user with the same issue.

You can see the details here.

http://ubuntuforums.org/showthread.php?t=800471

cheers, and thanks again.

Eric

SamTzu
26th May 2008, 18:08
Got it working after reinstalling the suphp just like in the newer suphp guide.