Apache :: Adding Variables To Environment
Nov 25, 2014
I was trying to get the OCI8 and PDO_OCI extensions of PHP to work with Apache 2.4 and one of the things that needed to be done was to add a couple of variables to the Apache environment, but when I added these:
ORACLE_HOME="/some/path"
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$ORACLE_HOME/lib"
Apache took ORACLE_HOME fine, but LD_LIBRARY_PATH never took the values of the variables, I had to put the absolute value of them in order for it to take it.
How I can get Apache to take variables?
This is on Linux.
View 1 Replies
ADVERTISEMENT
Jun 19, 2013
Apache (2.2) logs. How can i log the environment variables? (pls do not send me link to manpages - i have it - at least not at this point).I added in apache.conf to the LogFormat combined line for test purposes one environment variable which is valid for sure....
View 1 Replies
View Related
Mar 7, 2014
I am developing a php web application using Apache on CentOS6. I have set a custom environment variable in CentOS on command line by using: export test_var=3
View 1 Replies
View Related
Sep 7, 2013
I'm trying to rewrite the urls across a site I'm developing, which pass get variables like the following:
localhost/link/link1/page.php?id=12
would look like:
localhost/page/12
The first link in the htaccess file works fine, but the following ones don't (whatever the order, the first one works). I'm attaching a snippet of the file here:
# http://localhost/html/content_quiz/quiz-results.php?quizid={number}# to# http://localhost/results/quiz/{number}RewriteRule ^results/quiz/([0-9]+)/?$ /html/content_quiz/quiz-results.php?quizid=$2 [NC,L]# http://localhost/html/content_pages/results.php# to# http://localhost/resultsRewriteRule ^results/?$ /html/content_pages/results.php [NC,L]# http://localhost/html/content_quiz/grade.php?quizid={number}# to# http://localhost/quiz/{number}/gradeRewriteRule ^quiz/([0-9]+)/grade/?$ /html/content_quiz/grade.php?quizid=$3 [NC,L]
View 1 Replies
View Related
Oct 11, 2012
Does the apache virtualhost environment lower the web or apache server's security? virtualhost has no security issues.
View 3 Replies
View Related
Apr 4, 2006
I installed Fedora Core 4 from the DVD included with the "Run Your Own Web Server" book. Everything went great.
Now I need to add IMAP to PHP. This has proved very difficult, as it seems that the sources are not provided. I downloaded the latest Apache and PHP and tried to build with the same configuration used to build the ones that came with the book. (Apache went fine - the module inclusions are done through the configuration files. PHP is not going well at all - I grabbed the ./configure options from a phpinfo() call, and it just barfed all over the place.)
Simple question: is there an easy way to get the IMAP into PHP without going through the recompilation?
Simple answer: Install the PHP-IMAP RPM. I sure made this a lot harder than it need to be.
View 1 Replies
View Related
Apr 20, 2009
I run a Perl/CGI script from a Web page to download some files located in a Linux server. When I click from a Windows XP on the link of the file to download via this Web page (IE), a dialog box will be displayed to ask me to "Open" or "Save" the file (.txt, .doc, .xls,...) but for some extensions like ".dat" or ".asc", the dialog box ask me to save it only and I have not an "Open" button.
I tried to configure Apache to add these extensions as text/plain by adding these lines in http.conf:
AddType text/plain .asc .txt .dat
How can I add these extensions (.dat, .asc and other extensions) to Apache configuration to be able to open it with Textpad or Notepad?
I hope that the users will be able to open it with Notepad or TextPad without saving it. I know that we can add this type directly in the stations XP but I have a lot of users and I cannot manage that. I hope to perform it from the server. I think something is wrong or missing in my AddType, AddHandler or LoadModule?
View 5 Replies
View Related
Oct 22, 2014
I am attempting to add a header a number of requested urls i.e.[URL]...
I understand that this can be achieved by
-using mod_rewrite to set an environment variable
-using mod_headers to add a header based on the existence of an environment variable.
So far I can add the a new header thus
Header add RSS_FEED_URL "Akamai-Edge-Control"
How to achieve this.
View 1 Replies
View Related
Jun 2, 2015
We have an ongoing problem with Plesk on 1and1 dedicated servers.We host around 80 websites, all of which are very light and have relatively low traffic. When we get to setting up around the 70th website and create a new sub-domain, Apache crashes with the error:
Template_Exception: Can not restart web server:
file: /usr/local/psa/admin/plib/Service/Driver/Web/Server/Apache.php
line: 104
code: 0
We then run "bootstrapper.sh repair" to get Apache back online. But can't create any new sub domains, without the same issue occuring. With each server, 1and1 raise a ticket with Parallels, who log in and fix the issue. But then Following the Parallels fix, the server runs slowly, sometime throwing up 502 errors etc, which nobody is able to fix, and again, we have to move servers.We have just hit exactly the same issue on our 3rd and final 1and1 server.
View 1 Replies
View Related
Sep 23, 2013
I am setting up my work environment on OSX (a new macbook), and my previous setup is a Windows 7 PC. I've found that mod_rewrite is no longer working, and have found some clues why:
Typically, I want to take [URL] ....
which by mod_rewrite will get turned into [URL] ....
so far so good, and this works fine on the Windows PC.
However, I believe Apache on my macbook has something configured differently, as since it knows about the file catalog.php, it appears to update [URL] ....
BEFORE the mod_rewrite happens. Hence the mod_rewrite fails.
I am basing this on having enabled RewriteLog in httpd.conf.
Found the fix. Per stackOverflow - turns out adding the following to the .htaccess file:
Options -MultiViews stops this behavior.
Source: [URL] ....
View 1 Replies
View Related
Oct 23, 2014
I am attempting to add a header to a number of requested urls i.e. domain/feeds/chicago, domain/feeds/*.I understand that this can be achieved by
•using mod_rewrite to set an environment variable
•using mod_headers to add a header based on the existence of an environment variable.
So far I can add the a new header thus Header add RSS_FEED_URL "Akamai-Edge-Control"
View 1 Replies
View Related
Feb 2, 2007
how can i change mysql variables in dedicated server?
WHM 10.8.0 cPanel 10.9.0-R57
CentOS 4.4 i686 - WHM X v3.1.0
View 7 Replies
View Related
May 21, 2009
I have an external redirect to internal rewrite rule that maps multiple URL parameter keys with their associated values...
View 1 Replies
View Related
Nov 3, 2007
I initially wanted to set up a VPS because I want to build a web application. The first phase is to set up a development environment, testing environment and production server. For the development environment, I want to set up an SVN server for my code (one reason why I chose a vps instead of a shared server) as well as a bug tracking system. Each environment would be under subdomains, except the production server (development.domain.com, trac.domain.com, testing.domain.com).
My question is what is the best way to utilize my VPS for this type of environment? Should I create a client for each environment? Stick everything under my admin account? I'm sure this is a simple question, but I just want to make my system as organized as possible.
At the minimum, could someone point me in the direction of any resources?
View 5 Replies
View Related
Oct 5, 2009
I bought brand new server (2x i7 (8cores), 12GB DDR3, 4x1TB HDD etc...)
Well basically i want to divide my server into few VPS, so how can i start, which virtualization to use etc...
View 6 Replies
View Related
Mar 30, 2008
what others are doing within their hosting environment in which they are providing servers to their customers, either dedicated or shared. Do you build custom servers, use desktops or buy name brand like Dell, HP or IBM. I am curious as to why you take what approach you do. How large is your environment as far as servers go and how many customers you have.
Secondly are you currently taking advantage of virtualization technologies within your server environment. If so for what main purpose? Consolidation of server sprawl, availability, reduced hardware costs, heating/cooling, floor space, etc.
View 1 Replies
View Related
Jul 25, 2007
I am still in a thinking stage and will like to learn from your experience, and was wondering if any of you folks have a hybrid environment i.e. Linux and Proprietary systems and what kind of issues do you run into. And also, what pieces of technology you have - which are open source and which ones you have are proprietary and any changes you anticipate 1 year out.
View 1 Replies
View Related
Sep 27, 2007
I have 4 of these xeon servers, i want to setup a grid environment...
View 6 Replies
View Related
Mar 1, 2009
Anyone have any experience using R1Soft in a virtualized environment as the VPS provider rather than the VPS user?
I'm wanting to offer some solid bare metal backup. It is generally difficult to do sound backup procedures in dom0, since can sometimes suffer file corruption when backing up running domUs from outside of them, and I use LVM drives rather than disk images.
I've always heard backing up from inside domU is best.
R1Soft is an obvious option but the pricing seems quite high and I'm wondering what kind of CPU/disk usage impact it could have. Say you just have 16 virtual servers per box (2 per core)... that is 16 instances running, and ~$2400 just in licenses alone.
Anyone have any experience doing backups/CDP in a virtualized environment? You using R1Soft or something else? Inside domU or out?
I wish R1Soft offered monthly pricing, since then the upfront investment per customer isn't nearly as much.
View 3 Replies
View Related
Feb 15, 2008
I'm in the process of trying to document a process for setting up any new LAMP servers in our hosting environment and I was wondering if anyone had any input on software and best practices that they use in their environment and why. I.E.
PHP setup
Apache setup
Preferred Linux Distro
FTP program used
User creation guidelines
Default php.ini settings
Default site settings
etc.
View 2 Replies
View Related
Aug 10, 2008
Just find this piece of application, have any one tried and would like to share experience?
View 2 Replies
View Related
Mar 8, 2008
Pros/cons? Success stories? Security/stability? Tried w/ cPanel? Yes/no?
A good friend handed me a SLES disc awhile back and I'm loading it up now to give it a shot on a whitebox with one of my test domains and IP's. Anybody have anything to share?
View 2 Replies
View Related
Sep 2, 2008
I'm running SQL 2005 in my hosting environment, and plan on offering as part of my plans.
The one issue I'm having is any user can view all the databases. My main issue is I need to store client information (sorry, I only can afford one server) into the database. Basically I'm creating *all* the backend panels, management, etc in ASPNET/C#.
The database will have FTP, email, payment, etc stored it in. Should I hold off and only offer mySQL? I DO NOT want the users seeing my databases like that. They can't access them, but still. I don't know what Microsoft was thinking!
I was thinking about developing my own SQL Manager where you could execute scripts, edit/create tables, and do everything you needed right inside of your webbrowser. This is, of course, a lot of work when you can do it easily in SQL Manager express. I imagine my way would be easier since I could make a list of blocked commands, run a check on the commands the user is executing, and block them.
By the way, I'm running Windows 2008 x64 w/IIS7 and the entire panel will be custom made by me and two other programmers, with me being the lead developer.
View 13 Replies
View Related
Jul 17, 2007
In your environment, have you ever used diskless machines (e.g. booted with BOOTP/DHCP/TFTP) for any reason? Where in your environment are you making use of them (e.g. what types of servers - web, application, database, DNS, etc...), and how has it turned out for you?
Has it actually yielded any of the promised benefits that the literature on them says, or was it a pain to set up and maintain?
Any interesting use cases on what you use them for and, as importantly, what are your criteria for determining whether a particular type of server should be diskless or not?
As this forum is filled with people with lots of experience running hosting businesses or their own web applications and therefore have managed thousands of machines between yourselves, I figured this is an appropriate and interesting question to ask. I'm hoping to get insights from here that I can't get from reading any old web article.
View 1 Replies
View Related
Jun 24, 2009
I am trying to create a subdomain on my dedicated server myself without paying 20 bucks to get it done through the host. I've been able to create the directory through IIS Manager and have it setup to point to a specific IP.
I'm not entirely sure what to do from this point on....When I type in the subdomain on the browser, it says it can't find it, so I'm guessing I have to do something through the DNS but not sure on how to do this.
It's IIS 6 on a Windows 2003 Server.
View 8 Replies
View Related
Jun 16, 2009
i want to install subversion on my shared environment,
i want to ask if it will waste alot of system resource or any problem?
my server is centos with cpanel
View 4 Replies
View Related
Aug 17, 2009
I am running my Apache web server inside chroot. But when ever I use curl or mail functions, I am getting error "Could not resolve host name <<Host name>>".
View 2 Replies
View Related
Apr 17, 2009
I have seen some shared hosting providers include cPanel. As far as I understand cPanel is to manage and install apps on VPS. Why would you need that on shared hosting?
View 14 Replies
View Related