473,655 Members | 3,072 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Got lost after apache install

2 New Member
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 2748
sicarie
4,677 Recognized Expert Moderator Specialist
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
2778
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 it didn't work. - I put php4ts.dll to windows/system32 directory. - I configured http.conf:
3
2447
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 OK. I could create simple php pages and serve them up. Then I tried to install pear, and things started to be not OK after all. phpinfo() told me that the 'Configure Command' had both the following in it: --with-pear=/usr/share/pear
4
6657
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 file and restart Apache, if you have made an error you simply get a popup saying that there has been an error, but giving no useful information about what or where the error is (on Windows anyway).
6
2383
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 to run the latest Apache?
3
3210
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 to configure them on my computer. Can somebody help me - this is what I have done so far. Installed Apache 2.0, it worked perfectly ( I checked with my browser - http://localhost) till the point where I started to point where I
0
1683
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 been at it too long, or I've been at it too long and there's a bug here somewhere. Basically, I had a working machine up until yesterday, with gd.so, imap.so, ldap.so, mbstring.so, mcrypt.so, and pgsql.so all up and running nicely. At that point...
8
6287
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 Apache directory - unable to find httpd.h under /usr/local/apache/include So then I run this command: find / -name httpd.h
9
2235
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 afraid to loose my current Apache configuration (several vitual hosts configured). What can I do to preserve my Apache and install PHP + MySQL the simple way ?
0
1929
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 cannot figure out how to tell Apache to install in a different folder. I want to install apache in C:\Program Files\SomeApp\Apache I also want to set the document root to C:\Program Files\SomeApp\Web If anyone could help me out with this I would...
0
8380
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8296
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8710
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8497
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8598
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7310
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2721
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1598
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.