Question: I have a new server stood up (Windows 2012) to replace the current 2003 servers. I have Apache 2.4 + PHP 5.6 + MySQL installed for websites to be hosted. I setup Apache, and a virtual host for a test site. I then created a host file entry on my local to point to it. Instead of going to the root of the site, the browser takes me up one level to the parent folder, and gives me a link to go into site folder. Any idea what would cause this behavior? I don't see any difference in config …

Member Avatar
Member Avatar
+0 forum 12

Hey everyone. Long story short i installed Centos web panel. Its amazing so far. This is my second time installing it as i messed something up the first time, first time i was able to change the apache template in each directory itself and it would change. Now i cant...I followed http://forum.centos-webpanel.com/apache/default-page-displayed-for-all-domains/ didnt work. First time around i followed http://www.servermom.org/basic-configuration-centos-web-panel/2009/ and http://www.servermom.org/activate-varnish-cache-server-cwp/2021/ and it worked. I went through it again. Didnt work this time. In my logs though it says: File does not exist: /var/www/html/search Directory index forbidden by Options directive: /var/www/html/ File does not exist: /var/www/html/search File does not …

Member Avatar
Member Avatar
+0 forum 1

Hi guys, I am trying to create a login page using apache mod_auth_form to authenticate users. Once the user is authenticated he/she should be able to access the main page. # my public directory: # C:/webroot/ regtrack_newSG.php # my protected directory: # C:/webroot/myapp/ regtrack_studysiteone.php # my password file: C:/Apache24/passwd/passwords # .htaccess file under the protected directory: # AuthFormProvider file AuthUserFile "C:\Apache24\passwd\passwords" AuthFormLoginRequiredLocation /regtrack_newSG.php AuthFormLoginSuccessLocation /myapp/regtrack_studysiteone.php AuthType form AuthName realm Session On SessionCookieName session path=/ SessionCryptoPassphrase secret Require valid-user # httpd config: # LoadModule auth_form_module modules/mod_auth_form.so DocumentRoot "c:/webroot" <Directory "c:/webroot"> Options Indexes FollowSymLinks AllowOverride AuthConfig Order allow,deny Allow from all </Directory> …

Member Avatar
Member Avatar
+0 forum 3

Hi folks, I have a situation that's most easily explained via example, I think. So here goes. Let's say I have the following URLs: 1. /page.asp?id=123 2. /page.asp?id=123&category=ABC 3. /page.asp?id=123&category=ABC&var3=X&var4=Y I need these pages redirected. Currently links 1, and 2 redirect correctly. Option 3 though can have an arbitrary number of other parameters with arbitrary values. What I need to do is, for page.asp, ignore all parameters aside from id and category. Is there a way to do this with rewrite rules? If not, would it be possible to do if I did have the names of the other parameters? …

Member Avatar
Member Avatar
+0 forum 5

Hello all: Somebody, anybody, please please help. I am running the latest version of Fedora and below you will find the contents of /etc/httpd/conf/httpd.conf file. My problem is that when I try to view my site from the web I get the "Forbidden / You don't have permission to access / on this server." error. I have tried everything under the sun, including [code]chcon -R -h -t httpd_sys_content_t /home/www/mine.website.com/htdocs [/code] Permissions of all directories and files are set to rwxr-xr-x leading from /home all the way to the files inside htdocs. This is what the iptables look like on this …

Member Avatar
Member Avatar
+0 forum 14

hi, i have a webserver with a dns and i installed wampserver on it with putin my website on www, the problem is when i try to access from any computer with internet www.MyDomainName.com it work fine, then after a 2 or 3 min its wont and its says web page inaccessible, and while i enter on webserver machine with teamviwer and restart wampserver, and when i tape www.mydns.com its work then after 2 or 3 min its happend again, i tought i have aproblem with hosts file, here my hosts file looks like: ???,???,??,??? www.Mydns.com 127.0.0.1 www.Mydns.com ???,???,??,??? = …

Member Avatar
Member Avatar
+0 forum 4

I have Skype installed on my PC, as i knew using port 80 as default. Then, i changed httpd.config to 8080, but my apache not starting After did a little googling, i have to uncheck 443 on Skype setting. My question: is the apache uses 2 ports? And why?

Member Avatar
Member Avatar
+0 forum 2

Hi, I have three folders in my project named as apache, php and mysql. I want to update my php,apache and mysql to latest version but I do not want to reinstall all the system again. My system works in this way that we copy all the folders and install the services. Can anyone tell me that how can I update the existing files with the new updated patches. I have searched a lot but not able to find any solution. The only thing I know is that to update apache I need to download the binary files and then …

Member Avatar
Member Avatar
+0 forum 5

I have just installed xampp on a windows 7 os and downloaded my working web application into C:/xampp/htdocs/myweb calling the website with localhost/myweb brings up the home page try calling a specific page like localhost/myweb/about.html is redirected to localhost/xampp/ calling a specific page with localhost/myweb/index.php?include=about shows the correct page I am suspecting the problem in the setup of apaches mode rewrite or virtual host. Apache configuration in the above respect: #LoadModule reqtimeout_module modules/mod_reqtimeout.so LoadModule rewrite_module modules/mod_rewrite.so #LoadModule sed_module modules/mod_sed.so # Virtual hosts Include conf/extra/httpd-vhosts.conf <VirtualHost *:80> DocumentRoot "C:\xampp\htdocs" ServerName localhost </VirtualHost> <VirtualHost *:80> DocumentRoot "C:\xampp\htdocs\myweb" ServerName myweb </VirtualHost> Adding <Directory …

Member Avatar
Member Avatar
+0 forum 5

Is the check: if (!isset($_SERVER['HTTPS']) OR empty($_SERVER['HTTPS'])) { // We are NOT using SSL } a fool-proof way of checking if we are NOT using SSL with PHP/Apache? I understand that IIS sets to 'on/off' but that's irrelevant for me. I am just wondering if I additionally need to check for port 443, etc.

Member Avatar
Member Avatar
+0 forum 7

I have a known good web page that works without (known) errors when it loads. However, when I try to load it using a very laggy connection (more than 6-10 seconds to load the page - when all works well, it can load in under 500 ms), my hosting provider seems to generate 503 (too many requests) messages, and of course loading fails. The page uses several modules I've written, and uses an asynchronous loader to read them once, when they're needed, so a single page load will often generate 10-20 GET requests for assorted resources. (Actually, it's closer to …

Member Avatar
Member Avatar
+0 forum 1

hi, i create an webapplication with php , i commented the line deny from all in conf file of apache, the users can see the index.php but the problem is: when they click on username and pass therse nothing happens, but on the conexion button it work, its looks like the cursor show on user/pass inputs but when try to put key-char on it it cant move, i seached for this on google dint find, thanks in advance

Member Avatar
Member Avatar
+0 forum 1

Hello All, I need to modify the default settings for the filesMatch in the apache httpd.conf file from - <FilesMatch "^\.ht"> Order allow,deny Deny from all Satisfy All </FilesMatch> so that to also include - <FilesMatch ".(eot|ttf|otf|woff)"> Header set Access-Control-Allow-Origin "*" </FilesMatch> I would appreciate the suggestions, somehow the combination of these regular expressions is not working for me. I tried below - <FilesMatch "^\.ht|.(eot|ttf|otf|woff)"> Order allow,deny Deny from all Satisfy All Header set Access-Control-Allow-Origin "*" </FilesMatch> Due to this, the server won't start complaining about header setting at the wrong place. Thank you.

Member Avatar
Member Avatar
+0 forum 4

I have an instance of Tomcat 7.0.32 installed. The server.xml is configured to use clientAuth="want" in the Connector. I have a Context that has a docBase set to be a network share. This particular Context I want the user to be authenticated before they can access it, otherwise I want them redirected to an error page. I have tried setting security constraints, filters and valves, but I am not sure I am doing it correctly. Could someone tell me the easiest / most efficient way to achieve the above access control to a context? Authenticated users would have the username …

Member Avatar
+0 forum 0

While pressing start button in control panel it's showing some problem detected.

Member Avatar
Member Avatar
+0 forum 3

Does anyone on the forum have any experience with pyspark (Python API for Apache Spark)

Member Avatar
+0 forum 0

hi, how to send email when the server in down in php with cron ? i have 4 server and i want to check every 2 minutes that if any server is down , email send to my gmail account . email send once in 24 hrs not after every 2 minutes.how can i do this with php please guide. thanks in advance.

Member Avatar
Member Avatar
+0 forum 1

I am an Apache/linux newbie. (Trying to learn this technology...) I setup a Mandrake 10.1 server, and am trying to setup virtual hosting. I created a user and a www folder. Set the www folder permission to 777. I created a virtual server as follows: <VirtualHost *> DocumentRoot "/home/domain/www" ServerName *.domain.com <Directory "/home/domain/www"> allow from all Options +Indexes DirectoryIndex index.html index.htm default.htm </Directory> </VirtualHost> I added the DirctoryIndex line, but get the same error with or without that line. If I try to browse any file including the root site, I get the following error message: Forbidden You don't have …

Member Avatar
Member Avatar
+0 forum 6

Hello, I am installed php 5.3.28 with apache 2.2 and mysql 5.5.38 on windows 64 bit machine, despite configuring php correctly with apache and also enabled the extensions, its not able to recognise the mysql extension loaded. The connection attempt through adodb throws the error "call to undefined function mysql_connect() in adodb\drivers\adodb-mysql.inc.php on line 460". Also the function_exists('mysql_connect') return false; I would appreciate your quick suggestions. thank you.

Member Avatar
Member Avatar
+0 forum 3

I need help with getting .php files to run in my browser (Chrome). If it's totally php, it just shows the code itself in the browser. And if it's php and html I get something like this: http://i.imgur.com/QwsRiVG.jpg Here is the code: <!DOCTYPE HTML> <html> <head> </head> <body> <?php // define variables and set to empty values $name = $email = $gender = $comment = $website = ""; if ($_SERVER["REQUEST_METHOD"] == "POST") { $name = test_input($_POST["name"]); $email = test_input($_POST["email"]); $website = test_input($_POST["website"]); $comment = test_input($_POST["comment"]); $gender = test_input($_POST["gender"]); } function test_input($data) { $data = trim($data); $data = stripslashes($data); $data = …

Member Avatar
Member Avatar
+0 forum 7

i am a bit stuck and dont know whats the quickest and easiest solution. We have one domain name lets say www.example.com , however we have many 3rd part sites that are in the directory /export/sites/htdocs/example/ at the moment all access logs and error logs for the 20+ sites we have are stored in one of these files. I want to split the logging so for example we have www.example.com/test1 to have its seperate access log and error log in its directory: /export/sites/htdocs/example/test1/logs Whats the best way to achieve this

Member Avatar
Member Avatar
+0 forum 4

Hi, I'm thinking of using the htaccess file on my apache server to add a layer of security to the payment processing on my site. I am considering the 2 actions below, not sure how yet, but thats where the trial & error & learning begins. 1. rewrite the url for the files that do the processing i.e. the user completes the payment form at `//mydomain/forms/form.php` On submit the form data is posted to `//mydomain/payment/form_process.php` to process the payment - connect to the payment exchange, make payment, write to Db, etc, etc. I'm hoping I can rewite `//mydomain/payment/form_process.php` to something …

Member Avatar
Member Avatar
+0 forum 6

Upon uploading my site files to a GoDaddy hosted website -- with a "coming soon" sort of maintenance page I'm assuming is generated by GD (headline "Future home of something quite cool") -- that's on a shared FTP account for which the root is a different domain and there are others under it (root site), but the root site has no htaccess file and the /www/ htaccess file is blank, for one thing; I know mine works, does on my localhost; and so from the root site folder '/', the subject site's path is 'www/site/', and subsite.com shows the placeholder …

Member Avatar
Member Avatar
+0 forum 1

Hi, In my localhost i'm getting the "500 Internal Server Error".It appears, if i add a htaccess to a website in localhost.It was started to happen recently.I enabled apache proxy module recently.After that only it satrted to happen.I don't know how to disable the proxy module.If anyone can tell me how to do that i'm admiring that.

Member Avatar
+0 forum 0

Hi, I'm facing an issue with Apache proxy module.ProxyPass isn't working.Why is that?Please help me.

Member Avatar
Member Avatar
+0 forum 4

I created a Virtual host using WAMP Server.Its working.But its DB connection not working. <VirtualHost *:80> ServerAdmin webmaster@kiwitravel DocumentRoot "c:/wamp/www/kiwi ServerName kiwitravel.localhost ErrorLog "logs/kiwitravel-error.log" CustomLog "logs/kiwitravel-access.log" common </VirtualHost> DB Connection class Database { const DB_HOST = 'localhost'; const DB_USER = 'root'; const DB_PASSWORD = ''; const DB_NAME = 'admin_kiwi'; public function __construct() { $this->_dbconnect = mysql_connect(self::DB_HOST,self::DB_USER,self::DB_PASSWORD); if ($this->_dbconnect) { $db = mysql_select_db(self::DB_NAME,$this->_dbconnect); } else { die(mysql_error()); } } }

Member Avatar
Member Avatar
+0 forum 1

Hello, I am having issue connecting my Access database to my PHP site via ODBC. Here is what I am doing: <?php $dbName = "F:\Data\Web\_Home\TickSys\TickSys.accdb"; if (!file_exists($dbName)) { die("Could not find database file."); } print "Found DB File."; $db = new PDO("odbc:DRIVER={Microsoft Access Driver (*.mdb, *.accdb)}; DBQ=$dbName; Uid=; Pwd=;"); ?> The error I receive is: Found DB File. Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[IM002] SQLDriverConnect: 0 [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified' in F:\Data\Web\_Home\TickSys\index.php:20 Stack trace: #0 F:\Data\Web\_Home\TickSys\index.php(20): PDO->__construct('odbc:DRIVER={Mi...') #1 {main} thrown in F:\Data\Web\_Home\TickSys\index.php on line 20 What I have tried: …

Member Avatar
Member Avatar
+0 forum 1

I need xampp download link for windows 7 64 bit.

Member Avatar
Member Avatar
+0 forum 1

Hi all, I installed wamp server as well as oracle in my computer where oracle 9i is opening but wamp server is not working . very urgent. Subrata

Member Avatar
Member Avatar
+0 forum 3

Hello, I am trying to configure PHP 5.3 on already installed Apache 2.0 on windows machine, using the guidelines mentioned on - http://www.thesitewizard.com/php/install-php-5-apache-windows.shtml So far I have done - LoadModule php5_module "C:/PHP/php5apache2.dll" AddType application/x-httpd-php .php PHPIniDir "C:/PHP" All these at the right spots in httpd.conf file. I have apache in C:/Apache & PHP in C:/PHP directories. I have also downloaded the right php5apache2.dll and placed at the right directory. Restarted the server. But when I try to start the Apache, it does not start and throws the error - "The requested operation could not be completed" Thank you.

Member Avatar
Member Avatar
+0 forum 12

The End.