Tagged Questions
1
vote
0answers
19 views
Multiple frameworks on one URL with Apache
Note: URLs, usernames, etc. have been changed for privacy.
I am designing an API in Flask, but the website is originally in PHP. Eventually this will be changed, but for the moment I would like both ...
0
votes
1answer
15 views
Why does php script die at log_message?
What would cause my script to die on this line:
log_message('debug', "Config Class Initialized");
Details:
This line is in codeigniter system/core/config.php file and is on a site that previously ...
0
votes
0answers
7 views
FFMPEG for APACHE 2.4.6 (x64), PHP 5.5 (x64), MYSQL 5.6 (x64) on WINDOWS 8 (x64) MACHINE
FFMPEG for APACHE 2.4.6 (x64), PHP 5.5 (x64), MYSQL 5.6 (x64) on WINDOWS 8 (x64) MACHINE
I need to install FFMPEG on my windows 8 machine running DRUPAL ZEN custom theme. Can someone tell me where I ...
0
votes
2answers
21 views
URL inside php get variable is not redirecting. It gives 404 error
Recently I moved my hosting from godaddy to hostgator.
I have a download page in my website (getintopc.com) called download_direct.php What it does it accepts the URL parameters e.g.
...
1
vote
1answer
49 views
Parse CSS file as PHP
So, I moved into a new host. I was using some code in my htaccess to parse css files as PHP. But in this new host, it didn't work. I googled and googled and tried every code I find. All single of them ...
-2
votes
0answers
24 views
How to SAFELY give PHP/Apache write permission in a folder?
I need to have PHP/Apache write some files to a folder on my server. I understand how permissions work and I understand how to change the default Apache user. I also know not to run Apache as root. My ...
0
votes
0answers
18 views
wordpress site uploaded on Plesk server gives warning and permalink issue
I have uploaded my WordPress site to shared plesk parallel panel to dedicated plesk parallel panel. But now I am getting one warning in testimonial rotator plugin as follow :
Warning: file_exists() ...
0
votes
2answers
33 views
php code not executing. Checked config files already
I have some php code in a seperate file and its being called using javascript. But the php code isnt working. instead its just putting the code in the div. Like the full code is in the div. how can i ...
0
votes
0answers
14 views
executing script as sudo -u user with php, while stopping apache script get killed also
In my php script I use line like that to execute some script:
exec('sudo -u USERNAME ./script.sh', $result)
The script is executed correctly by user USERNAME but if I stop apache or it get crashed ...
1
vote
1answer
18 views
git frontend function(ality) for smart http git in php?
I am busy installing gitolite3 with smart http. Gitolite3, essentially, is just a bunch of scripts that relay requests back to the git-http-backend (i think), and calls all sorts of hooks ...
0
votes
3answers
51 views
Why is php not running?
I've seen this question answered many times, but most end either unanswered or by telling the asker to put this:
<?php phpinfo() ?>
in a test file. Obviously, if that produced what was ...
0
votes
0answers
11 views
Access-Control-Allow-Origin: 500 Internal Error
So I am trying to have siteA do a jquery .load of some content on siteB. In doing this, im getting the Access-Control-Allow-Origin Error. So on siteB, I placed a .htaccess file that should allow ...
1
vote
0answers
25 views
Improving connection speed between postgresql and php
I have a setup for connecting to a postgresql database the works like this:
Apache
PHP pg_connect
prepared_statement
ip address to server
pg_bouncer
unix socket
return queried data
When I return ...
0
votes
1answer
38 views
How to make apache2 user to access the file in /root directory?
I am using Linux 12.04,apache and php is installed on it.I want to access a text file in /root/ folder.I am really confused with the permissions.The php script i m using
<?php
$file = ...
1
vote
0answers
23 views
PHP 5.4.16 and FreeTDS (php_dblib.dll): Unable to load extension
Goal
Connect to a MSSQL 2008 R2 server using the FreeTDS (php_dblib.dll 0.82 + 20110906 patches) Drivers for PHP 5.4.16 (VC9).
I am unable to use any alternative to FreeTDS unless the client also ...