Project

General

Profile

Troubleshooting the Web Server Shared » History » Version 4

Amber Herold, 03/05/2014 10:39 AM

1 2 Amber Herold
h1. Troubleshooting the Web Server:
2 1 Amber Herold
3
4 2 Amber Herold
h4. Run the web server troubleshooter
5 1 Amber Herold
6
A web server troubleshooting tool is available at http://YOUR_HOST/myamiweb/test/checkwebserver.php.
7
You can browse to this page from the Appion and Leginon Tools home page (http://YOUR_HOST/myamiweb) by clicking on [test Dataset] and then [Troubleshoot].
8
9
This page will automatically confirm that your configuration file and PHP installation and settings are correct and point you to the appropriate documentation to correct any issues.
10
11
12
13
h4. Firewall settings 
14
15
You may need to configure your firewall to allow incoming HTTP (port 80) and MySQL (port 3306) traffic:
16
17
<pre>
18
$ system-config-securitylevel
19
</pre>
20
21
h4. Security-enhanced linux 
22
23
"Security-enhanced linux (SELinux)":http://en.wikipedia.org/wiki/Security-Enhanced_Linux  may be preventing your files from loading. To fix this run the following command:
24
25
<pre>
26
$ sudo /usr/bin/chcon -R -t httpd_sys_content_t /var/www/html/
27
</pre>
28
29
see "this website":http://docs.fedoraproject.org/selinux-apache-fc3/sn-simple-setup.html  for more details on SELinux
30 3 Amber Herold
31
h4. Slow image loading
32
33
If you find that you have many users viewing images, and the images are taking too long to load, there are several ways to address this.
34
35
# [[leginon:Alternative reduxd installation on file server]]
36
# [[leginon:Using imcache to cache mrc images as jpeg images of the default size on myamiweb]]
37 4 Amber Herold
38
h4. Web server does not inform user when login credentials are incorrect
39
40
If you try to run a job directly from the web gui, and the job fails without providing a message, check to see if it could be due to bad credentials. Test a username or password that you know are incorrect. If you do not receive a clear error message in the GUI, try the following fix.
41
42
Install latest version of http://pecl.php.net/package/ssh2:
43
44
<pre>
45
wget http://pecl.php.net/get/ssh2-0.12.tgz
46
tar -xzvf ssh2-0.12.tgz 
47
cd ssh2-0.12
48
yum install automake make php-devel libtool openssl-devel gcc++ gcc
49
phpize
50
yum install gcc php-devel php-pear libssh2 libssh2-devel
51
./configure 
52
make
53
make test
54
cp modules/ssh2.so   /usr/lib64/php/modules/
55
service httpd restart
56
</pre>
57
58
There were @Segmentation fault@ messages in the apache error log and I narrowed it down to "Cluster->authenticatedConnection()":https://emg.nysbc.org/projects/appion/repository/entry/trunk/myamiweb/processing/inc/cluster.inc#L293
59
60
It seems that the fix for "PHP :: Bug #63192":https://bugs.php.net/bug.php?id=63192 was needed to fix this bug.