apache mod_jk.so start up Permission denied - apache

I am trying to configure mod_jk in Apache 2.2.3 to connect with Tomcat 7. OS is CentOS 5
After all the configuration, while starting the Apache httpd I am getting -
Starting httpd: httpd: Syntax error on line 200 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_jk.so into server: /etc/httpd/modules/mod_jk.so: cannot open shared object file: Permission denied
I see the permission is set alright
-rwxr-xr-x 1 root root 266752 Jun 3 19:37 mod_jk.so
I don't know what to do. Can any one please help?

Check your SELinux configuration.
Either open file /etc/selinux/config and check selinux setting or
run getenforce and see the output.
If I am correct then you will find it to be Enforcing. Now set it to permissive and restart httpd. You might need to reboot system to take effect.

Related

Permission denied error when creating cache folder - Apache httpd

I am using Apache HTTPD with the Dispatcher module running on RHEL.
The dispatcher works fine but it's unable to cache the file. On inspecting the logs I see the following error -
Unable to create parent directory /var/www/html/bla/bla/static: Permission denied
My apache is running with the default user and usergroup - apache
I have also changed the ownership of my docroot (/var/www/html) to apache.
drwxrwxrwx. 20 apache apache 278 Jun 14 04:08 var
Does anyone know what the problem is? Please help!

Apache httpd is not restarting in centos

I install Zend server CE 5.6. With that Apache is installed automatically. Now I want to restart Apache server then it is showing error
click here for image to see exact error
any help
why i cannot restart apache httpd service.....?
Well you got some syntax error in httpd.conf and zedserver_php.conf.
For libphp5.so, check if the user apache can access to usr/local/zend/lib/apache2/libphp5.so.
First look, I think you have some error in httpd.conf and zedserver_php.conf and that apache can't access to httpd.conf and zedserver_php.conf.

Not able to start Apache HTTP Server on Cent OS 6.4

While starting Apache tomcat, am getting error Starting httpd: Syntax error on line 3 of /etc/httpd/conf/httpd.conf: Invalid command 'AddHandler', perhaps misspelled or defined by a module not included in the server configuration I am using Cent OS 6.4 . I used the command service httpd start for starting the server.
You are trying to use Apache HTTP server configuration file with Tomcat.
Tomcat has it's own config files in TOMCAT-HOME/conf/ directory.
If you're actually talking about Apache HTTP, not Tomcat, you may get this error if there's no mime_module. Run httpd -M command to check if mime_module present or not.

XAMPP Access Forbidden [ubuntu]

Yesterday I was able to completely normally use PHP and phpmyadmin with XAMPP and make apps. The only thing changed is that I restarted the computer. Now I start lampp like always
sudo /opt/lampp/lampp start
and I get
XAMPP: Starting Apache...fail.
XAMPP: Another web server is already running.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.
Maybe the apache is the problem I don't know. But when I open localhost in browser, I get
Forbidden
You don't have permission to access / on this server.
Apache/2.4.7 (Ubuntu) Server at localhost Port 80
I added 'Require all granted' to that httpd.conf file, and it didn't help, so something else must be going on. I tried a lot of other threads on forums, nothing helped.
Ideas?
Thanks
It could be possibly because another instance of Apache is running on your system. Just try to close all intances via sudo killall -9 apache2 and then try to start/restart the LAMPP.
Most linux OS ships Apache as default server, so if you even haven't installed them, they might be running in your system.

Trac after clean install. TracError: IOError: [Errno 13] Permission denied

I have clean CentOS 6. I just install via yum install httpd mysql-server, python, mysql-python.
First Step
$ trac-admin /home/tracprojects/main2 initenv
Project name: Main
SQL Connect string: mysql://trac#localhost:3306/trac (base exists, utf8, innoDB)
OK.
$ trac-admin /home/tracprojects/main2 deploy /var/www/html/
OK.
Second Step
Then I move cgi-bin/trac.wsgi to my /cgi-bin/ server's alias folder. (mod_wsgi working well. NOT as a daemon. tested on wsgi scripts).
Then I've grant permissions to Apache user for whole directories I've create earlier. And add access from apache config. (order-allow-deny).
But when I open my browser and go to url, I've got this error message:
Internal Server Error
TracError: IOError: [Errno 13] Permission denied: '/home/tracprojects/main2/VERSION'
What I do wrong?
Do you use SElinux (enabled by default)? With default SElinux I believe Apache can not access /home. You can check this by disabling SElinux temporarily ("setenforce 0" as root) and maybe restarting Apache. Also check /var/log/audit.log.
Check permissions of '/home/tracprojects' etc. Apache runs as special user and simply may not be able to read into directories, read files, or even write files.
You may be better off using mod_wsgi daemon mode and telling mod_wsgi to run the process as a different user who can access that location. Even if do this, the WSGI script file directory still at least needs to be readable to Apache user.