473,326 Members | 2,438 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Got lost after apache install

please help I am lost.

I'm running debian linux and I am trying to install apache + PHP

First I downloaded apache and PHP manualy, tried to configure and compile it but some how the apache server won't process php files (the browser is asking me where to save the file when I try to use it).

After that I found out I could use the package manager to install apache and PHP and so I did, the result is I now have several version of apache on my system and I can't figure out wich one is active.

Although the package manager suggests apache 2.0.55-4.1 is installed in /etc/apache2 and libapache2-mod-php4 4.4.4.2.1.1 is installed aswell I can't process php files (html files works fine).

because the commands in the /etc/apache2 dir don't work, I doubt wether this version is running. When I type

Expand|Select|Wrap|Line Numbers
  1. /etc/apache2/httpd -v
I get this error:

Expand|Select|Wrap|Line Numbers
  1. bin/httpd: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory
so if this version of apache does not work, which version is running??
Oct 27 '06 #1
1 2732
sicarie
4,677 Expert Mod 4TB
hansgso

Is Apache installed and running? You can check that by doing a 'ps -ef | grep httpd'. If that returns something like:

root 1704 1 0 08:36 ? 00:00:00 /usr/sbin/httpd
apache 2785 1704 0 09:41 ? 00:00:00 /usr/sbin/httpd

(and maybe a few more apache lines, but that's enough to get the picture) then you do have apache physically running on the box. I would check the version by visiting a non-existant page on the server, and the error page should contain the version. If it is not 2.2, you're usdin debian, so I'd recommend

sudo apt-get remove ****

and fill in the packagename, probably something like apache (if you're not on apache 2, I can't remember the full Debian packagename off the top of my head). Anyway, you should be able to delete the earlier source packages you downloaded with the rm and rmdir commands. Then you can apt-get apache2, I think that will get you the latest, you might want to apt-cache search or apt-cache show apache (I think it's apt-cache, it might be apt-get search) and just make sure you have the latest.
Nov 6 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Perttu Pulkkinen | last post by:
I tried to install php as apache module. Previously it has been cgi. WIn 98 is not supported but cgi worked fine, anyway. I tried to everything according to instructions in php.net, but still...
3
by: Ron King | last post by:
When I installed Mandrake 10.0 I thought I had Apache, PHP, and MySQL installed correctly. I could serve web pages, MySQL worked, and when I tried the phpinfo() function, I got a page that looked...
4
by: Jon Maz | last post by:
Hi All, I'm getting to grips with PHP and Apache (on Windows for current development, production site will be on Linux), and have a simple (I hope!) request. When you change the httpd.conf...
6
by: NotGiven | last post by:
I have tried to install mod_PHP5 on freebsd where I had installed apache 2. It throws as error indicating mod_php5 needs apache 1.3. I am a newbie, shoudl I just run Apache 1.3 rather than trying...
3
by: genenamg | last post by:
Hi, I am trying to run and configure Apache 2.0, php 5 and mysql on win xp professional - this is the first time I have tried to install and configure all three. I am having difficulty trying...
0
by: Dave Klingler | last post by:
I've been trying to bring up an IMP webmail server for...oh, several days now. I've never had so much trouble bringing up any machine, and I've beaten my forehead flat against it. Either I've...
8
by: lawrence k | last post by:
I've installed Apache 1.3.36 on my Redhat EL 3 machine. Now I'm trying to install PHP 5.1.4. I can not get the ./configure command to work. I keep getting this error: configure: error: Invalid...
9
by: YoLed | last post by:
Hello. I would like to add PHP and MySQL yo me local Apache server. So, I've seen it exist simple packages like EasyPHP, WAMP and MOV'AMP, but the three seems to install Apache too and I'm...
0
by: jlparise | last post by:
Hey everyone, I am attempting to create a script to install Apache(and a number of other things) The installer is running ok and accepting most of my arguments. The only problem is that I...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.