Jump to content

wildteen88

Staff Alumni
  • Posts

    10,480
  • Joined

  • Last visited

    Never

Everything posted by wildteen88

  1. You can only use localhost if Apache is installed locally on your computer. What are you trying to do?
  2. What OS are you using? Windows Mac/Linux. If its Windows just right click the Apache task bar icon and click restart from the context menu. If your new configuration works it should restart with no errors/error sounds during restart. For restarting Apache under Mac/Linux please read this page of the Apache Manual. To test mod_rewrite works just create a simple test file, call it modTest.html and put some random stuff in there. Then create a new fill called ".htaccess" (minus the quotes). Then add this in it: RewriteEngine On RewriteRule ^mod_rewrite_test/$ modTest.html Place that file in that same directory as modTest.html now go to http://my-domain.com/mod_rewrite_test/ It should now show the contents of modTest.html
  3. to enable mod_rewrite edit the the httpd.conf file and find this line: #LoadModule rewrite_module modules/mod_rewrite.so Change it to this: LoadModule rewrite_module modules/mod_rewrite.so Also scroll down to around line 200 and make sure AllowOverride directive has FileInfo listed. Save the httpd.conf file and restart Apache. mod_rewrite should now be available
  4. It is not a mod. Abbreviated words that are commonly used in txt speak are being converted into full English. It is using the built in word censor that comes with SMF. I will have word with the Admins about this too. Especially if is breaking BBCodes.
  5. Yes please use the 'report to moderator' link to report spam and is the most effective. PM'ing a mod is not recommended. All reported posts have been dealt with now.
  6. You can click the Topic Solved link, which is just above the Quick Reply box to mark your topic as solved. I have marked it solved it for you. Glad I sorted your cookie problem out.
  7. You have something else running on port 80. Either disable/uninstall whatever is running on port 80 or change the port Apache listens too. To change the port Apache listens to, read on... Open up httpd.conf and search for the following line: Listen 80 Change 80 to 8080, so the line is now like this: Listen 8080 Save the httpd.conf and restart Apache. Do you get the same error message? If you don't open up a web browser and go to http://localhost:8080/ You should now see a welcome to Apache message. Apache and PHP should now be setup. Note you must have ":8080" (minus the quotes) after localhost due to Apache now listening to port 8080 instead of 80.
  8. When you make a template in Photoshop you use the slice tool to "cut up" your template. Note when you slice make sure you only slice the relevant bits. Do not do big slices. When you go to save the slices give them descriptive names, eg title_bg.gif, title_logo.gif. rather using the default name PS gives them, eg slice_001.gif, slice_002.gif, slice_003.gif etc. When you go to save make sure only save the slices and not the slices and html option. As the generated HTML is well pants. Code your template from scratch.
  9. You must surround the path to the Apache module in quotes ("), like so: LoadModule php4_module "C:/Program Files/Apache Group/Apache2/php/sapi/php4apache2.dll"
  10. Your are correct that php5 comes with additional security. As of PHP5.2 php has included a new setting called allow_url_include. This setting by default is disabled and thus you can not use the latter include. I would recommend chigley's suggestion for using file_get_contents.
  11. Look for a setting called DirectoryIndex to set with files get treated as index files. The following is what it is set to by default: DirectoryIndex index.html If you want say, an index.php file to be treated as an index file. The change the line to this: DirectoryIndex index.html index.php Save the httpd.conf and restart Apache. Now if you place a index.php file in a directory Apache will show index.php automatically when you go the directory.
  12. What is mysql admin? Do you mean mysql administrator? If you do its just a simple install. Just run the .exe file and its installed. When you launch the MySQL administrator fill in the the login credentials to login to the MySQL server. The following should work, unless you setup a username/password combo during MySQL installation. hostname: localhost port: 3306 username: root password: (blank don't type any thing)
  13. You can place those lines anywhere within the httpd.conf. However I prefer to place each line with similar configuration lines. For example I add LoadModule php4_module php/sapi/php4apache2.dll at the end of the LoadModules list and then place the two AddType lines in the AddType list. However the order doesn't really matter. Please note that Apache2.2.x is not compatible with PHP4.4.x. As I have seen many people have problems with PHP4 and Apache2.2.x. Either downgrade Apache to Apache2.0.x or upgrade to PHP5.2x. Also make the following that is highlighted in bold a full path: LoadModule php4_module php/sapi/php4apache2.dll So if you installed PHP in C:/php change the above highlighted text to this: LoadModule php4_module "C:/php/sapi/php4apache2.dll" It is easier to work with full paths than relative paths. NOTE: If you upgrade PHP to version 5.2.x then make sure you use the php5apache2_2.dll module instead of php5apache2.dll - php5apache2.dll module is not compatible with your current version of Apache (version 2.2.x) it is only compatible with version 2.0.x
  14. When you say you installed WAMP, do you mean you install the WAMP package from wampserver.com? Or did you install Apache, PHP and MySQL separately yourself? Also could you tell me how did you "turned off" Apache and PHP? For me when I stop Apache and PHP. Both httpd.exe processes closes. However I am running Win XP HE.
  15. What you will want to do is remove the index.html file from the htdocs/ folder. However the httpd.conf file is is located in the conf/ folder where Apache is installed to.
  16. There is a PECL extension available for this. Read this on the PECL pdf extension.
  17. It is enabled by default. Currently it only highlights PHP code. Eg: <?php // echo hello world message echo "hello world"; ?> You must enclose your PHP within <?php and ?> tags in order for the colour highlighting to work. If you wish to have HTML, CSS, Javascript etc highlighted as well then perhaps see if the SMF developers can include this feature into the next release of SMF.
  18. I just looked through your post above which quoted your session configuration in the php.ini. I noticed this: session.cookie_path = "C:\Documents and Settings\Sean\Cookies" Remove that and leave it as the default value which was "/" Save the php.ini and restart Apache. Now retry the session test code you tried earlier. Setting session.cookie_path to "C:\Documents and Settings\Sean\Cookies" will cause your cookie to be invalid and will not work and thus PHP keeps creating a new session file when you refresh the page.
  19. Looking at the code you provided for testing sessions. The last line is incorrect: echo $session['count']; It should be this: echo $_SESSION['count']; $session (as you have it) and $_session is not the same as $_SESSION. PHP see's these as completely different variables.
  20. I do not like recommended all-in-one packages as I prefer to install AMP manually myself. However if I have to recommend an all-in-one package I'd go for WAMP.
  21. If you have changed the DocumentRoot make sure you also change the main <directory> sub section to the new DocumentRoot. Opne up the httpd.conf and do a search for the following: <Directory "C:/program files/apache software foundation/apache2.2/htdocs"> and then change "C:/program files/apache software foundation/apache2.2/htdocs" to your new DocumentRoot. So the line should read this: <Directory "F:/webroot"> Now save your httpd.conf and restart Apache. It should now be serving F:/webroot
  22. That depends on your setup. If you have both .html and .php files in your website then you can have both stated. Also ungrouwn_admin make sure have saved your httd.conf and that you have restarted Apache. It is important you restart Apache after you have changed its configuration.
  23. You should be able to post in any thread within the forums. Unless you are trying to reply to a locked topic/topic in the freelancing board/forum which doesn't accept posts from normal members.] If you get a PM then you won't be able to reply to that PM, until you get 10 posts (not topics), although topics can count as posts (I think).
  24. Does disabling your firewall help? Perhaps your firewall may be blocking the cookies on localhost. Also could you post a snippet of code of how you set cookies in your script?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.