I have installed the following packages on Linux SUSE:
-Apache 2.2.13
-PHP5.3.3
-freeradius + dialupadmin (web interface for freeradius)
since the htdocs and whole dialupadmin are in .php3.i cannot open the web interface, firefox keep asking me if i want to save the file, or chose a specific program tu run.
I have suse10 64bit and I was setting up SVN server on it. After all required setup while reloading apache2,its giving the error:
Code:
httpd2-prefork: Syntax error on line 113 of /etc/apache2/httpd.conf: Syntax error on line 31 of /etc/apache2/sysconfig.d/loadmodule.conf: Cannot load /usr/lib64/apache2/mod_dav_svn.so into server: /usr/lib64/libsvn_subr-1.so.0: undefined symbol: apr_memcache_add_server
I have suse10 64 bit installed. I am setting up a svn server on it. After installation and adding the modules ,while reloading the apache2 it's throwing the error as: HTML Code: httpd2-prefork: Syntax error on line 113 of /etc/apache2/httpd.conf: Syntax error on line 31 of /etc/apache2/sysconfig.d/loadmodule.conf: Cannot load /usr/lib64/apache2/mod_dav_svn.so into server: /usr/lib64/libsvn_subr-1.so.0: undefined symbol: apr_memcache_add_server
Starting web server: apache2[Wed Dec 09 15:36:40 2009] [warn] NameVirtualHost XX.XX.XX.XXX:80 has no VirtualHosts(99)Cannot assign requested address: make_sock: could not bind to address 68.178.232.100:80 no listening sockets available, shutting down Unable to open logs failed!
Installation of SUSE 11 server now when I try to configure apache2 (opening port 80) I get a "cannot adjust apache2 service" error??? Can anyone shed some light on this.
Does anyone know what the -k switch does? i.e., apache2 -k restart? I can't get much out of google but on my sarge based web server it's only with the -k switch that a restart actually works.
I am running fedora 14 linux with mysql, php and apache. Just get done with installing each app, But the php doesn't seem to be enabled in apache, since test file doesn't work:
i couldn't find anything on google. So here is my problem: It's Debian GNU/Linux. I installed apache2 a few weeks ago, but due to some work I couldn't go on installing further things. Today I installed php5 and mysql. Everything seemed to work fine. I loaded an existing MyBB Board and WordPress Site onto the server and imported the mysql db. I can open the sites and login. However, there are problems. I think my problems are due to the compiled modules. Some are missing. I checked several sites. They all give me this listing:
Code: apache2 -l Compiled in modules: core.c mod_access.c
[Code]...
What should I do? How can I get the missing modules? Do I have to install apache again (how? remove - install? install what?)? Step-by-step instructions would be kind, because I don't know a lot about unix systems.
I have just installed Apache2 v. 2.2.17 on Ubuntu,and I am trying to get it to work with Ruby (v 1.8.7). I have followed the instructions on the Ubuntu site and ended up installing Phusion Passenger v 3.0.7, making the suggested changes to the httpd.conf file.
When I launch Apache2 I now get the message:
Cannot load /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/ext/apache2/mod_passenger.so into server: /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/ext/apache2/mod_passenger.so: undefined symbol: ap_get_server_banner
I have found a bug report (url) that suggests "adding a dependency" but am not sure how to do that. Any kind soul out there can take pity of this eager Linux neophyte?
I am installing some SSL certificates on my web server, however I have a couple questions, as I'm not familiar with this process
1) I'm not sure which directory to put them in? What is good practice? Is /var/www/secure a good location so long as I restrict access to the secure directory?
2) I am told to edit the following in my ssl.conf file of apache2
However, I cannot find this file, ssl.conf. Nor can I find the above directives in my main apache2.conf file. Where is the ssl.conf file? Or alternatively, could I just add the above directives to my apache2.conf file?
I was stupidly trying to setup apache for virtual hosts using two different tutorials and something got mucked up along the way. Apache will now not start and I just need a some help fixing it. My error logs show nothing and running "sudo apache2ctl configtest" said "syntax ok".
I have my own website running on my Ubuntu 10.04 server using Apache2. I have a log in page that I would like to use ssl (https) on. I have set up quite a few websites using virtual hosts, but I have never messed with ssl. I know you have to generate a certificate using openssl (which i have installed). I have been trying to find some tutorials online, but everyone of them is different...and nothing seems current.
I have a pseudo test server that I irresponsibly let both a need for develop and running of Sid (unstable) version of Debian.
The long story short of it is I was playing around with functions that needed newer versions of software than was available in the stable release so upgraded. That was a done deal and has been working fine for many months. I then needed to upgrade a particular file for an unrelated service and did the dumb move of a full apt-get upgrade. Well in the 800 or so files it updated, one of them has broken Apache.
Apache will start from the command line (/etc/init.d/apache2 start) without any errors, but when I try to navigate to any page it serves I get "500 Internal Server Error".
Looking at the error log I see:
Code: [Wed Sep 23 11:02:28 2009] [notice] Apache/2.2.13 (Debian) DAV/2 PHP/5.2.11-1 with Suhosin-Patch mod_ssl/2.2.13 OpenSSL/0.9.8k configured -- resuming normal operations [Wed Sep 23 11:02:31 2009] [error] [client 192.168.1.1] SoftException in Application.cpp:221: File "/Forum//index.php" is not in document root of Vhost "/var/www/phpBB3"
With the command "tail -300 /var/log/apache2/access.log | less" i can look in the log for the 300 latest visitors. and i wanted to ask if it's possiblle to get that command to run from a php file and if yes how ?
Installing Apache2 With PHP5 And MySQL Support On OpenSUSE 11.2 (LAMP) | HowtoForge - Linux Howtos and Tutorials Unfortunately when I wanted to start Apache2, i get an error message:
Code:
linux:~ # /etc/init.d/apache2 start Starting httpd2 (worker) httpd2-worker: Syntax error on line 116 of /etc/apache2/httpd.conf: Syntax error on line 26 of /etc/apache2/sysconfig.d/loadmodule.conf: Cannot load /usr/lib/apache2-worker/mod_ssl.so into server: /usr/lib/apache2-worker/mod_ssl.so: undefined symbol: SSL_get_servername
I have ssh installed, using port 22. I installed apache2, and forwarded port 82 to 80. For some reason, the following message occurs when connecting to IP: 82: SSH-2.0-OpenSSH_5.1p1 Debian-6ubuntu2 I can view my page file through things like http://localhost.
I think my apache2 is owned and running as root. I don't know if I installed it like a noob a while ago but I would like to secure it now especially since I just figured out how setup virtual hosts and I may want to eventually let people host sites on my server and I obviously don't want to have to give them root access. How can I confirm that apache2 is running as root and how do I take it away from the root user?
I looked around on the internet to find a solution, but none found.I installed apache2 on Karmic Koala and that one works. On the default page I created a link to "/home/me/Documents/folder/index.html", but when I click the link it gives me the URL not found-error.
Sometime ago I got Apache2 working. I also did my best to enable it for SSL, but failed. I'd like to give that another go. I have OpenSSL installed and all (or so Karmic reports). But port 443 gives an error when I try to connect.
I'm running 10.04 with Apache2/PHP5.x I wanted to test some basic cgi scripts, but my browser is displaying the code (#!...) If I run the scripts on the console, they work fine so CGI is not the problem, it's apache. To install the CGI module I ran sudo apt-get install libapache2-mod-perl2 with no problems. By the way, I installed Apache through apt-get instead of doing it manually, but it seems that the installation divides the conf file in different parts, so the regular apache2.conf has this:
Code: # Include module configuration: Include /etc/apache2/mods-enabled/*.load Include /etc/apache2/mods-enabled/*.conf # Include all the user configurations: Include /etc/apache2/httpd.conf # Include ports listing Include /etc/apache2/ports.conf [Code]....
I can't figure out what I need to do to get CGI working on my server.
I can't seem php5 work with apache2. I am getting the text openning instead of php. I think this is infamous problem, found many suggestions adding AddType application/x-httpd-php .php, did that in/etc/apache2/apache2. conf and /etc/apache2/httpd.confwith no luck, it's still opening text
I am using Ubuntu Server 10.04 64bit. I am getting an Apache2 start up error after I setup my certificates and configure Apache2 for HTTPS. At the point on start up where I need to type in my certificate pass code I get a lockup due to the Apache2 process being in a hung state. I reboot if needed and switch to console tty2. When I type in the command.
Code:
I get the following error.
Code:
To correct the problem I do this.
Code:
From the output of the command above I look for the apache2 process and make note of its process ID. Then, I kill that process ID. For example, the command below has an apache2 process ID of 1131.
Code:
Next, when I run this command.
Code:
The apache2 server starts up and asks for my certificate password, accepts it when I type it in, and runs perfectly fine afterward.
Fortunately this instance of Ubuntu Server is running inside a VMWare virtual machine. I can just "pause" the virtual machine if I need to rather than going through this crude and tedious start up process too frequently.
Crude and tedious are feelings I'm having too frequently lately with Ubuntu Server.
I'm running a LAMP server on 10.10 server. I recently noticed that my router said it had 4,000 open connections, and saw they were all going to my server. When I look at /var/log/access.log, I see hundreds of thousands of lines like this:
[code]...
those connections are coming in once per second. how I can stop this? My family's network is being constantly overloaded.
So I've got a box running 10.04LTS Server, and on it is running the latest build of Apache2.It's a home box - a server set up for the sole purpose of experimenting and having fun with. So far, the fun is mostly breaking it over SSH and then fixing it when I get home and can log into it via recovery.What I really want to do is to get this box set up with Apache2 the way it seems like it was designed - with Apache2 serving web pages from its default file location (/var/www) but also being able to log in and upload/download new web page files to that directory over SCP or SFTP. I keep hitting snags.Here's what I've done so far:
1. The server is set up in a DMZ at home and my router updates a Dynamic DNS record; so far I can SSH into it no problem.
2. Apache is working. I get my "it works!" page when I enter either the IP or the dyndns domain name.
3. SFTP is sort of working. I can log on using WinSCP and see the files and download them, but I can't upload to the default directory with my normal login.
Here's my issues: 1. I want to set up Apache *correctly*. To me, that means leaving it pointing to the default directory, but still being able to upload to that directory. I have not (and probably will not) enable the root account. I've set the permissions to 755. I've tried chown'ing the directory, but then it seems I can't view the webpages.As a workaround, I created a www folder in my default user home directory and pointed Apache2 there in the 'default' file in /etc/apache2/sites-available. The changes read as follows:
That gives me a workaround for the default directory SFTP issue, but I would rather learn what I need to do to have it set up and working with default values.
2. You may notice I added Includes under the Options. My goal is to get server-side includes working. But they aren't. I have some existing webpages my work has set up - I using these as a template to use to adapt a flash movie I made to a specific resolution, as well as to learn how to optimize my flash for a webpage. Our webhost uses virtual hosting; I am not yet doing so. I'm not sure what they've done to set up the server-side includes, but the files they are using are all html files - no shtml. The include files themselves have either .htm or .html extensions. All of the pages have .html extensions.
My reading said that I need mod_include installed in Apache2. Where can I check to see that it is installed? Where do I need to add the Includes under Options?Is it in the right place? And finally, where do I need to add XBitHack on to enable it? This is the method that Apache suggests, but the documentation offers no clue as to where to put it. Most of the documentation out there refers to apache.conf, but that's the Apache 1.3 way of doing things.I really just want this to be set up according to the defaults as much as possible.I want to have a good working knowledge of Apache and of how to set it up and configure it, but dang it if it isn't a frustrating process.
I am trying to setup Ubuntu with Apache2+Tomcat6. I can get the site up and running, however when I have a jsp file it does not execute, instead it just prints the full jsp to browser.
I am checking if there is a configuration issue that may be missed.
sudo /etc/init.d/tomcat6 status # shows fine
/etc/apache2/sites-available has a file for my site containing valid DocumentRoot
/home/user/sitename/webapps/examples /home/user/sitename/webapps/examples/jsp /home/user/sitename/webapps/examples/jsp/sample.jsp contains below text <%= "hello" %>
When above page is visited in browser, it shows full html tags instead of displaying the output. It displays static pages fine.