Skip to content
Advertisement

Tag: apache

Two different projects (different index.php’s) on same server

I’m trying to run two different php frameworks on the same server. The framework to use is determined by the first path in the uri. So for example: http://www.example.com/v1/requestname will go to the index.php located in: /var/www/html/api/api And everything else (http://www.example.com/v2/requestname) will go to the index.php located in: /var/www/html/api2/public Here is my apache 2.2 config: I’ve been attempting to do

WebVirtMgr NGINX -> Apache2 configuration

will anyone help me with transferring configuration from Nginx to Apache2? I dont know what to do with headers editing… Thanks According this: https://github.com/retspen/webvirtmgr/wiki/Install-WebVirtMgr Answer Found solution! Just make you sure, that you have libapache2-mod-wsgi installed

sudo: no tty present and no askpass program specified When useing shell_exec

I have a php page that is trying to run a service restart using: $list=shell_exec(‘sudo /sbin/service NetworkManager restart’); I needed to edit my sudoers file to let this happen. Thus: #Defaults requiretty and apache ALL=(ALL) NOPASSWD: /sbin/service When that failed, as a test I ran: apache ALL=(ALL) NOPASSWD: ALL I have run a shell_exec without the sudo command: $list=shell_exec(‘whoami’); echo

strikethrough characters on php stream output

I am using php ssh2_exec to execute a ps aux command on a remote Linux server… The server initiating the connection is Ubuntu 14.04 and the server I am communicating with is Centos 6.6. Both systems are fully updates and I am using the following versions of PHP and Apache on the Ubuntu system: apache2 2.4.7-1ubuntu4.5 libapache2-mod-php5 5.5.9+dfsg-1ubuntu4.11 php5 5.5.9+dfsg-1ubuntu4.11

.htaccess RewriteRule keeping URL structure

My current rewrite rule: The result above works great so I can format the URL like domain.com/a/b/c I would like to add in a domain switch as well so the results I want is sub.domain.com/a/b/c when you access it using domain.com/a/b/c Currently here is what I have tried But the result of this is http://sub.domain.com/a=a&v=b&id=c and needs to be http://sub.domain.com/a/b/c

Android linux deploy (localhost LAMP server configuration)

Hello my fellow humans! I have two rooted android phones, each running a chroot environment using the “Linux Deploy” app (HTC desire 510 running Kali Linux and vodafone smart 4 mini running Ubuntu). On each device, I have installed LAMP using: When I start apache2 service, the server says that it has started using ServerName 127.0.0.1. However, when I do

How much does using htaccess files slow down website performance (especially with solid state disks)?

The Apache docs say (http://httpd.apache.org/docs/2.4/howto/htaccess.html), “You should avoid using .htaccess files completely if you have access to httpd main server config file. Using .htaccess files slows down your Apache http server. Any directive that you can include in a .htaccess file is better set in a Directory block, as it will have the same effect with better performance.” But that

ModEvasive on Ubuntu 12.04 LTS broken?

I’ve installed mod_evasive on ubuntu 12.04 LTS using the instructions here my mod_evasive.conf looks like: Neither DOSEmailNotify or DOSSystemCommand seems to work. If I run the test.pl, the testing script that comes with mod evasive I will get successful connections followed by 403 forbidden,so the module is picking up the mulitple connections and forbidding further connections. However, no email is

Advertisement