انجمن‌های فارسی اوبونتو

کمک و پشتیبانی => برنامه‌سازی => نویسنده: abolfazl.aghaii در 27 آذر 1393، 03:26 ق‌ظ

عنوان: مشکل lamp
ارسال شده توسط: abolfazl.aghaii در 27 آذر 1393، 03:26 ق‌ظ
lamp  رو از داخل آموزش نصب کردم ولی وقتی داخل مرورگر میزنم locahost بهم این صفحه رو میده ولی phpmyadmin میادبرام




Ubuntu Logo Apache2 Ubuntu Default Page
It works!

This is the default welcome page used to test the correct operation of the Apache2 server after installation on Ubuntu systems. It is based on the equivalent page on Debian, from which the Ubuntu Apache packaging is derived. If you can read this page, it means that the Apache HTTP server installed at this site is working properly. You should replace this file (located at /var/www/html/index.html) before continuing to operate your HTTP server.

If you are a normal user of this web site and don't know what this page is about, this probably means that the site is currently unavailable due to maintenance. If the problem persists, please contact the site's administrator.
Configuration Overview

Ubuntu's Apache2 default configuration is different from the upstream default configuration, and split into several files optimized for interaction with Ubuntu tools. The configuration system is fully documented in /usr/share/doc/apache2/README.Debian.gz. Refer to this for the full documentation. Documentation for the web server itself can be found by accessing the manual if the apache2-doc package was installed on this server.

The configuration layout for an Apache2 web server installation on Ubuntu systems is as follows:

/etc/apache2/
|-- apache2.conf
|       `--  ports.conf
|-- mods-enabled
|       |-- *.load
|       `-- *.conf
|-- conf-enabled
|       `-- *.conf
|-- sites-enabled
|       `-- *.conf
         

    apache2.conf is the main configuration file. It puts the pieces together by including all remaining configuration files when starting up the web server.
    ports.conf is always included from the main configuration file. It is used to determine the listening ports for incoming connections, and this file can be customized anytime.
    Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/ directories contain particular configuration snippets which manage modules, global configuration fragments, or virtual host configurations, respectively.
    They are activated by symlinking available configuration files from their respective *-available/ counterparts. These should be managed by using our helpers a2enmod, a2dismod, a2ensite, a2dissite, and a2enconf, a2disconf . See their respective man pages for detailed information.
    The binary is called apache2. Due to the use of environment variables, in the default configuration, apache2 needs to be started/stopped with /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will not work with the default configuration.

Document Roots

By default, Ubuntu does not allow access through the web browser to any file apart of those located in /var/www, public_html directories (when enabled) and /usr/share (for web applications). If your site is using a web document root located elsewhere (such as in /srv) you may need to whitelist your document root directory in /etc/apache2/apache2.conf.

The default Ubuntu document root is /var/www/html. You can make your own virtual hosts under /var/www. This is different to previous releases which provides better security out of the box.
Reporting Problems

Please use the ubuntu-bug tool to report bugs in the Apache2 package with Ubuntu. However, check existing bug reports before reporting a new bug.

Please report bugs specific to modules (such as PHP and others) to respective packages, not to the web server itself.
عنوان: پاسخ : مشکل lamp
ارسال شده توسط: دانیال بهزادی در 27 آذر 1393، 03:28 ق‌ظ
کدوم صفحه؟
عنوان: پاسخ : مشکل lamp
ارسال شده توسط: QSBuntu در 27 آذر 1393، 09:30 ق‌ظ
اینکارو یه امتحانی بکنید:
اول آپاچی سیستم رو غیر فعال بکنید با این کد
sudo service apache2 stopبعدش توی مسیر لمپ ، لمپ رو استارت کنید با سودو:
sudo /opt/lampp/lampp start(توجه :مسیر لمپ تو سیستم من اینه: /opt/lampp )

حالا لوکال هاست رو امتحان کنید و ببینید درست اجرا میشه یا نه؟
عنوان: پاسخ : مشکل lamp
ارسال شده توسط: abolfazl.aghaii در 27 آذر 1393، 08:13 ب‌ظ
 من همون دستورات داخل آموزش رو زدم من مسیر نصب رو عوض نکردم
ولی بهم خطا میده
sudo: /etc/lampp/lampp: command not found
عنوان: پاسخ : مشکل lamp
ارسال شده توسط: saeed_e00 در 27 آذر 1393، 11:31 ب‌ظ
شما درست نصب کردین دیگه

بعد از نصب آپاچی صفحه پیش فرض رو نشون میده و مشکلی نداره
عنوان: پاسخ : مشکل lamp
ارسال شده توسط: دانیال بهزادی در 28 آذر 1393، 01:58 ق‌ظ
متن اون صفحه بهترین راهنما برای اینه که باید چی کار کنی. یک بار بخونش!
عنوان: پاسخ : مشکل lamp
ارسال شده توسط: abolfazl.aghaii در 30 آذر 1393، 09:38 ب‌ظ
بچه ها نمیتونم ترجمه کنم  :( :(
نمیفهمم باید چکار کنم ??? ??? ??? :-s :-s
عنوان: پاسخ : مشکل lamp
ارسال شده توسط: دانیال بهزادی در 30 آذر 1393، 09:47 ب‌ظ
خلاصه این که الآن آپاچی‌ات درست نصب شده و داره کار می‌کنه. ریشه‌ی آپاچی هم این‌جاست: /var/www/
عنوان: پاسخ : مشکل lamp
ارسال شده توسط: سالار مقدم در 30 آذر 1393، 09:51 ب‌ظ
بچه ها نمیتونم ترجمه کنم  :( :(
نمیفهمم باید چکار کنم ??? ??? ??? :-s :-s
سلام
لازم نیست کار خاصی انجام بدید، وب سرور شما به درستی نصب شده. کافیه پرونده هاتون(HTML, PHP, ...) رو در پوشه ی var/WWW/ قرار بدید تا اجرا بشند.
عنوان: پاسخ : مشکل lamp
ارسال شده توسط: abolfazl.aghaii در 03 دی 1393، 07:41 ب‌ظ
این پیغام رو میده
 
باید پورت رو عوض کنم؟
Not Found

The requested URL /index.php was not found on this server.
Apache/2.4.7 (Ubuntu) Server at localhost Port 80
عنوان: پاسخ : مشکل lamp
ارسال شده توسط: سالار مقدم در 03 دی 1393، 07:47 ب‌ظ
این پیغام رو میده
 
باید پورت رو عوض کنم؟
Not Found

The requested URL /index.php was not found on this server.
Apache/2.4.7 (Ubuntu) Server at localhost Port 80
index.php رو در مسیر /var/www/ قرار دادی؟ آدرس localhost/index.php رو میدی؟
عنوان: پاسخ : مشکل lamp
ارسال شده توسط: abolfazl.aghaii در 03 دی 1393، 08:07 ب‌ظ
آره دقیقا همین هایی که گفتین رو میزنم
عنوان: پاسخ : مشکل lamp
ارسال شده توسط: دانیال بهزادی در 03 دی 1393، 10:01 ب‌ظ
بزن http://localhost/ باید index.php رو نشون بده
عنوان: پاسخ : مشکل lamp
ارسال شده توسط: abolfazl.aghaii در 03 دی 1393، 10:19 ب‌ظ
نشون نمیده همون صفحه اولی رو که گذاشتم رو نشون میده
عنوان: پاسخ : مشکل lamp
ارسال شده توسط: دانیال بهزادی در 03 دی 1393، 10:20 ب‌ظ
دقیقا توضیح بده LAMP Server رو چطور نصب کردی؟
این‌جا رو امتحان کن: var/www/html/index.php
عنوان: پاسخ : مشکل lamp
ارسال شده توسط: abolfazl.aghaii در 03 دی 1393، 10:24 ب‌ظ
از داخل یه آموزش نصبی که تو اینترنت بود نصب کردم
عنوان: پاسخ : مشکل lamp
ارسال شده توسط: دانیال بهزادی در 03 دی 1393، 10:25 ب‌ظ
اون مسیری که گفتم رو امتحان کردی؟
عنوان: پاسخ : مشکل lamp
ارسال شده توسط: abolfazl.aghaii در 03 دی 1393، 10:29 ب‌ظ
lamp  رو از اول نصب کنم درست میشه؟

کاری که گفتین رو رفتم مسیر درسته
عنوان: پاسخ : مشکل lamp
ارسال شده توسط: abolfazl.aghaii در 03 دی 1393، 10:32 ب‌ظ
lamp رو از اول نصب کنم درست میشه
مسیری که گفتین رو رفتم درسته
عنوان: پاسخ : مشکل lamp
ارسال شده توسط: دانیال بهزادی در 03 دی 1393، 10:45 ب‌ظ
درسته یعنی چی؟ بالاخره جواب داد توی اون مسیر یا نه؟
عنوان: پاسخ : مشکل lamp
ارسال شده توسط: abolfazl.aghaii در 03 دی 1393، 10:51 ب‌ظ
اون مسیر رو داخل داخل مرورگر کار نمی کنه
ولی مسیر رو دارم تو سیستم
عنوان: پاسخ : مشکل lamp
ارسال شده توسط: دانیال بهزادی در 03 دی 1393، 11:16 ب‌ظ
هر چی توی اون مسیر باشه رو مرورگر در نشانی http://localhost/ نمایش می‌ده دیگه
عنوان: پاسخ : مشکل lamp
ارسال شده توسط: JAP در 04 دی 1393، 12:38 ب‌ظ
دوستان من یه سوال دارم چجوری میشه lamp  رو پاک کرد؟
باچه دستوری؟
عنوان: پاسخ : مشکل lamp
ارسال شده توسط: دانیال بهزادی در 04 دی 1393، 03:02 ب‌ظ
دقیقاً بستگی به این داره که چه‌طوری نصب کرده باشی. LAMP Server یک بسته نیست و برای پاک کردنش باید آپاچی، مای‌اس‌کیوال، پی‌اچ‌پی، افزونه‌هاشون و رابط‌های بین‌اون‌ها رو پاک کنی
عنوان: پاسخ : مشکل lamp
ارسال شده توسط: JAP در 07 دی 1393، 08:13 ب‌ظ
موقع نصب همه چیز ها رو نصب کردم و یه فولدر برام ساخته اصلا اون رو نمیتونم پاک کنم

چجوری کلا lamp رو پاک کنم؟
عنوان: پاسخ : مشکل lamp
ارسال شده توسط: دانیال بهزادی در 08 دی 1393، 12:07 ق‌ظ
اگه درست نصب کرده باشی با استفاده از خود tasksel و پاک کردن LAMP Server از داخلش باید پاک شه
عنوان: پاسخ : مشکل lamp
ارسال شده توسط: JAP در 08 دی 1393، 07:15 ب‌ظ
tasksel  چیه دیگه ؟ من نمیدونم چیه میشه توضیح بدید؟
عنوان: پاسخ : مشکل lamp
ارسال شده توسط: دانیال بهزادی در 10 دی 1393، 07:11 ب‌ظ
روش درست نصب LAMP Server اینه که ابتدا tasksel رو نصب می‌کنی، بعد از داخل اون LAMP Server رو انتخاب می‌کنی تا نصب شه. اگه کار دیگه‌ای کردی باید دقیقاً بگی چی کار کردی که مراحلش رو برگردونیم
عنوان: پاسخ : مشکل lamp
ارسال شده توسط: abolfazl.aghaii در 13 دی 1393، 03:34 ب‌ظ
دو باره از داخل tasksel نصب کردم ولی بازم همون صفحه اولی میاد برام
عنوان: پاسخ : مشکل lamp
ارسال شده توسط: دانیال بهزادی در 14 دی 1393، 05:49 ب‌ظ
تا وقتی قبلی نصبه که نباید جدید نصب کنی. این جدیده رو از داخل tasksel حذف کن. اون قبلی رو هم هرجوری نصب کردی پاکش کن. بعد با tasksel دوباره نصب کن
عنوان: پاسخ : مشکل lamp
ارسال شده توسط: abolfazl.aghaii در 16 دی 1393، 07:01 ب‌ظ
Not Found

The requested URL /index.php was not found on this server.

Apache/2.4.7 (Ubuntu) Server at localhost Port 80


belfi@belfi-Aspire-V3-571G:~$ netstat -a | grep 80
unix  2      [ ACC ]     STREAM     LISTENING     11807    /var/run/avahi-daemon/socket
unix  2      [ ACC ]     STREAM     LISTENING     26180    @belfi-com.canonical.Unity.Master.Scope.moresuggestions.T401082782701
unix  2      [ ACC ]     STREAM     LISTENING     13803    /run/user/1000/keyring-ehvtwe/ssh
unix  2      [ ACC ]     STREAM     LISTENING     13805    /run/user/1000/keyring-ehvtwe/gpg
unix  3      [ ]         STREAM     CONNECTED     14180    /var/run/dbus/system_bus_socket
unix  2      [ ]         STREAM     CONNECTED     24880   
unix  3      [ ]         STREAM     CONNECTED     15806   
unix  3      [ ]         STREAM     CONNECTED     13880    @/tmp/dbus-2vLjvtqwGZ
unix  3      [ ]         STREAM     CONNECTED     15805   
unix  3      [ ]         STREAM     CONNECTED     48066   
unix  3      [ ]         STREAM     CONNECTED     11800   
unix  3      [ ]         STREAM     CONNECTED     13801   
unix  3      [ ]         STREAM     CONNECTED     13808    @/tmp/dbus-2vLjvtqwGZ
unix  3      [ ]         STREAM     CONNECTED     48067   
unix  3      [ ]         STREAM     CONNECTED     13480   
unix  3      [ ]         STREAM     CONNECTED     12980    @/tmp/dbus-2vLjvtqwGZ
unix  3      [ ]         STREAM     CONNECTED     13280   
unix  3      [ ]         STREAM     CONNECTED     24980    /run/user/1000/keyring-ehvtwe/pkcs11
unix  3      [ ]         STREAM     CONNECTED     24807   
unix  3      [ ]         STREAM     CONNECTED     11809



اگه پورت رو عوض کنیم درست نمیشه؟
داخل xamp پورت رو عوض میشد کرد اینجا هم میشه