Jump to content

Search the Community

Showing results for tags 'apache'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 9 results

  1. In a bid to make my site faster I thought I would do as the site tests suggest and implement gzip page compression. I have checked to see that gzip is enabled. Check. I have added the following code to my .htaccess file. (I also tried the AddOutputFilterByType DEFLATE text/plain but that didn't seem to work, which may be down to the fact that I hadn't added <? ob_start("ob_gzhandler"); ?> at that time) <ifModule mod_gzip.c> mod_gzip_on Yes mod_gzip_dechunk Yes mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$ mod_gzip_item_include mime ^application/x-javascript.* mod_gzip_item_include mime ^text/.* mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* mod_gzip_item_exclude mime ^image/.* mod_gzip_item_include handler ^cgi-script$ </ifModule> Added this code in my php: <? ob_start("ob_gzhandler"); ?> However I get the following error: ob_start(): failed to create buffer in /somefolder/anotherfolder on line 2, referer: https://www.google.com/ ...mod_fcgid: stderr: PHP Warning: ob_start(): output handler 'ob_gzhandler' cannot be used twice... Took me ages to find the fact that I needed the <? ob_start("ob_gzhandler"); ?> in my pages. Annoyingly, most sites tell you to just add the mod_gzip code to .htaccess file. Any ideas?
  2. I am organizing the folder structure of the site in what I thought was a sensible manner, but I am running into some major folder path headaches. There must be some sort of path variables/environment vars that can be set somewhere to alleviate this. As an example, I put all of the common stuff here (header, footer, css, images, etc): example.com/common If a file inside of the example.com folder calls header.php, it is simple: <?php include "common/header.php"; ?> If it is two levels deeper, using relative paths (yuck - please help) it is as follows: <?php include "../../common/header.php"; ?> I won't belabor the point, but this gets messy, and I am running into "path not found" issues with nested content. I don't want to hard-code the absolute path (all the way back to root level) for one simple reason, the development is on my desktop (Ubuntu linux w/ apache 2.4) and the paths are different from the web server. How do I set a global path variable in apache?
  3. I'm looking for directives that help solving the problem of redirecting a not existing subdomain towards the www subdomain. I know/guess .htaccess is used, but cant figure out how. My present situation is that existing subdomains are redirected well. I adjusted virtual hosts in this way: <VirtualHost *:80> ServerName mysite.dev ServerAlias mysite.dev *.mysite.dev DocumentRoot X:/wamp/www/TestVirtHost/ <Directory "X:/wamp/www/TestVirtHost/"> Options +Indexes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory> </VirtualHost> my etc/hosts file has the following rules 127.0.0.1 *.mysite.dev mysite.dev 127.0.0.1 subdomain_one.mysite.dev 127.0.0.1 subdomain_two.mysite.dev Can some expert explain please what the .htaccess should look like for the problem explained above.
  4. Hello everyone. I tried to install and configure PHP and MySQL for use on my own website using XAMPP. However, the Apache module gives me an error each time I try to start it. 10:40:53 [main] Starting Check-Timer 10:40:53 [main] Control Panel Ready 10:41:07 [Apache] Problem detected! 10:41:07 [Apache] Port 80 in use by "Unable to open process" with PID 4! 10:41:07 [Apache] Apache WILL NOT start without the configured ports free! 10:41:07 [Apache] You need to uninstall/disable/reconfigure the blocking application 10:41:07 [Apache] or reconfigure Apache and the Control Panel to listen on a different port 10:41:07 [Apache] Attempting to start Apache app... 10:41:07 [Apache] Status change detected: running 10:41:10 [Apache] Status change detected: stopped 10:41:10 [Apache] Error: Apache shutdown unexpectedly. 10:41:10 [Apache] This may be due to a blocked port, missing dependencies, 10:41:10 [Apache] improper privileges, a crash, or a shutdown by another method. 10:41:10 [Apache] Press the Logs button to view error logs and check 10:41:10 [Apache] the Windows Event Viewer for more clues 10:41:10 [Apache] If you need more help, copy and post this 10:41:10 [Apache] entire log window on the forums As the log said, I have to find and uninstall, disable or reconfigure the application which is blocking Port 80 or reconfigure Apache and the Control Panel to listen to a different port. The question is: What should I do? Should I change port or should I find the blocking application? And if the latter, which application could be blocking Port 80?
  5. Hello everyone, I am not sure if this is the right place to post since I do not know for sure if it is PHP that causes my issue, so I apologize in advance if I shouldn't have posted here. I am using WampServer Version 3.0.0 64bit (Apache: 2.4.17 | PHP: 5.6.16 | MySQL: 5.7.9) on windows10. I am updating a website and I am keeping the database the same, except from some small optimizations here and there. I have a query that selects all active rows of a specific category, then I fetch the results and show the rows: if(mysqli_stmt_prepare($stmt, "SELECT * FROM myTableName WHERE _category=? AND _approved='1' ORDER BY _id DESC LIMIT ?, ?")) { mysqli_stmt_bind_param($stmt, "iii", $category, $offset, $rowsPerPage); mysqli_stmt_execute($stmt); mysqli_stmt_bind_result($stmt,$id,$title,...,$image,...); //all fields are binded, including image while(mysqli_stmt_fetch($stmt)) { //show recipes } } The query is correct and everything shows up fine, except from the image returned by the query. My old database used to store the image with the path, eg "/this/is/the/path/to/image.jpg" but I have updated the image table column to only store the file name so now $image variable should contain only the file name, eg "image.jpg". But it does not. The $image variable still contains the full path, although the table is updated! I though it was some kind of caching, but clearing the browser's cache, going incognito, hard refreshing, changing browser did not change anything. I also tried running: SET GLOBAL query_cache_size = 0; in mySql terminal but that did not change anything as well. I also tested php.ini for Op Cache but it was already disabled: opcache.enable=0 I do not know what to do about this and it is driving me crazy! Any help will be very much appreciated. Thank you all, georgia
  6. In my current website project, I would like to design a secure area for members. I have built basic login systems before, but I want to build something more secure this time. One of the things I would like to do it route requests using the HTTPS protocol. In my research on how to do this, I have been starting to learn about SSL certificates. As I understand it, in order to create an SSL encrypted connection that users can be confident in, I must purchase a certificate from a certificate authority (CA). I am questioning whether I really need to do this, though. Neither money nor information that is extremely sensitive would be handled in the secure area. The purpose of the website is of a nature that membership would be restricted to those personally acquainted with me, so it's not like they would be using a website with some vague "entity" operating it. They could trust me. Would that make it safe for me to use a self-signed SSL certificate? My only suspicion is that a hijacker could potentially inject a new SSL certificate (not sure if this is possible...) and trick users since neither his nor mine would be signed by a trusted CA. I could just get a cheap certificate, but I would like to avoid spending money on this if I don't have to. Maybe a free certificate would be okay? I'm not sure. What do you think is the best course of action for my situation?
  7. Hi guys, I have wamp installed on my windows vista home basic. It was running fine till a while ago. Now when I try to run it it would not load local host. Here is what all I have tried : Upgraded to wamp 2.2e Made sure port 80 is free Made sure skype or any other software is not conflicting with wamp Checked my hosts, and other config files for local host (but suggestions are welcome in case I have missed something. installed .net 3.5 sp1 frame work. When I try to load wamp I am getting a popup which says "Aestan Tray Menu has stopped working". Any suggestions would be welcome. Thanks in advance.
  8. I've downloaded Apache 2.22, MySql 5.6.10 and PHP 5.3.5. I've set them ready in Computer A in my home. I'm able to visit my website by typing localhost in the browser in Computer A. I have another Computer B in my home. I use a router to get on internet. A and B share the router. 1.By now, am I supposed to be able to visit my website from computer B by just typing A's IP address (say 192.168.2.9) in the browser? If it's not working, is it because of the router's firewall? It's not OK whether I tried to ping A's IP address on B, or the other way around. Does this mean A and B can't communicate with each other? (A's IP 192.168.2.9, B's IP 192.168.2.10, submask 255.255.255.0) What might be the problem? 2. What should I do to allow people all over the internet to be able to visit my website using my public IP (IP on the wan side of the router)? I know I should forward the port. But I'm not very familiar with the concept. I know Apache use port 80. So should I just forward port 80 to Computer A's IP address? Is this the port of Computer A or the router? Or I associate the port 80 of the router with the port 80 of Computer A? Is port forwarding the only thing left to do? What else should I do? Thank you very much! Please help me!
  9. I installed wamp on my windows machine and when i tried to open localhost on my browser i received the message."you dont have permission to access / on this server." I searched this on the internet and got to know that there is problem with file and folder permissions.I shoulls change it to 644 and 755.But can you help me on how to change the permmissions.
×
×
  • Create New...