I have two servers on CentOS: Nginx(proxy) + Apache. I need restart Nginx but if i try to test configuration before restart, i have next error: How i can solve this problem? Thanks! P.S. Nginx has listen port 80, apache listen 81. Answer I don’t know why this error has appeared, but after I made error has gone: I’ve tried
Tag: apache
Apache httpd vs. Tomcat 7: port 80 vs. port 8080
I had recently installed Tomcat 7 on Amazon ec2. I found that Tomcat, by default, listens on port 8080. The documentation on the internet advocates that this is because linux is better saving the lower ports to the super user. (The solution on ec2 btw is creating a Load Balancer – directing the communications from port 80 to port 8080
CentOS Subversion, Basic Auth Password file not working
So i have SVN installed and using HTTPD for a remote repository. All works well, until i use the password file. This is not working at all. Apache’s error_log says (13) Permission Denied: Could not open password file I have set the passwd file’s chmod to 777 and chown to apache, I also set the parent folder of the repo
how to generic .htaccess to prevent hotlink
The following code works fine: but I want to make a generic script serve me for several sites I manage, but fails try to get Answer You can’t use variables inside the regex. You can work around this by using a RegEx backreference like so: (note the # is just used as a boundry. It could be any character that
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
I tried to restart my Apache server on CentOS 5.0 and got this message: httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName Here is the /etc/hosts file: Here is the /etc/sysconfig/network file: I also have this in the Apache httpd.conf file: However, I still get the first error message when I restart Apache.
starting apachectl from bash
I am writing a bash file. I need to start apachectl from my bash file. so i wrote: When I run it with root, an error occurred: I searched and I found that, I should be super user with su – not su Now, I want to know: why this error occurred? How could i run it with su? Answer
ISPConfig 3, a ninja sets my open_basedir
I have a PHP library that I’d like to share to several vhosts on my server, but the open_basedir directive is causing troubles. I use ISPConfig 3 to manage the sites. PHP Warning: include(): open_basedir restriction in effect. File(/var/toaster/latest/__server/core/cms.php) is not within the allowed path(s): ([cut:several paths]) in [cut] on line 5 phpinfo() says: Loaded Configuration File: /etc/php5/cgi/php.ini open_basedir: [cut:several
LAMP error: session_start() failed: No space left on device (28), but
Ubuntu server 10.04, Apache 2.2.14, PHP 5.3.2, MySQL. For the drive where session files are stored: df -h: df -ih: Any ideas? Answer Finally remembered to answer with the solution! Turns out there were too many files in one directory. Had to start hashing the session files into subdirectories.
Can i host multiple sites with one django installation
I have my own VPS server with Centos and cpanel/WHM Currently i am building one website in Django with djnago builin server. When site finishes then i will move to WSGI and apache I want to know that Can I host multiple sites with same django installation Also what bout apps which i have installed with pip like SOUTH, SENTRY,
Apache LOG: child pid xxxx exit signal Segmentation fault (11)
Apache + PHP + Mysql + Linux [notice] child pid 23145 exit signal Segmentation fault (11), possible coredump in /tmp But nothing found under /tmp How can i find the error? Answer Endless loop of the function in PHP code caused this error.