Tagged Questions
0
votes
0answers
13 views
php encoding utf-8 displayed as ansi
I know this is at age old question but here it goes again.
But i do have really strange issue.
php file containing this
encodingtest.php
<meta http-equiv="Content-Type" content="text/html; ...
0
votes
1answer
11 views
Redirect all requests to subfolder
I have a website on a shared hosting and I would like to redirect all calls to a subfolder.
E.g.:
www.xxx.com/a/b/c
to be redirected to the script located at:
/docroot/public/index.php
Of ...
-1
votes
1answer
21 views
Undefined variable Server in Wordpress - Can't post comments
In my Apache2 logs I get the following error:
PHP Notice: Undefined variable: SERVER in /var/www/wp-comments-post.php on line 20
Line 20:
$server_name = str_replace(".", "\.", ...
1
vote
1answer
14 views
Exclude multiple paths from htaccess rewrite rule
I created a new function with the hope of achieving breadcrumbs and a better URL structure.
Before this I had the following rule:
RewriteRule ^pages/([a-z0-9,&-]+)/?$ ...
0
votes
0answers
16 views
Apache SSI virtual include at wrong position
Ok here is what I have:
Plain .html file in Apache with
<html>
<...>
<!--#include virtual="/SSI/ssi_portlet.php" -->
<...>
</html>
But the result is:
<html>
...
0
votes
1answer
26 views
PHP -l produce different output for same file
I have a web application I'm moving from a web server to an other.
On the old server I have:
Ubuntu LTS 12
PHP 5.3.28
On the new one
Ubuntu LTS 14
PHP 5.5.9
One file produce a syntax error on the ...
-1
votes
0answers
11 views
Giving Subdomains to Laravel in Apache
How can I use Apache's virtual hosts to give wildcard subdomains to one directory?
So, for example, I currently have localexample.com pointing to C:/htdocs/app/public, however I would like ...
0
votes
0answers
22 views
What's the best architecture for multiple websites on the same server? [on hold]
I have a main brand, inside this brand, I have 2 distinct brands.
Now the question is, what's the best server architecture for multiple websites and facebook apps for the 2 brands, all of them will ...
1
vote
1answer
18 views
A way to avoid Apache Alias path to include HTML resources like CSS
Here comes a question because my current solution is not really satisfying me for the following problem:
I have an own PHP Framework with MVC pattern in development. And my Router works perfect and ...
0
votes
0answers
14 views
Accessing PHP Environment variables in php-fpm pool conf file
I am using apache Apache/2.2.22 (Ubuntu)
I am using php5-fpm
I am using PHP version 5.3.10
My issue is the following:
When a request is made to index.php, PHP Environment variables defined in my ...
0
votes
0answers
12 views
PHPMailer SMTP connect() failed on CONTABO VPS but worked locally
This code works very fine locally. But when I put it Online on my VPS it does not work. Can someone please explain me why?
$mail = new PHPMailer;
$mail->CharSet = 'UTF-8';
//Encoding da base de ...
2
votes
1answer
19 views
Redirect any hit to a non-existent directory to a PHP page
What I want to do
For instance, if a user requests /nonexistentdirectory, how could the hit be redirected to /hits.php?d=nonexistentdirectory ?
How I've tried to do it
I've tried the following code ...
-6
votes
0answers
18 views
how to trace a website from another website in an interval [on hold]
I have two web site developed on php and mysql.
I want to update my web site from another one hosted
on another server after each 7 hours.
How is it possible.
0
votes
0answers
7 views
php sqlite not inserting in raspbian from web page
I am running Raspbian on a Pi and installed Apache, Php5 and sqlite
I am inserting some values into sqlite table through php web page, but I am not able to insert though I can upload the file
...
1
vote
1answer
31 views
All my .htaccess redirects are going to index.php
I am trying to redirect all my website traffic from any url to https://, secure ssl using a .htaccess file. This has to match the current domain and redirect including any sub url's.
My code:
...
0
votes
0answers
24 views
CakePHP production; Apache VirtualHost gradually stopped working
Disclaimer: New to Devops and originally from a Windows development background. Ignorance should be expected. Apologies in advance
So I'vejust started working on a server running Ubuntu on Apache ...
0
votes
2answers
21 views
using apache and node at the same time on cloud9
when i'm using different workspaces for apache and for node - they both work fine.
but, if I want to use node on a "php workspace", I just can't, because the apache is always up and using the port ...
0
votes
0answers
11 views
Xampp Java Apps + Php Apps (different ports)
I installed Xampp with Tomcat. I changed the default port of Tomcat to 9000.
So if I type in my browser: http://localhost it will open Xampp index page. If I type http://localhost:9000 it will open ...
-4
votes
1answer
22 views
.htaccess trick change call to url [on hold]
i am thinking bit tricky thing suppose my webpage has call to url abc.com/a.css i want this to be replace by something like mydomain/a.css
any way to do this ?? , is it possible ??
1
vote
2answers
35 views
Run both HHVM and Normal Apache Server
This morning I started using HHVM as my default local server. Most things are fine, but I still have applications that HHVM doesn't fully support yet.
Rather than changing my configuration and ...
0
votes
0answers
9 views
Syntax of the solr query to fetch ONLY forum topics and body by specific user [on hold]
I want to add a filter which only shows forums topic, teaser by a specific user. Username will be entered in the search box.
using apache solr 1.4.1
0
votes
0answers
35 views
Why GZip compression doesn't work for .css and .js but only on .php file extensions
A strange problem occurs when GZipping files on our (updated?migrated) shared hosting server.
Examine these two identical files in the the includes folder /_inc/ with exactly the same contents (php ...
0
votes
0answers
6 views
curl connection to mediawiki api yields empty reply for larger post requests
I am trying to generate Pages to a semantic mediawiki using the mediawiki api. If the content submitted exceeds a certain size, I run into trouble:
regularly, the server respondes http code 100
if ...
0
votes
1answer
12 views
500 Internal Server Error Laravel
Sometimes i got this error: 500 Internal Server Error
My PHP Version 5.4.4-14+deb7u14
My Laravel Version "laravel/framework": "4.2.*"
Apache Server
My DocumentRoot & Directory in httpd.conf is ...
0
votes
1answer
21 views
php: SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it
I have create register and login form using php. And i had took the source from google.
So i have added all the corresponding code, when run index.php.
It shows,
SQLSTATE[HY000] [2002] No ...
0
votes
0answers
11 views
How can I use .htaccess to change post/?id=123 to just post/123? [duplicate]
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^.]+)$ $1.php [NC,L]
This is the current code I have in my .htaccess file to remove .php from every url... I'm still developing on ...
-1
votes
0answers
19 views
Git repo folder not listed in htdocs XAMPP folder
I'm new to PHP, and would like to locally work on a GIT repository which I have cloned using SourceTree/Bitbucket. (It is a repo of a PHP based website.)
I cloned the repository into a folder called ...
1
vote
1answer
24 views
.htaccess Rules Are Not Implemented
On amazon ec2 I've created a .htaccess file with the following rules :
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\.html$ /$1 [L,R=301]
...
1
vote
1answer
50 views
Completely lost with .htaccess
i have the following folder structure on my hosting (it is a shared one)
public_html
|
|
|--- website (contains CodeIgniter application)
|--- otherapp (another CodeIgniter application)
|--- moreapp ...
0
votes
0answers
27 views
how to redirect the site form add on site to main site using htaccess
I want to redirect a add on site to main site uisng htaccess with www before the url.
actually my site is hosted in another domain as an add on.
suppose chaitanya.com is my site. abcd is the add on ...
1
vote
2answers
29 views
Resolve Website Page Pagination through htaccess
Here is my problem.
I want to resolve
Website.in/home-page/page/73/ to Website.in/page/73/
Website.in/home-page/page/74/ to Website.in/page/74/
etc.
One more problem I'm getting is the ...
2
votes
1answer
26 views
Why stomp can't run in apache?
Brief Intro
I'm now using stomp to connect with ActiveMQ based on a PHP site running on apache server.
The Stomp can run in bash but can't run in apache.
Preparation
I install stomp by
pecl ...
-3
votes
0answers
46 views
Fatal error: Class 'Imagick' not found in C:\Apache2\Apache2\htdocs\testimagick.php on line 7
I am trying to setup open-lims application in my machine.When i try to open the application.
i am getting the error "Fatal error: Class 'Imagick' not found" mentioned above.I am not able to load the ...
0
votes
1answer
47 views
Resolve url.html/comment-page-1 to url/comment-page-1 through htaccess [on hold]
Some days back, I have changes WordPress URL's to URL.html via .htaccess. I Know it was very smart move. As google crawled all tne pages, but there were too much 404 error in Webmaster Tools. After ...
0
votes
0answers
14 views
RewriteEngine Doesn't Turn on
i am working on Ubuntu 14.04. i was hoping to make my website working in MVC patterns.
so i need to Activating URL rewriting like myproject.com/controller/action/parameter 1/parameter 2/ parameter3
...
1
vote
1answer
27 views
Strange php redirections with nginx (Works fine in apache)
finally I decide to ask here after hours trying, searching and researching.
Months ago I migrated my site to a newer version and everything works fine with my old hosting in apache.
Recently I ...
-1
votes
1answer
24 views
Apache PHP performance [on hold]
So I have the little prime number calculator.
<?php
$number=$_GET['number'];
echo 'Input: '.$number.'<br><br>';
if((string)(int)$number == $number) {
if($number>1 ...
1
vote
1answer
27 views
“Your PHP installation appears to be missing the MySQL extension which is required by WordPress.”
I've spent 5 hours trying to resolve this issue. I've used every suggestive link that was relevant to my issue that Google listed. Nothing seems to work.
The OS is CentOS 6.5 and has Apache, PHP, ...
-1
votes
0answers
22 views
should i use node.js or apache? [on hold]
I am building an application using mainly HTML5 and web maps. Because of the web maps I am obliged to use PostgreSQL/PostGIS. This pairs perfectly with apache/php.
I built the app using apache/php ...
1
vote
1answer
21 views
Cannot upload file from GCE (Compute Engine) to GCS in PHP by using gsutil
I try to upload file from GCE (Google Compute Engine) to GCS (Google Cloud Storage) by using gsutil in PHP.
**exec("gsutil -m cp xxx.jpg gs://a56/upload", $output, $return_var);**
I can ...
-1
votes
3answers
24 views
Error connecting to MySQL in XAMPP
I have created this simple PHP code for a login page
<head>
<title>Login Page</title>
</head>
<body>
<form method=POST>
<table>
...
1
vote
1answer
39 views
Mod Rewrite Can't get it to work
I have a Mod Rewrite rule from my existing system
#default Lightweight rewriting
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php [L]
Now we have just purchased a new domain ...
0
votes
2answers
34 views
PHP file paths work differently on developer machine
For some reason this path works perfectly on one developer's machine
include dirname(__FILE__) . '/../includes/init.php';
But on my machine I have to remove the '/..' section for it to work.
...
-1
votes
0answers
23 views
PHP-FFMpeg watermark not working
I am trying to get PHP-FFMpeg to watermark a video but it is not working.
I am working on Windows 7 , localhost Apache2 with the newest version of PHP.
I installed PHP-FFMpeg from this source
...
-1
votes
0answers
17 views
How to configure “Memcached” to work in Apache 2.4 on Mac? [on hold]
I've got en error:
Fatal error: Class 'Memcached' not found in /private/var/www/...
I need to install Memcached.
http://memcached.org/downloads
I've tried this (compiled and installed successfully), ...
0
votes
2answers
34 views
How to access sub domain folder from main domain in PHP
I've a site- mysite.com and a sub domain admin.mysite.com . I want to access the the subdomain folder from the main site. The sub domain folder is admin and is in the same directory level as the main ...
0
votes
1answer
17 views
blocking spambot access to my site
I have search the Internet but all resources I found seem not to work (I guess spambots are smarter now). am having a lot of spambots on my site, these spambots are able to register and login to the ...
1
vote
2answers
30 views
How to get RewriteRule to redirect both existing and non-existing pages?
Goal: Send all requests, regardless whether the directory/file exists or not, to http://example.com/index.php
What I have tried:
Rewrite Engine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
...
0
votes
2answers
26 views
“Dynamic” rewrite with mod_rewrite and apache
I´ve a bit of a "strategic" problem with creating a nice mod_rewrite solution for a shop. The shop has different kind of pages:
Products (products.php)
Categories (category.php)
Content ...
0
votes
0answers
24 views
OSX Yosemite Apache Segmentation fault(11)
Hello I installed Yosemite public Beta configured the Apache and installed the Liip php-osx for Symfony2 Development.
If i try to access the app_dev.php i get this errors.
[Fri Aug 29 ...