How run PHP sripts in opensuse10.2
actully in Rad hat & fedora there is a folder named www in /var but in suse10.2 there is no such kind of folder ..............
so tell me where i write my php programs to run in browser. in college they said tht make folder in /var/www/html/ |
Check your apache configuration file. On opensuse, it's in /srv/www/htdocs.
|
run:
updatedb then slocate index.html This will provide you with your location. Again why don't you just look at your corresponding documentation for your distribution. Your web server probably isn't configured to serve up PHP so you'll have to configure that too. I think standard installs will NOT have it setup for you to run but all it takes is either a few lines uncommented or added. |
How run PHP sripts in opensuse10.2
hi
*)Put your scripts here: /srv/www/cgi-bin *) before any attempt check following settings: a1-open terminal. a2-run yast2. a3-Network Service --> Hostnames. a4-you must have an entry like or similar to this : 127.0.0.1 (IP Address) localhost (Hostnames) b1-open terminal. b2-run yast2. b3-Network Services --> HTTP Server b4-Check these items : **-HTTP Server : Enable **-Listen on Ports : All Addresses : 80 (or your prefer) **-Open Port in Firewall : Checked Mehrshad Moslehi vigol |
php in suse.... hopeless!!!
Hello all,
have the same problem. I get empty pages.. I read the last reply, but I even donīt get the http-server in the yast services ... although itīs running... whatīs going on? get more than 20 different config-files. How do I get out without kicking out suse? Thanx, Ronald |
Dont listen to vigol he is completely wrong. cgi-bin is for CGI scripts and NOT PHP.
PHP will be parsed by the webserver as long as you tell it WHERE the php files are and add support for the extension. You can put your PHP files in your web directory root aka /var/www/htdocs or whatever it is. ronald-be can you be more specific. What are you trying to do? Do you get empty pages when you point your browser to http://localhost or are they blank when you are trying to use PHP? |
problem solved !!!
Hi all,
Well, I was double-clicking on a PHP-file, forgetting PHP is processed by the server... It was in the textbook, but alas... Iīm still not sure the SUSE-package is OK, so I first recompiled apache and PHP from source. Documentation is in the source-package but you have to add options when doing ./configure. Thanx anyway... Now trying to use XML in it... Greetings, Ronald |
All times are GMT -5. The time now is 10:18 PM. |