Ubuntu + Apache 2.0 + PHP 5.2.1 - Cannot Use Dynamic Extensions (e.g. Pdo.so)

Mar 6, 2007

I'm trying to compile PHP 5.2.1 on my Ubuntu 6.10 server. I've downloaded the source code from php.net and am running the following configure command on it:

Code:
./configure --with-apxs2=/usr/bin/apxs2 --with-mysql --with-informix=/opt/informix --enable-shared --enable-pdo=shared --without-sqlite --without-pdo-sqlite --with-pdo-mysql=shared --with-zlib --with-xml --with-pdo-informix=shared,/opt/informix
After doing this, then make, I copy over the generated libphp5.so file into my Apache extensions directory, add extension=pdo.so (and lines for the PDO-MySQL/Informix extensions) into my php.ini and restart Apache. I would expect to see PDO, PDO-MySQL and PDO-Informix listed in my phpinfo() - but they don't appear.

So, I tried recompiling PHP but without any of the PDO extensions being shared. This worked, and I could see PDO and PDO-MySQL in phpinfo(), but not PDO-Informix.

So, can anyone hazard a guess as to why none of the PDO extensions load when compiled shared? I don't get any related error messages in the Apache or System logs by the way....

View 0 Replies


ADVERTISEMENT

Apache And Extensions

Jan 14, 2008

I have found a hole in one of my servers that someone else pointed. Here is what I found. A fake image can get uploaded to the server like test.php.psd and the server will think it is an image file but in fact it is a PHP file. Then when the server access the file Apache does not recognize the file and automatically assumes that it is a PHP file and tries to execute it as a PHP file. If the file is not recognizable and can not open it as an image file then it should not automatically try to execute it as a PHP file. Am I wronging in assuming this? Here are two sample files.

Here is a sample file that you can try:

Code:
<?php Print "Hello, World!"; ?>
[url]
[url

How can I create files like this that are not recognized by Apache from being automatically being executed as a PHP file.

View 5 Replies View Related

Apache :: Dynamic URL Not Rewriting

Jul 10, 2013

For some reason I have some old urls which just don't want to rewrite. I have lots of others working fine but I think it may be to do with the symbols in these paths which are stopping it from working. Ideally these should be 301'd.

I need view.asp?filter=category%20name to go to category-name

View 3 Replies View Related

Apache :: Redirect Dynamic URL To Static URL

Nov 14, 2013

I transferred my WordPress site to static HTML website, but some other website have a link to my old WordPress site URL....

I want to redirect all traffic from that URL to new URL which is URL...., but my redirect in .htaccess file doesn't work (Redirect 301 /?page_id=1234 URL... because of the query string."mod_rewrite" to create the right code in .htaccess file.

View 1 Replies View Related

Apache :: How To Write Dynamic Image Url

Mar 15, 2013

how can I rewrite a dynamic image url? URL....

View 3 Replies View Related

How To Setup Frontpage Extensions For Apache On Windows

Feb 7, 2008

Does anyone know how to install the Frontpage Server Extensions on an Apache server which is running on a Windows box? I've searched around including on Microsoft's site, but I was only able to find info on how to configure for Apache running on unix/linux.

View 0 Replies View Related

Apache Standalone With Adobe HTTP Dynamic Streaming

Mar 1, 2013

I have been trying to install apache server on a windows pc which will deliver adobe HDS content. there is a specific tutorial for this in the adobe site, can be found here. I have been following it to the word, but when I try to start apache after asking it to load new modules (mod_f4fhttp), it returns me an error saying that the file is not readable/not found. I have installed the proper visual c++ libraries and also checked the permissions and spellings. This seems to be a common error with php modules in apache, but none of the solutions seems to work.

View 1 Replies View Related

Apache :: Write HTAccess Rules For Dynamic Pages

Feb 15, 2013

I'm really struggling to write htaccess rules for dynamic pages. I've like 20 pages to redirect What I want to do is redirect:

[URL] ....
to
[URL] ....

View 10 Replies View Related

Apache :: Building A Dynamic White-label Site On 2.4.x

Oct 29, 2014

How do I architect and design a dynamic, white-label website i.e. a site where the components are dynamic based on a path component in the URL?

View 1 Replies View Related

Apache :: Setup Dynamic Content Configuration - Correct Headers

Aug 28, 2014

I am trying to setup dynamic content configuration in apache 2.2 httpd conf. Here is the configuration and couple test cases:

CONF:
<FilesMatch ".(js|css|gif|jpg|jpeg|png)$">
Header set Cache-Control "no-cache, no-store, max-age=0, must-revalidate"
</FilesMatch>

TEST 1:
Without <FilesMatch> directive, the headers are set to all requested content as it should. This includes content served from apache server and content from a separate application server.

TEST 2:
If I use the above configuration example, I can see that static content comes with correct headers only

View 1 Replies View Related

Apache :: Removing File Extensions With RewriteEngine Doesn't Work

May 7, 2015

I'm trying to accomplish a rather common task of removing file extensions, where say, instead of index.php, just index can be accessed.

I've gone through many tutorials that offer all sorts of different ways how this can be accomplished and none of it works but what's commonly given is something like this.

View 4 Replies View Related

Unable To Compile Apache Under Ubuntu

Jan 4, 2007

A little background on what I'm doing here...

I'm setting up a Linux machine specifically for use as a VNC here at work.

The IT Manager said he'd used Ubuntu before but left the distro up to me.

I set up my test machine with Ubuntu but need to compile Apache for portions of it to work. I've never had any problems building Apache before, but this is what I'm getting here. I have a feeling that, since I've not used Ubuntu before, that I'm just missing a step. I also noticed that the "make" command doesn't work. Does that need to be installed and compiled as well?

=========================================
root@vnc01:/etc/httpd-2.2.3# ./configure /usr/local/apache
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: /usr/local/apache
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... /usr/local/apache
checking host system type... /usr/local/apache
checking target system type... /usr/local/apache

Configuring Apache Portable Runtime library ...

checking for APR... reconfig
configuring package in srclib/apr now
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: /usr/local/apache
checking build system type... /usr/local/apache
checking host system type... /usr/local/apache
checking target system type... /usr/local/apache
Configuring APR library
Platform: /usr/local/apache
checking for working mkdir -p... yes
APR Version: 1.2.7
checking for chosen layout... apr
checking for /usr/local/apache-gcc... no
checking for gcc... no
checking for /usr/local/apache-cc... no
checking for cc... no
checking for cc... no
checking for /usr/local/apache-cl... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
configure failed for srclib/apr
root@vnc01:/etc/httpd-2.2.3#

The config.log file doesn't honestly show any errors that I can see pertaining to any compile errors.

View 5 Replies View Related

Apache :: How To Start And Stop On Ubuntu

Sep 27, 2013

I have installed Apache on ubuntu as per our project related manual by using the packages.

httpd-2.4.4.tar.gz
apr-1.4.6.tar.gz
apr-util-1.5.2.tar.gz

I copied apr-1.4.6 apr-util-1.5.2 (after extract) to srclib directory of apr-util-1.5.2

and created symbolic links as below

ln _s apr-1.4.6 apr
ln _s apr-util-1.5.2 apr-util

and configured httpd-2.4.4 with
./configure --with-included-apr

and make ; make install;

now my apache is running , but how to stop and start the apache.

I googled for reference and found it can be done using

sudo /etc/init.d/apache2 stop
sudo /etc/init.d/apache2 start

I dont have apache2 in my /etc/init.d folder.

how to start and stop.

View 1 Replies View Related

Ubuntu + Apache + Virtual Host + Subversion

May 11, 2009

i have followed twice a tutorial (you'll find it if you type in google "sellersrank ubuntu subversion". It is the second result. You know, I cant insert URL in my posts yet...) to install Ubuntu + Apache + Virtual host + Subversion, but when i try to access the repository through "svn.domain.com" an error message like this is showed:

Address Not Found
Firefox can’t find the server at svn.domain.com.

I have Ubuntu 8.04 + Apache 2.2.8

View 4 Replies View Related

Apache :: Redirect Website To Ubuntu Machine

Aug 10, 2010

I have build windows xp machine. This machine is running OTRS ticket system. All of our users login using [URL] .... and agent can login with [URL] ....

I have also build ubuntu 9.10 machine and installed OTRS ticket system. I like redirect the [URL] ..... in windows xp to Ubuntu 9.10 with [URL] ....

I searched httpd.conf file and tried to change virtual host but it did not worked.

View 3 Replies View Related

Apache :: Ubuntu Reverse Proxy To Jboss

Dec 4, 2013

Environment(home server/learning):

-1 Public IP
-Host Windows Server 2008 R2 AD/DNS/Hyper-V (server0)
+ VM Windows Server 2008 R2 Exchange 2010/IIS (server1)
+ VM Ubuntu server 13.11 Apache 2.4.6 with virtual hosts (server2)
+ VM Windows Server 2008 R2 Blackberry Enterprise Server running on a Jboss webserver (server3)
-All port 80,443 requests points Ubuntu server 13.11 (server2)

Within Apache 2.4.6 I have virtualhost where the setup are as followed

SomeWebsite:80
SomeOtherWebsite:80
Mail.server1.com:443 (internet <---> server2 reverse proxy:443 +CERT <---> 443+CERT server1)
Bes.dnsname.com:443 (internet <---> server2 reverse proxy:443 +CERT <---> 443+CERT server3)

The problem:

For learning purpose I am configuring a blackberry enterprise server(bes) on server3. It's a clean installation with only the needed applications to run a bes. Because I only have 1 public ip I am trying to reverse proxy this webservice two like server1. The bes webservice is configured to accept connections on port 443. So my first web.conf setup was similar to the setup I used for server1 but I noticed that the webpage was displayed but I couldn't interact with the page because it was a java application. So digging deeper into this i found that the webpage that bes provided me to use isn't the real application but more like a iframe setup.

Example:
BES Console address: https://server3.com/webconsole/login
Real address: https://server3.com/websconsole/app

Unfortunately after finding this and editing my web.conf to proxypass reverse to this real address I encountered a other problem. The bes webconsole works with session is and parameters

Example:
https://bes.server3.com/webconsole/app;jsessionid=2C10DDA521DB8408479AAD8F34255C7F? component=login.goToChangeLanguagePageLink&consoleSId=&page=Login&service=direct&session=T

Current httpd.conf for server3:

<VirtualHost *:80>
DocumentRoot /var/www/bes.server3.com
ServerName bes.server3.com
<Directory "/var/www/bes.server3.com">
allow from all
Options +Indexes
</Directory>

[code]....

View 1 Replies View Related

Plesk 12 On Ubuntu - How To Enable Apache ASP Support

Nov 17, 2014

I just have started to setup a web-environment using Plesk 12 on Ubuntu 14.04LTS.

I have the following problem:

I have setup a service-plan that enables Apache ASP. When I try to create a webhosting using this service-plan I run into a message saying that the service-plan tries to ENABLE ASPs, but the available setting is DISABLED (only option) and the webhosting will be setup with ASP DISABLED (and the webhosting will be out of sync with the service-plan).

Trying to figure out the reason for this behaviour I checked the site_isolation_settings.ini (in /usr/local/psa/admin/conf/). In this file asp is set to on (no comment sign on start of the line).

Then I looked for the custom view settings for the power user view (which I am currently not using - I use the service provider view): In the hosting parameters ASP is ticked.

After that I checked the installed (and installable) features of Plesk; especially the Web-Hosting-Features. Surprisingly I noticed there is no option to install Apache ASP support!!!

Remark: I installed Ubuntu 14.04LTS Server in minimal configuration (SSH-Server configuration) directly after that I started the Plesk installation...(might this be the reason?)

How can I make Apache ASP work?

View 4 Replies View Related

Apache :: Images Not Loading In Reverse Proxy In Ubuntu

Apr 12, 2013

I've set up a reverse proxy using the Ubuntu Apache2 package (2.2.2, with evidently an old version of mod_proxy_html), and it's about 50% functional, but certain images aren't loading.

I've tried with and without ProxyHTMLExtended on, but even with it on I'm not convinced that any non-inline scripts or CSS files are being properly handled, as they are being directed to my local root directory instead of /app1/, and when it is on, I can no longer log in to the internal webapp.

In the log, the only errors that stand out to me are those referencing things from relative root directories, like /images/* and /ajax/*. The image files are coming from separate CSS files, and it doesn't tell me where exactly the ajax references are originating.

Here is the relevant part of my VH config:

ProxyRequests Off
ProxyPass /app1/ http://example.com/
ProxyHTMLURLMap http://example.com /app1

ProxyHTMLLogVerbose On
LogLevel debug

<Location /app1/>
ProxyPassReverse /
SetOutputFilter proxy-html
ProxyHTMLURLMap / /app1/
ProxyHTMLURLMap /images([^)]*) url(/app1/images$1) Rih
ProxyHTMLURLMap url(http://example.com([^)]*)) url(http://localhost/app1/) Rih
RequestHeader unset Accept-Encoding
</Location>

And here's an example of the errors:

[Thu Apr 11 23:22:50 2013] [error] [client 127.0.0.1] File does not exist: /var/www/images, referer: http://localhost/app1/css/examplefile.css
[Thu Apr 11 23:31:00 2013] [error] [client 127.0.0.1] File does not exist: /var/www/ajax, referer: http://localhost/app1/admin/

Comparing the source to the proxied version, I see that the images are going from "/images/*" to "/var/www/images/*".

View 1 Replies View Related

Apache :: Setup Reverse Proxy - Create SSL Certificate For Ubuntu 14.04

Jun 22, 2015

My system consist of Ubuntu 14.04 server running LAMP. I am running Apache 2. On the same machine I am running Shiny server and running my apps through port 4949.

[URL] ....

I also am running an additional Shiny server copy on a virtual box through port 3838. All is running very good. I have an html web page running on Apache 2. I can view it and all my apps running on both Shiny servers from any place on the web.

My concern, however is security. I have port 3838, 4949, and 80 open. How can I set up Apache to run as a reverse proxy for my both of my Shiny servers (ports 4949, and 3838) and also continue to host my web page securely.

I have also attempted to set up a self-signed certificate using the following procedure but it is not working. I used the following instructions and followed them verbatim.

[URL] ....

How to set up a reverse proxy for my Shiny servers?

View 3 Replies View Related

Ubuntu VPN Tunnel Between 2 Ubuntu Servers

Dec 29, 2007

way to create a VPN tunnel between two ubuntu servers?

Both will be in seperate datacentres but I'd like a secure tunnel so I can setup jobs to backup to one another.

This has to be done on the server level and cannot be done at the router/firewall as I do not have access to this kit.

View 1 Replies View Related

Is There Anything Like A CDN For Dynamic Content

Apr 13, 2009

Is there anything that takes the concept of a CDN (localised content delivery), but applies it to dynamic stuff like PHP and databases, syncing across worldwide servers as necessary? It'd be nice to deliver the entire site in a localised manner.

I'd imagine Google does something like this for their own sites, and maybe other large companies too — but I have no idea if such a technology exists in the consumer space.

I can see it being a logistical nightmare having to keep all versions of the database in sync, so it wouldn't surprise me if nothing like this exists.

View 3 Replies View Related

Dynamic Caching And PHP

Mar 4, 2009

I'm developing a PHP application which will be hosted on IIS7 and I'm interested to see if it is possible to get dynamic caching working when using an MVC pattern (I'm currently using the Zend Framework and it's Frontcontroller implementation).

View 0 Replies View Related

Horde Dynamic IP

May 18, 2007

I received this error msg for my Plesk account

Cannot log into Webmail. It shows error: "Your Internet Address has changed since the beginning of your Mail session. To protect your security, you must login again."

The solution is given by

[url]

But the host that I was using in the USA refuse to implement it saying it will endanger the server. Is it true? But most of us are using dynamic IPs ADSL, this restriction will affect all, wont it?

View 3 Replies View Related

PHP Extensions

Feb 20, 2008

We had our servers PHPsuexec enabled for both PHP 4 and 5. Clients using htaccess to enable PHP extensions are now not working.

I once read on a forum that you can make use of a custom PHP.INI in order for those extensions to work. How can we obtain or create a custom PHP.INI that we can use?

View 0 Replies View Related

Dynamic Subdomains In Plesk

Nov 2, 2008

im trying to set up a site for a client whereby they can add subdomains to their existing domain (http://test1.client.com/, http://test2.client.com/, etc.).

its a dedicated server with Plesk...can anyone point me in the right direction please?

ive searched these forums but havent come up with much, but maybe didnt search for the right terms, so my apologies if this has been answered before.

View 1 Replies View Related

301 Redirecto Dynamic URL's In .htaccess

Feb 9, 2006

I need to forward some dynamic URL's So for example:

mysite.com?product=1

needs to be directoed to

mysite.com/1.htm

How can I do this in .htaccess?

View 1 Replies View Related

Monitoring With Dynamic DNS Support

Sep 4, 2008

A casual reader of WHT would observe that there is no perfect hosting company. They will all at one time or another have either a performance issue or an outright outage.

I think there is a simple way to address this problem: upon detecting a failure route traffic to a secondary location. This is done typically through Dynamic DNS.

There a lot of monitoring companies out there and most of them - if not all - limit their function to sending out an alert. Well, that's not good enough for an HA solution.

There needs to be a way to take actual automated remedy action upon failure detection.

I think the simplest possible action would be to update IP address of a host with a backup IP through dynamic DNS. My question then is: does any one know of a monitoring service that would support this?

If you think of a cost of adding another hosting account through a backup provider especially if they both use cPanel, its minimal. And yet you would have a HA solution that enterprise customers spend millions on.

View 14 Replies View Related

404s On Dynamic Pages Only

Apr 9, 2008

I have a problem with a site that I'm hosting on a managed dedicated server - I'll try to explain this as simply as possible!

From my office I seem to have a problem viewing dynamic pages on the site.

- The HTML index page loads fine
- Internal dynamic PHP pages throw up 404s
- Other PHP pages/sites on the same server are fine
- The pages load fine using a proxy browser
- I've cleared my cache which made no difference
- From other locations (home) I have never had the problem

I'm obviously worried that I'm not the only person having these problems.

The fact that the site loads fine through a proxy indicates that there's not a problem with the server,

However I'm confused that it's not a local problem as the HTML pages shouldn't be loading either right?

View 1 Replies View Related

Cache The Dynamic Url (images)

Oct 3, 2007

I've got an application (java web ) tha dynamically creats images ( with dynamic url - ...tab&vi=nia&h=24&ds=bottom&fn...) - like thumbnails,icons ect.

The think I'm trying to deal with is to force caching theese images by a browser.

When the application starts the server gets images and shows code 200 ( and this images apppers in web browser cache), but after reloding or simply viewing the images from the cache url the server shows again code 200. I'd like to have code 304 - not modified - like when browser gets an image from cache.

The dynamic url for image is being created only once - when the appication starts, and after that it stays unchanged, but I still can't force use the cached images - like when it is a static url - .../image.jpg.

View 10 Replies View Related

FrontPage Extensions

Oct 16, 2009

I am trying to get a dedicated server from unmeteredservers.com. My website was designed with FrontPage in htm mode. The technical team is asking whether I require FrontPage Extensions, and that if I do, then I cannot use their services because FrontPage extentions has been discontinued. My site has been working very well on many shared servers, I told them. They say I shoulsd find out from my frontpage whether it uses the extensions. I have no idea where I can get that information from in my Frontpage program. How do I get that kind of information?

Meanwhile, I do know that when I used FrontPage to upload my site, the Panels peovided an option to intall the extensions. But now that I upload with CuteFTP, no server has since requested for the extensions to be installed. Will my site work on the server if I simply upload via an FTP without any FrontPage extensions installed?

View 12 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved